gtk3-0.12.5.0: Binding to the Gtk+ graphical user interface library.

Portabilityportable (depends on GHC)
Stabilityprovisional
Maintainergtk2hs-users@lists.sourceforge.net
Safe HaskellNone

Graphics.UI.Gtk.General.StyleContext

Contents

Description

Rendering UI elements

Synopsis

Description

Types

Constructors

styleContextNewSource

Arguments

:: IO StyleContext

A newly created StyleContext

Creates a standalone StyleContext, this style context won't be attached to any widget, so you may want to call styleContextSetPath yourself.

Note : This function is only useful when using the theming layer separated from GTK+, if you are using StyleContext to theme Widgets, use widgetGetStyleContext in order to get a style context ready to theme the widget.

Methods

styleContextAddProviderSource

Arguments

:: (StyleContextClass context, StyleProviderClass provider) 
=> context

context a StyleContext

-> provider

provider a StyleProvider

-> Int

priority : the priority of the style provider. The lower it is, the earlier it will be used in the style construction. Typically this will be in the range between 1 and 800

-> IO () 

styleContextAddProviderForScreenSource

Arguments

:: (ScreenClass screen, StyleProviderClass provider) 
=> screen

screen a Screen

-> provider

provider a StyleProvider

-> Int

priority : the priority of the style provider. The lower it is, the earlier it will be used in the style construction. Typically this will be in the range between 1 and 800

-> IO () 

Adds a global style provider to screen, which will be used in style construction for all StyleContexts under screen.

GTK+ uses this to make styling information from Settings available.

Note : If both priorities are the same, A StyleProvider added through styleContextAddProvider takes precedence over another added through this function.