Portability | portable (depends on GHC) |
---|---|
Stability | provisional |
Maintainer | gtk2hs-users@lists.sourceforge.net |
Safe Haskell | None |
Rendering UI elements
- data StyleContext
- class GObjectClass o => StyleContextClass o
- castToStyleContext :: GObjectClass obj => obj -> StyleContext
- gTypeStyleContext :: GType
- toStyleContext :: StyleContextClass o => o -> StyleContext
- styleContextNew :: IO StyleContext
- styleContextAddProvider :: (StyleContextClass context, StyleProviderClass provider) => context -> provider -> Int -> IO ()
- styleContextAddProviderForScreen :: (ScreenClass screen, StyleProviderClass provider) => screen -> provider -> Int -> IO ()
Description
Types
data StyleContext Source
class GObjectClass o => StyleContextClass o Source
castToStyleContext :: GObjectClass obj => obj -> StyleContextSource
toStyleContext :: StyleContextClass o => o -> StyleContextSource
Constructors
:: IO StyleContext | A newly created StyleContext |
Creates a standalone StyleContext
, this style context won't be attached
to any widget, so you may want to call styleContextSetPath
yourself.
Note : This function is only useful when using the theming layer separated
from GTK+, if you are using StyleContext
to theme Widgets
, use
widgetGetStyleContext
in order to get a style context ready to theme
the widget.
Methods
:: (StyleContextClass context, StyleProviderClass provider) | |
=> context |
|
-> provider |
|
-> Int |
|
-> IO () |
styleContextAddProviderForScreenSource
:: (ScreenClass screen, StyleProviderClass provider) | |
=> screen |
|
-> provider |
|
-> Int |
|
-> IO () |
Adds a global style provider to screen
, which will be used in style
construction for all StyleContexts
under screen
.
GTK+ uses this to make styling information from Settings
available.
Note : If both priorities are the same, A StyleProvider
added through
styleContextAddProvider
takes precedence over another added through
this function.