gi-gtk-3.0.24: Gtk bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Gtk.Interfaces.StyleProvider

Contents

Description

GtkStyleProvider is an interface used to provide style information to a StyleContext. See styleContextAddProvider and styleContextAddProviderForScreen.

Synopsis

Exported types

Methods

getIconFactory

styleProviderGetIconFactory Source #

Arguments

:: (HasCallStack, MonadIO m, IsStyleProvider a) 
=> a

provider: a StyleProvider

-> WidgetPath

path: WidgetPath to query

-> m (Maybe IconFactory)

Returns: The icon factory to use for path, or Nothing

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 #

Arguments

:: (HasCallStack, MonadIO m, IsStyleProvider a) 
=> a

provider: a StyleProvider

-> WidgetPath

path: WidgetPath to query

-> m (Maybe StyleProperties)

Returns: a StyleProperties containing the style settings affecting path

Deprecated: (Since version 3.8)Will always return Nothing for all GTK-provided style providers as the interface cannot correctly work the way CSS is specified.

Returns the style settings affecting a widget defined by path, or Nothing if provider doesn’t contemplate styling path.

Since: 3.0

getStyleProperty

styleProviderGetStyleProperty Source #

Arguments

:: (HasCallStack, MonadIO m, IsStyleProvider a) 
=> a

provider: a StyleProvider

-> WidgetPath

path: WidgetPath to query

-> [StateFlags]

state: state to query the style property for

-> GParamSpec

pspec: The ParamSpec to query

-> m (Bool, GValue)

Returns: True if the property was found and has a value, False otherwise

Looks up a widget style property as defined by provider for the widget represented by path.

Since: 3.0