Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
GtkStyleProvider is an interface used to provide style information to a StyleContext
.
See styleContextAddProvider
and styleContextAddProviderForScreen
.
Synopsis
- newtype StyleProvider = StyleProvider (ManagedPtr 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.
StyleProvider (ManagedPtr StyleProvider) |
Instances
Eq StyleProvider Source # | |
Defined in GI.Gtk.Interfaces.StyleProvider (==) :: StyleProvider -> StyleProvider -> Bool # (/=) :: StyleProvider -> StyleProvider -> Bool # | |
BoxedPtr StyleProvider Source # | |
Defined in GI.Gtk.Interfaces.StyleProvider boxedPtrCopy :: StyleProvider -> IO StyleProvider boxedPtrFree :: StyleProvider -> IO () | |
ManagedPtrNewtype StyleProvider Source # | |
Defined in GI.Gtk.Interfaces.StyleProvider toManagedPtr :: StyleProvider -> ManagedPtr 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
Click to display all available methods, including inherited ones
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