Maintainer | gtk2hs-users@lists.sourceforge.net |
---|---|
Stability | provisional |
Portability | portable (depends on GHC) |
Safe Haskell | None |
Language | Haskell98 |
CSS-like styling for widgets.
- data CssProvider
- class GObjectClass o => CssProviderClass o
- castToCssProvider :: GObjectClass obj => obj -> CssProvider
- gTypeCssProvider :: GType
- toCssProvider :: CssProviderClass o => o -> CssProvider
- data CssProviderError
- cssProviderNew :: IO CssProvider
- cssProviderGetDefault :: IO CssProvider
- cssProviderGetNamed :: GlibString string => string -> Maybe string -> IO (Maybe CssProvider)
- cssProviderLoadFromData :: CssProviderClass cssProvider => cssProvider -> Ptr CChar -> Int -> IO ()
- cssProviderLoadFromString :: (CssProviderClass cssProvider, GlibString string) => cssProvider -> string -> IO ()
- cssProviderLoadFromPath :: (CssProviderClass cssProvider, GlibFilePath fp) => cssProvider -> fp -> IO ()
- cssProviderToString :: (CssProviderClass cssProvider, GlibString string) => cssProvider -> IO string
Description
CssProvider
is an object implementing the StyleProvider
interface.
It is able to parse CSS-like input in order to style widgets.
Types
data CssProvider Source
class GObjectClass o => CssProviderClass o Source
castToCssProvider :: GObjectClass obj => obj -> CssProvider Source
toCssProvider :: CssProviderClass o => o -> CssProvider Source
Enums
data CssProviderError Source
Constructors
Methods
:: IO CssProvider | The provider used for fallback styling |
Returns the provider containing the style settings used as a fallback for all widgets.
:: GlibString string | |
=> string |
|
-> Maybe string |
|
-> IO (Maybe CssProvider) | a |
Loads a theme from the usual theme paths
cssProviderLoadFromData Source
:: CssProviderClass cssProvider | |
=> cssProvider |
|
-> Ptr CChar |
|
-> Int |
|
-> IO () |
Loads _data
into cssProvider
, making it clear any previously loaded information.
cssProviderLoadFromString Source
:: (CssProviderClass cssProvider, GlibString string) | |
=> cssProvider |
|
-> string |
|
-> IO () |
Loads css
into cssProvider
, making it clear any previously loaded information.
cssProviderLoadFromPath Source
:: (CssProviderClass cssProvider, GlibFilePath fp) | |
=> cssProvider |
|
-> fp | the path of a filename to load |
-> IO () |
Loads the data contained in path
into cssProvider
, making it clear any previously
loaded information
:: (CssProviderClass cssProvider, GlibString string) | |
=> cssProvider |
|
-> IO string |
Convertes the provider
into a string representation in CSS format.
Using cssProviderLoadFromString
with the return value from this function
on a new provider created with cssProviderNew
will basically create a
duplicate of this provider
.