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 |
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 a => IsStyleProvider a
- 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 wrappedPtrCalloc :: IO (Ptr StyleProvider) # wrappedPtrCopy :: StyleProvider -> IO StyleProvider # wrappedPtrFree :: Maybe (FunPtr (Ptr StyleProvider -> IO ())) # | |
IsStyleProvider StyleProvider Source # | |
Defined in GI.Gtk.Interfaces.StyleProvider |
noStyleProvider :: Maybe StyleProvider Source #
A convenience alias for Nothing
:: Maybe
StyleProvider
.
class ManagedPtrNewtype a => IsStyleProvider a Source #
Type class for types which implement StyleProvider
.
Instances
IsStyleProvider StyleProvider Source # | |
Defined in GI.Gtk.Interfaces.StyleProvider | |
IsStyleProvider Settings Source # | |
Defined in GI.Gtk.Objects.Settings | |
IsStyleProvider StyleProperties Source # | |
Defined in GI.Gtk.Objects.StyleProperties | |
IsStyleProvider CssProvider Source # | |
Defined in GI.Gtk.Objects.CssProvider |
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