gi-gtk-3.0.11: 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.Structs.RcProperty

Contents

Description

Deprecated

Synopsis

Exported types

newZeroRcProperty :: MonadIO m => m RcProperty Source #

Construct a RcProperty struct initialized to zero.

Methods

parseBorder

rcPropertyParseBorder Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> GParamSpec

pspec: a ParamSpec

-> String

gstring: the String to be parsed

-> GValue

propertyValue: a Value which must hold boxed values.

-> m Bool

Returns: True if gstring could be parsed and propertyValue has been set to the resulting Border.

A RcPropertyParser for use with settingsInstallPropertyParser or gtk_widget_class_install_style_property_parser() which parses borders in the form "{ left, right, top, bottom }" for integers left, right, top and bottom.

parseColor

rcPropertyParseColor Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> GParamSpec

pspec: a ParamSpec

-> String

gstring: the String to be parsed

-> GValue

propertyValue: a Value which must hold Color values.

-> m Bool

Returns: True if gstring could be parsed and propertyValue has been set to the resulting Color.

A RcPropertyParser for use with settingsInstallPropertyParser or gtk_widget_class_install_style_property_parser() which parses a color given either by its name or in the form { red, green, blue } where red, green and blue are integers between 0 and 65535 or floating-point numbers between 0 and 1.

parseEnum

rcPropertyParseEnum Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> GParamSpec

pspec: a ParamSpec

-> String

gstring: the String to be parsed

-> GValue

propertyValue: a Value which must hold enum values.

-> m Bool

Returns: True if gstring could be parsed and propertyValue has been set to the resulting EnumValue.

A RcPropertyParser for use with settingsInstallPropertyParser or gtk_widget_class_install_style_property_parser() which parses a single enumeration value.

The enumeration value can be specified by its name, its nickname or its numeric value. For consistency with flags parsing, the value may be surrounded by parentheses.

parseFlags

rcPropertyParseFlags Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> GParamSpec

pspec: a ParamSpec

-> String

gstring: the String to be parsed

-> GValue

propertyValue: a Value which must hold flags values.

-> m Bool

Returns: True if gstring could be parsed and propertyValue has been set to the resulting flags value.

A RcPropertyParser for use with settingsInstallPropertyParser or gtk_widget_class_install_style_property_parser() which parses flags.

Flags can be specified by their name, their nickname or numerically. Multiple flags can be specified in the form "( flag1 | flag2 | ... )".

parseRequisition

rcPropertyParseRequisition Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> GParamSpec

pspec: a ParamSpec

-> String

gstring: the String to be parsed

-> GValue

propertyValue: a Value which must hold boxed values.

-> m Bool

Returns: True if gstring could be parsed and propertyValue has been set to the resulting Requisition.

A RcPropertyParser for use with settingsInstallPropertyParser or gtk_widget_class_install_style_property_parser() which parses a requisition in the form "{ width, height }" for integers width and height.

Properties

origin

propertyName

typeName

value