Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (inaki@blueleaf.cc) |
Safe Haskell | None |
Language | Haskell2010 |
GtkStyleProvider is an interface used to provide style information to a StyleContext
.
See styleContextAddProvider
and styleContextAddProviderForScreen
.
Synopsis
- newtype StyleProvider = StyleProvider (ManagedPtr StyleProvider)
- noStyleProvider :: Maybe StyleProvider
- class (ManagedPtrNewtype o, IsDescendantOf StyleProvider o) => IsStyleProvider o
- styleProviderGetIconFactory :: (HasCallStack, MonadIO m, IsStyleProvider a) => a -> WidgetPath -> m (Maybe IconFactory)
- styleProviderGetStyle :: (HasCallStack, MonadIO m, IsStyleProvider a) => a -> WidgetPath -> m (Maybe StyleProperties)
- styleProviderGetStyleProperty :: (HasCallStack, MonadIO m, IsStyleProvider a) => a -> WidgetPath -> [StateFlags] -> GParamSpec -> m (Bool, GValue)
Exported types
newtype StyleProvider Source #
Memory-managed wrapper type.
Instances
WrappedPtr StyleProvider Source # | |
Defined in GI.Gtk.Interfaces.StyleProvider |
noStyleProvider :: Maybe StyleProvider Source #
A convenience alias for Nothing
:: Maybe
StyleProvider
.
class (ManagedPtrNewtype o, IsDescendantOf StyleProvider o) => IsStyleProvider o Source #
Type class for types which implement StyleProvider
.
Instances
(ManagedPtrNewtype o, IsDescendantOf StyleProvider o) => IsStyleProvider o Source # | |
Defined in GI.Gtk.Interfaces.StyleProvider |
Methods
getIconFactory
styleProviderGetIconFactory Source #
:: (HasCallStack, MonadIO m, IsStyleProvider a) | |
=> a |
|
-> WidgetPath |
|
-> m (Maybe IconFactory) | Returns: The icon factory to use for |
Deprecated: (Since version 3.8)Will always return Nothing
for all GTK-provided style providers.
Returns the IconFactory
defined to be in use for path
, or Nothing
if none
is defined.
Since: 3.0
getStyle
styleProviderGetStyle Source #
:: (HasCallStack, MonadIO m, IsStyleProvider a) | |
=> a |
|
-> WidgetPath |
|
-> m (Maybe StyleProperties) | Returns: a |
getStyleProperty
styleProviderGetStyleProperty Source #
:: (HasCallStack, MonadIO m, IsStyleProvider a) | |
=> a |
|
-> WidgetPath |
|
-> [StateFlags] |
|
-> GParamSpec |
|
-> m (Bool, GValue) | Returns: |
Looks up a widget style property as defined by provider
for
the widget represented by path
.
Since: 3.0