gi-gtk-3.0.9: Gtk bindings

CopyrightWill Thompson, Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Gtk.Objects.Style

Contents

Description

 

Synopsis

Exported types

newtype Style Source #

Constructors

Style (ManagedPtr Style) 

Instances

GObject Style Source # 
IsObject Style Source # 
IsStyle Style Source # 
((~) * info (ResolveStyleMethod t Style), MethodInfo * info Style p) => IsLabel t (Style -> p) Source # 

Methods

fromLabel :: Proxy# Symbol t -> Style -> p #

((~) * info (ResolveStyleMethod t Style), MethodInfo * info Style p) => IsLabelProxy t (Style -> p) Source # 

Methods

fromLabelProxy :: Proxy Symbol t -> Style -> p

HasAttributeList * Style Source # 
type SignalList Style Source # 
type SignalList Style
type AttributeList Style Source # 
type AttributeList Style

class GObject o => IsStyle o Source #

Instances

(GObject a, UnknownAncestorError Constraint Style a) => IsStyle a Source # 
IsStyle Style Source # 

Methods

applyDefaultBackground

data StyleApplyDefaultBackgroundMethodInfo Source #

Instances

((~) * signature (Context -> b -> StateType -> Int32 -> Int32 -> Int32 -> Int32 -> m ()), MonadIO m, IsStyle a, IsWindow b) => MethodInfo * StyleApplyDefaultBackgroundMethodInfo a signature Source # 

Methods

overloadedMethod :: MethodProxy StyleApplyDefaultBackgroundMethodInfo a -> signature -> s

styleApplyDefaultBackground :: (MonadIO m, IsStyle a, IsWindow b) => a -> Context -> b -> StateType -> Int32 -> Int32 -> Int32 -> Int32 -> m () Source #

Deprecated: (Since version 3.0)Use #GtkStyleContext instead

copy

data StyleCopyMethodInfo Source #

Instances

((~) * signature (m Style), MonadIO m, IsStyle a) => MethodInfo * StyleCopyMethodInfo a signature Source # 

Methods

overloadedMethod :: MethodProxy StyleCopyMethodInfo a -> signature -> s

styleCopy :: (MonadIO m, IsStyle a) => a -> m Style Source #

Deprecated: (Since version 3.0)Use #GtkStyleContext instead

detach

data StyleDetachMethodInfo Source #

Instances

((~) * signature (m ()), MonadIO m, IsStyle a) => MethodInfo * StyleDetachMethodInfo a signature Source # 

Methods

overloadedMethod :: MethodProxy StyleDetachMethodInfo a -> signature -> s

styleDetach :: (MonadIO m, IsStyle a) => a -> m () Source #

Deprecated: (Since version 3.0)Use #GtkStyleContext instead

getStyleProperty

data StyleGetStylePropertyMethodInfo Source #

Instances

((~) * signature (GType -> Text -> m GValue), MonadIO m, IsStyle a) => MethodInfo * StyleGetStylePropertyMethodInfo a signature Source # 

Methods

overloadedMethod :: MethodProxy StyleGetStylePropertyMethodInfo a -> signature -> s

styleGetStyleProperty :: (MonadIO m, IsStyle a) => a -> GType -> Text -> m GValue Source #

hasContext

data StyleHasContextMethodInfo Source #

Instances

((~) * signature (m Bool), MonadIO m, IsStyle a) => MethodInfo * StyleHasContextMethodInfo a signature Source # 

Methods

overloadedMethod :: MethodProxy StyleHasContextMethodInfo a -> signature -> s

lookupColor

data StyleLookupColorMethodInfo Source #

Instances

((~) * signature (Text -> m (Bool, Color)), MonadIO m, IsStyle a) => MethodInfo * StyleLookupColorMethodInfo a signature Source # 

Methods

overloadedMethod :: MethodProxy StyleLookupColorMethodInfo a -> signature -> s

styleLookupColor :: (MonadIO m, IsStyle a) => a -> Text -> m (Bool, Color) Source #

Deprecated: (Since version 3.0)Use gtk_style_context_lookup_color() instead

lookupIconSet

data StyleLookupIconSetMethodInfo Source #

Instances

((~) * signature (Text -> m IconSet), MonadIO m, IsStyle a) => MethodInfo * StyleLookupIconSetMethodInfo a signature Source # 

Methods

overloadedMethod :: MethodProxy StyleLookupIconSetMethodInfo a -> signature -> s

styleLookupIconSet :: (MonadIO m, IsStyle a) => a -> Text -> m IconSet Source #

Deprecated: (Since version 3.0)Use gtk_style_context_lookup_icon_set() instead

new

styleNew :: MonadIO m => m Style Source #

Deprecated: (Since version 3.0)Use #GtkStyleContext

renderIcon

data StyleRenderIconMethodInfo Source #

Instances

((~) * signature (IconSource -> TextDirection -> StateType -> Int32 -> Maybe b -> Maybe Text -> m Pixbuf), MonadIO m, IsStyle a, IsWidget b) => MethodInfo * StyleRenderIconMethodInfo a signature Source # 

Methods

overloadedMethod :: MethodProxy StyleRenderIconMethodInfo a -> signature -> s

styleRenderIcon :: (MonadIO m, IsStyle a, IsWidget b) => a -> IconSource -> TextDirection -> StateType -> Int32 -> Maybe b -> Maybe Text -> m Pixbuf Source #

Deprecated: (Since version 3.0)Use gtk_render_icon_pixbuf() instead

setBackground

data StyleSetBackgroundMethodInfo Source #

Instances

((~) * signature (b -> StateType -> m ()), MonadIO m, IsStyle a, IsWindow b) => MethodInfo * StyleSetBackgroundMethodInfo a signature Source # 

Methods

overloadedMethod :: MethodProxy StyleSetBackgroundMethodInfo a -> signature -> s

styleSetBackground :: (MonadIO m, IsStyle a, IsWindow b) => a -> b -> StateType -> m () Source #

Deprecated: (Since version 3.0)Use gtk_style_context_set_background() instead

Properties

context

data StyleContextPropertyInfo Source #

Instances

AttrInfo StyleContextPropertyInfo Source # 

Associated Types

type AttrAllowedOps StyleContextPropertyInfo :: [AttrOpTag]

type AttrSetTypeConstraint StyleContextPropertyInfo :: * -> Constraint

type AttrBaseTypeConstraint StyleContextPropertyInfo :: * -> Constraint

type AttrGetType StyleContextPropertyInfo :: *

type AttrLabel StyleContextPropertyInfo :: Symbol

type AttrOrigin StyleContextPropertyInfo :: *

Methods

attrGet :: AttrBaseTypeConstraint StyleContextPropertyInfo o => Proxy * StyleContextPropertyInfo -> o -> IO (AttrGetType StyleContextPropertyInfo)

attrSet :: (AttrBaseTypeConstraint StyleContextPropertyInfo o, AttrSetTypeConstraint StyleContextPropertyInfo b) => Proxy * StyleContextPropertyInfo -> o -> b -> IO ()

attrClear :: AttrBaseTypeConstraint StyleContextPropertyInfo o => Proxy * StyleContextPropertyInfo -> o -> IO ()

attrConstruct :: (AttrBaseTypeConstraint StyleContextPropertyInfo o, AttrSetTypeConstraint StyleContextPropertyInfo b) => Proxy * StyleContextPropertyInfo -> b -> IO (GValueConstruct o)

type AttrSetTypeConstraint StyleContextPropertyInfo Source # 
type AttrSetTypeConstraint StyleContextPropertyInfo = IsStyleContext
type AttrOrigin StyleContextPropertyInfo Source # 
type AttrLabel StyleContextPropertyInfo Source # 
type AttrLabel StyleContextPropertyInfo = "context"
type AttrGetType StyleContextPropertyInfo Source # 
type AttrBaseTypeConstraint StyleContextPropertyInfo Source # 
type AttrBaseTypeConstraint StyleContextPropertyInfo = IsStyle
type AttrAllowedOps StyleContextPropertyInfo Source # 
type AttrAllowedOps StyleContextPropertyInfo = (:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ((:) AttrOpTag AttrClear ([] AttrOpTag)))

constructStyleContext :: (IsStyle o, IsStyleContext a) => a -> IO (GValueConstruct o) Source #

styleContext :: AttrLabelProxy "context" Source #

Signals

realize

type C_StyleRealizeCallback = Ptr () -> Ptr () -> IO () Source #

data StyleRealizeSignalInfo Source #

Instances

SignalInfo StyleRealizeSignalInfo Source # 

Associated Types

type HaskellCallbackType StyleRealizeSignalInfo :: *

Methods

connectSignal :: GObject o => SignalProxy o StyleRealizeSignalInfo -> o -> HaskellCallbackType StyleRealizeSignalInfo -> SignalConnectMode -> IO SignalHandlerId

type HaskellCallbackType StyleRealizeSignalInfo Source # 
type HaskellCallbackType StyleRealizeSignalInfo = StyleRealizeCallback

afterStyleRealize :: (GObject a, MonadIO m) => a -> StyleRealizeCallback -> m SignalHandlerId Source #

onStyleRealize :: (GObject a, MonadIO m) => a -> StyleRealizeCallback -> m SignalHandlerId Source #

unrealize

type C_StyleUnrealizeCallback = Ptr () -> Ptr () -> IO () Source #

data StyleUnrealizeSignalInfo Source #

Instances

SignalInfo StyleUnrealizeSignalInfo Source # 

Associated Types

type HaskellCallbackType StyleUnrealizeSignalInfo :: *

Methods

connectSignal :: GObject o => SignalProxy o StyleUnrealizeSignalInfo -> o -> HaskellCallbackType StyleUnrealizeSignalInfo -> SignalConnectMode -> IO SignalHandlerId

type HaskellCallbackType StyleUnrealizeSignalInfo Source # 

afterStyleUnrealize :: (GObject a, MonadIO m) => a -> StyleUnrealizeCallback -> m SignalHandlerId Source #

onStyleUnrealize :: (GObject a, MonadIO m) => a -> StyleUnrealizeCallback -> m SignalHandlerId Source #