Copyright | Will Thompson, Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
- Exported types
- Methods
- styleContextAddClass
- styleContextAddProvider
- styleContextAddProviderForScreen
- styleContextAddRegion
- styleContextCancelAnimations
- styleContextGetBackgroundColor
- styleContextGetBorder
- styleContextGetBorderColor
- styleContextGetColor
- styleContextGetDirection
- styleContextGetFont
- styleContextGetFrameClock
- styleContextGetJunctionSides
- styleContextGetMargin
- styleContextGetPadding
- styleContextGetParent
- styleContextGetPath
- styleContextGetProperty
- styleContextGetScale
- styleContextGetScreen
- styleContextGetSection
- styleContextGetState
- styleContextGetStyleProperty
- styleContextHasClass
- styleContextHasRegion
- styleContextInvalidate
- styleContextListClasses
- styleContextListRegions
- styleContextLookupColor
- styleContextLookupIconSet
- styleContextNew
- styleContextNotifyStateChange
- styleContextPopAnimatableRegion
- styleContextPushAnimatableRegion
- styleContextRemoveClass
- styleContextRemoveProvider
- styleContextRemoveProviderForScreen
- styleContextRemoveRegion
- styleContextResetWidgets
- styleContextRestore
- styleContextSave
- styleContextScrollAnimations
- styleContextSetBackground
- styleContextSetDirection
- styleContextSetFrameClock
- styleContextSetJunctionSides
- styleContextSetParent
- styleContextSetPath
- styleContextSetScale
- styleContextSetScreen
- styleContextSetState
- styleContextStateIsRunning
- Properties
- Signals
- newtype StyleContext = StyleContext (ForeignPtr StyleContext)
- class GObject o => StyleContextK o
- toStyleContext :: StyleContextK o => o -> IO StyleContext
- noStyleContext :: Maybe StyleContext
- styleContextAddClass :: (MonadIO m, StyleContextK a) => a -> Text -> m ()
- styleContextAddProvider :: (MonadIO m, StyleContextK a, StyleProviderK b) => a -> b -> Word32 -> m ()
- styleContextAddProviderForScreen :: (MonadIO m, ScreenK a, StyleProviderK b) => a -> b -> Word32 -> m ()
- styleContextAddRegion :: (MonadIO m, StyleContextK a) => a -> Text -> [RegionFlags] -> m ()
- styleContextCancelAnimations :: (MonadIO m, StyleContextK a) => a -> Maybe (Ptr ()) -> m ()
- styleContextGetBackgroundColor :: (MonadIO m, StyleContextK a) => a -> [StateFlags] -> m RGBA
- styleContextGetBorder :: (MonadIO m, StyleContextK a) => a -> [StateFlags] -> m Border
- styleContextGetBorderColor :: (MonadIO m, StyleContextK a) => a -> [StateFlags] -> m RGBA
- styleContextGetColor :: (MonadIO m, StyleContextK a) => a -> [StateFlags] -> m RGBA
- styleContextGetDirection :: (MonadIO m, StyleContextK a) => a -> m TextDirection
- styleContextGetFont :: (MonadIO m, StyleContextK a) => a -> [StateFlags] -> m FontDescription
- styleContextGetFrameClock :: (MonadIO m, StyleContextK a) => a -> m FrameClock
- styleContextGetJunctionSides :: (MonadIO m, StyleContextK a) => a -> m [JunctionSides]
- styleContextGetMargin :: (MonadIO m, StyleContextK a) => a -> [StateFlags] -> m Border
- styleContextGetPadding :: (MonadIO m, StyleContextK a) => a -> [StateFlags] -> m Border
- styleContextGetParent :: (MonadIO m, StyleContextK a) => a -> m StyleContext
- styleContextGetPath :: (MonadIO m, StyleContextK a) => a -> m WidgetPath
- styleContextGetProperty :: (MonadIO m, StyleContextK a) => a -> Text -> [StateFlags] -> m GValue
- styleContextGetScale :: (MonadIO m, StyleContextK a) => a -> m Int32
- styleContextGetScreen :: (MonadIO m, StyleContextK a) => a -> m Screen
- styleContextGetSection :: (MonadIO m, StyleContextK a) => a -> Text -> m CssSection
- styleContextGetState :: (MonadIO m, StyleContextK a) => a -> m [StateFlags]
- styleContextGetStyleProperty :: (MonadIO m, StyleContextK a) => a -> Text -> GValue -> m ()
- styleContextHasClass :: (MonadIO m, StyleContextK a) => a -> Text -> m Bool
- styleContextHasRegion :: (MonadIO m, StyleContextK a) => a -> Text -> m (Bool, [RegionFlags])
- styleContextInvalidate :: (MonadIO m, StyleContextK a) => a -> m ()
- styleContextListClasses :: (MonadIO m, StyleContextK a) => a -> m [Text]
- styleContextListRegions :: (MonadIO m, StyleContextK a) => a -> m [Text]
- styleContextLookupColor :: (MonadIO m, StyleContextK a) => a -> Text -> m (Bool, RGBA)
- styleContextLookupIconSet :: (MonadIO m, StyleContextK a) => a -> Text -> m IconSet
- styleContextNew :: MonadIO m => m StyleContext
- styleContextNotifyStateChange :: (MonadIO m, StyleContextK a, WindowK b) => a -> b -> Maybe (Ptr ()) -> StateType -> Bool -> m ()
- styleContextPopAnimatableRegion :: (MonadIO m, StyleContextK a) => a -> m ()
- styleContextPushAnimatableRegion :: (MonadIO m, StyleContextK a) => a -> Ptr () -> m ()
- styleContextRemoveClass :: (MonadIO m, StyleContextK a) => a -> Text -> m ()
- styleContextRemoveProvider :: (MonadIO m, StyleContextK a, StyleProviderK b) => a -> b -> m ()
- styleContextRemoveProviderForScreen :: (MonadIO m, ScreenK a, StyleProviderK b) => a -> b -> m ()
- styleContextRemoveRegion :: (MonadIO m, StyleContextK a) => a -> Text -> m ()
- styleContextResetWidgets :: (MonadIO m, ScreenK a) => a -> m ()
- styleContextRestore :: (MonadIO m, StyleContextK a) => a -> m ()
- styleContextSave :: (MonadIO m, StyleContextK a) => a -> m ()
- styleContextScrollAnimations :: (MonadIO m, StyleContextK a, WindowK b) => a -> b -> Int32 -> Int32 -> m ()
- styleContextSetBackground :: (MonadIO m, StyleContextK a, WindowK b) => a -> b -> m ()
- styleContextSetDirection :: (MonadIO m, StyleContextK a) => a -> TextDirection -> m ()
- styleContextSetFrameClock :: (MonadIO m, StyleContextK a, FrameClockK b) => a -> b -> m ()
- styleContextSetJunctionSides :: (MonadIO m, StyleContextK a) => a -> [JunctionSides] -> m ()
- styleContextSetParent :: (MonadIO m, StyleContextK a, StyleContextK b) => a -> Maybe b -> m ()
- styleContextSetPath :: (MonadIO m, StyleContextK a) => a -> WidgetPath -> m ()
- styleContextSetScale :: (MonadIO m, StyleContextK a) => a -> Int32 -> m ()
- styleContextSetScreen :: (MonadIO m, StyleContextK a, ScreenK b) => a -> b -> m ()
- styleContextSetState :: (MonadIO m, StyleContextK a) => a -> [StateFlags] -> m ()
- styleContextStateIsRunning :: (MonadIO m, StyleContextK a) => a -> StateType -> m (Bool, Double)
- data StyleContextDirectionPropertyInfo
- constructStyleContextDirection :: TextDirection -> IO ([Char], GValue)
- getStyleContextDirection :: (MonadIO m, StyleContextK o) => o -> m TextDirection
- setStyleContextDirection :: (MonadIO m, StyleContextK o) => o -> TextDirection -> m ()
- data StyleContextPaintClockPropertyInfo
- constructStyleContextPaintClock :: FrameClockK a => a -> IO ([Char], GValue)
- getStyleContextPaintClock :: (MonadIO m, StyleContextK o) => o -> m FrameClock
- setStyleContextPaintClock :: (MonadIO m, StyleContextK o, FrameClockK a) => o -> a -> m ()
- data StyleContextParentPropertyInfo
- constructStyleContextParent :: StyleContextK a => a -> IO ([Char], GValue)
- getStyleContextParent :: (MonadIO m, StyleContextK o) => o -> m StyleContext
- setStyleContextParent :: (MonadIO m, StyleContextK o, StyleContextK a) => o -> a -> m ()
- data StyleContextScreenPropertyInfo
- constructStyleContextScreen :: ScreenK a => a -> IO ([Char], GValue)
- getStyleContextScreen :: (MonadIO m, StyleContextK o) => o -> m Screen
- setStyleContextScreen :: (MonadIO m, StyleContextK o, ScreenK a) => o -> a -> m ()
- type StyleContextChangedCallback = IO ()
- type StyleContextChangedCallbackC = Ptr () -> Ptr () -> IO ()
- data StyleContextChangedSignalInfo
- afterStyleContextChanged :: (GObject a, MonadIO m) => a -> StyleContextChangedCallback -> m SignalHandlerId
- mkStyleContextChangedCallback :: StyleContextChangedCallbackC -> IO (FunPtr StyleContextChangedCallbackC)
- noStyleContextChangedCallback :: Maybe StyleContextChangedCallback
- onStyleContextChanged :: (GObject a, MonadIO m) => a -> StyleContextChangedCallback -> m SignalHandlerId
- styleContextChangedCallbackWrapper :: StyleContextChangedCallback -> Ptr () -> Ptr () -> IO ()
- styleContextChangedClosure :: StyleContextChangedCallback -> IO Closure
Exported types
newtype StyleContext Source
class GObject o => StyleContextK o Source
(GObject o, IsDescendantOf StyleContext o) => StyleContextK o Source |
toStyleContext :: StyleContextK o => o -> IO StyleContext Source
Methods
styleContextAddClass
styleContextAddClass :: (MonadIO m, StyleContextK a) => a -> Text -> m () Source
styleContextAddProvider
styleContextAddProvider :: (MonadIO m, StyleContextK a, StyleProviderK b) => a -> b -> Word32 -> m () Source
styleContextAddProviderForScreen
styleContextAddProviderForScreen :: (MonadIO m, ScreenK a, StyleProviderK b) => a -> b -> Word32 -> m () Source
styleContextAddRegion
styleContextAddRegion :: (MonadIO m, StyleContextK a) => a -> Text -> [RegionFlags] -> m () Source
Deprecated: (Since version 3.14)
styleContextCancelAnimations
styleContextCancelAnimations :: (MonadIO m, StyleContextK a) => a -> Maybe (Ptr ()) -> m () Source
Deprecated: (Since version 3.6)This function does nothing.
styleContextGetBackgroundColor
styleContextGetBackgroundColor :: (MonadIO m, StyleContextK a) => a -> [StateFlags] -> m RGBA Source
Deprecated: (Since version 3.16)Use gtk_render_background() instead.
styleContextGetBorder
styleContextGetBorder :: (MonadIO m, StyleContextK a) => a -> [StateFlags] -> m Border Source
styleContextGetBorderColor
styleContextGetBorderColor :: (MonadIO m, StyleContextK a) => a -> [StateFlags] -> m RGBA Source
Deprecated: (Since version 3.16)Use gtk_render_border() instead.
styleContextGetColor
styleContextGetColor :: (MonadIO m, StyleContextK a) => a -> [StateFlags] -> m RGBA Source
styleContextGetDirection
styleContextGetDirection :: (MonadIO m, StyleContextK a) => a -> m TextDirection Source
styleContextGetFont
styleContextGetFont :: (MonadIO m, StyleContextK a) => a -> [StateFlags] -> m FontDescription Source
Deprecated: (Since version 3.8)Use gtk_style_context_get() for "font" or subproperties instead.
styleContextGetFrameClock
styleContextGetFrameClock :: (MonadIO m, StyleContextK a) => a -> m FrameClock Source
styleContextGetJunctionSides
styleContextGetJunctionSides :: (MonadIO m, StyleContextK a) => a -> m [JunctionSides] Source
styleContextGetMargin
styleContextGetMargin :: (MonadIO m, StyleContextK a) => a -> [StateFlags] -> m Border Source
styleContextGetPadding
styleContextGetPadding :: (MonadIO m, StyleContextK a) => a -> [StateFlags] -> m Border Source
styleContextGetParent
styleContextGetParent :: (MonadIO m, StyleContextK a) => a -> m StyleContext Source
styleContextGetPath
styleContextGetPath :: (MonadIO m, StyleContextK a) => a -> m WidgetPath Source
styleContextGetProperty
styleContextGetProperty :: (MonadIO m, StyleContextK a) => a -> Text -> [StateFlags] -> m GValue Source
styleContextGetScale
styleContextGetScale :: (MonadIO m, StyleContextK a) => a -> m Int32 Source
styleContextGetScreen
styleContextGetScreen :: (MonadIO m, StyleContextK a) => a -> m Screen Source
styleContextGetSection
styleContextGetSection :: (MonadIO m, StyleContextK a) => a -> Text -> m CssSection Source
styleContextGetState
styleContextGetState :: (MonadIO m, StyleContextK a) => a -> m [StateFlags] Source
styleContextGetStyleProperty
styleContextGetStyleProperty :: (MonadIO m, StyleContextK a) => a -> Text -> GValue -> m () Source
styleContextHasClass
styleContextHasClass :: (MonadIO m, StyleContextK a) => a -> Text -> m Bool Source
styleContextHasRegion
styleContextHasRegion :: (MonadIO m, StyleContextK a) => a -> Text -> m (Bool, [RegionFlags]) Source
Deprecated: (Since version 3.14)
styleContextInvalidate
styleContextInvalidate :: (MonadIO m, StyleContextK a) => a -> m () Source
Deprecated: (Since version 3.12)Style contexts are invalidated automatically.
styleContextListClasses
styleContextListClasses :: (MonadIO m, StyleContextK a) => a -> m [Text] Source
styleContextListRegions
styleContextListRegions :: (MonadIO m, StyleContextK a) => a -> m [Text] Source
Deprecated: (Since version 3.14)
styleContextLookupColor
styleContextLookupColor :: (MonadIO m, StyleContextK a) => a -> Text -> m (Bool, RGBA) Source
styleContextLookupIconSet
styleContextLookupIconSet :: (MonadIO m, StyleContextK a) => a -> Text -> m IconSet Source
Deprecated: (Since version 3.10)Use gtk_icon_theme_lookup_icon() instead.
styleContextNew
styleContextNew :: MonadIO m => m StyleContext Source
styleContextNotifyStateChange
styleContextNotifyStateChange :: (MonadIO m, StyleContextK a, WindowK b) => a -> b -> Maybe (Ptr ()) -> StateType -> Bool -> m () Source
Deprecated: (Since version 3.6)This function does nothing.
styleContextPopAnimatableRegion
styleContextPopAnimatableRegion :: (MonadIO m, StyleContextK a) => a -> m () Source
Deprecated: (Since version 3.6)This function does nothing.
styleContextPushAnimatableRegion
styleContextPushAnimatableRegion :: (MonadIO m, StyleContextK a) => a -> Ptr () -> m () Source
Deprecated: (Since version 3.6)This function does nothing.
styleContextRemoveClass
styleContextRemoveClass :: (MonadIO m, StyleContextK a) => a -> Text -> m () Source
styleContextRemoveProvider
styleContextRemoveProvider :: (MonadIO m, StyleContextK a, StyleProviderK b) => a -> b -> m () Source
styleContextRemoveProviderForScreen
styleContextRemoveProviderForScreen :: (MonadIO m, ScreenK a, StyleProviderK b) => a -> b -> m () Source
styleContextRemoveRegion
styleContextRemoveRegion :: (MonadIO m, StyleContextK a) => a -> Text -> m () Source
Deprecated: (Since version 3.14)
styleContextResetWidgets
styleContextResetWidgets :: (MonadIO m, ScreenK a) => a -> m () Source
styleContextRestore
styleContextRestore :: (MonadIO m, StyleContextK a) => a -> m () Source
styleContextSave
styleContextSave :: (MonadIO m, StyleContextK a) => a -> m () Source
styleContextScrollAnimations
styleContextScrollAnimations :: (MonadIO m, StyleContextK a, WindowK b) => a -> b -> Int32 -> Int32 -> m () Source
Deprecated: (Since version 3.6)This function does nothing.
styleContextSetBackground
styleContextSetBackground :: (MonadIO m, StyleContextK a, WindowK b) => a -> b -> m () Source
styleContextSetDirection
styleContextSetDirection :: (MonadIO m, StyleContextK a) => a -> TextDirection -> m () Source
styleContextSetFrameClock
styleContextSetFrameClock :: (MonadIO m, StyleContextK a, FrameClockK b) => a -> b -> m () Source
styleContextSetJunctionSides
styleContextSetJunctionSides :: (MonadIO m, StyleContextK a) => a -> [JunctionSides] -> m () Source
styleContextSetParent
styleContextSetParent :: (MonadIO m, StyleContextK a, StyleContextK b) => a -> Maybe b -> m () Source
styleContextSetPath
styleContextSetPath :: (MonadIO m, StyleContextK a) => a -> WidgetPath -> m () Source
styleContextSetScale
styleContextSetScale :: (MonadIO m, StyleContextK a) => a -> Int32 -> m () Source
styleContextSetScreen
styleContextSetScreen :: (MonadIO m, StyleContextK a, ScreenK b) => a -> b -> m () Source
styleContextSetState
styleContextSetState :: (MonadIO m, StyleContextK a) => a -> [StateFlags] -> m () Source
styleContextStateIsRunning
styleContextStateIsRunning :: (MonadIO m, StyleContextK a) => a -> StateType -> m (Bool, Double) Source
Deprecated: (Since version 3.6)This function always returns %FALSE
Properties
Direction
data StyleContextDirectionPropertyInfo Source
AttrInfo StyleContextDirectionPropertyInfo Source | |
type AttrLabel StyleContextDirectionPropertyInfo = "StyleContext::direction" Source | |
type AttrGetType StyleContextDirectionPropertyInfo = TextDirection Source | |
type AttrBaseTypeConstraint StyleContextDirectionPropertyInfo = StyleContextK Source | |
type AttrSetTypeConstraint StyleContextDirectionPropertyInfo = * ~ TextDirection Source | |
type AttrAllowedOps StyleContextDirectionPropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag))) Source |
constructStyleContextDirection :: TextDirection -> IO ([Char], GValue) Source
getStyleContextDirection :: (MonadIO m, StyleContextK o) => o -> m TextDirection Source
setStyleContextDirection :: (MonadIO m, StyleContextK o) => o -> TextDirection -> m () Source
PaintClock
data StyleContextPaintClockPropertyInfo Source
AttrInfo StyleContextPaintClockPropertyInfo Source | |
type AttrLabel StyleContextPaintClockPropertyInfo = "StyleContext::paint-clock" Source | |
type AttrGetType StyleContextPaintClockPropertyInfo = FrameClock Source | |
type AttrBaseTypeConstraint StyleContextPaintClockPropertyInfo = StyleContextK Source | |
type AttrSetTypeConstraint StyleContextPaintClockPropertyInfo = FrameClockK Source | |
type AttrAllowedOps StyleContextPaintClockPropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag))) Source |
constructStyleContextPaintClock :: FrameClockK a => a -> IO ([Char], GValue) Source
getStyleContextPaintClock :: (MonadIO m, StyleContextK o) => o -> m FrameClock Source
setStyleContextPaintClock :: (MonadIO m, StyleContextK o, FrameClockK a) => o -> a -> m () Source
Parent
data StyleContextParentPropertyInfo Source
AttrInfo StyleContextParentPropertyInfo Source | |
type AttrLabel StyleContextParentPropertyInfo = "StyleContext::parent" Source | |
type AttrGetType StyleContextParentPropertyInfo = StyleContext Source | |
type AttrBaseTypeConstraint StyleContextParentPropertyInfo = StyleContextK Source | |
type AttrSetTypeConstraint StyleContextParentPropertyInfo = StyleContextK Source | |
type AttrAllowedOps StyleContextParentPropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag))) Source |
constructStyleContextParent :: StyleContextK a => a -> IO ([Char], GValue) Source
getStyleContextParent :: (MonadIO m, StyleContextK o) => o -> m StyleContext Source
setStyleContextParent :: (MonadIO m, StyleContextK o, StyleContextK a) => o -> a -> m () Source
Screen
data StyleContextScreenPropertyInfo Source
AttrInfo StyleContextScreenPropertyInfo Source | |
type AttrLabel StyleContextScreenPropertyInfo = "StyleContext::screen" Source | |
type AttrGetType StyleContextScreenPropertyInfo = Screen Source | |
type AttrBaseTypeConstraint StyleContextScreenPropertyInfo = StyleContextK Source | |
type AttrSetTypeConstraint StyleContextScreenPropertyInfo = ScreenK Source | |
type AttrAllowedOps StyleContextScreenPropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag))) Source |
getStyleContextScreen :: (MonadIO m, StyleContextK o) => o -> m Screen Source
setStyleContextScreen :: (MonadIO m, StyleContextK o, ScreenK a) => o -> a -> m () Source
Signals
Changed
type StyleContextChangedCallback = IO () Source
type StyleContextChangedCallbackC = Ptr () -> Ptr () -> IO () Source
afterStyleContextChanged :: (GObject a, MonadIO m) => a -> StyleContextChangedCallback -> m SignalHandlerId Source
mkStyleContextChangedCallback :: StyleContextChangedCallbackC -> IO (FunPtr StyleContextChangedCallbackC) Source
onStyleContextChanged :: (GObject a, MonadIO m) => a -> StyleContextChangedCallback -> m SignalHandlerId Source
styleContextChangedCallbackWrapper :: StyleContextChangedCallback -> Ptr () -> Ptr () -> IO () Source