gi-gtk-3.0.32: Gtk bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Gtk.Structs.RcProperty

Contents

Description

Deprecated

Synopsis

Exported types

newtype RcProperty Source #

Memory-managed wrapper type.

Constructors

RcProperty (ManagedPtr RcProperty) 
Instances
Eq RcProperty Source # 
Instance details

Defined in GI.Gtk.Structs.RcProperty

Methods

(==) :: RcProperty -> RcProperty -> Bool

(/=) :: RcProperty -> RcProperty -> Bool

WrappedPtr RcProperty Source # 
Instance details

Defined in GI.Gtk.Structs.RcProperty

Methods

wrappedPtrCalloc :: IO (Ptr RcProperty)

wrappedPtrCopy :: RcProperty -> IO RcProperty

wrappedPtrFree :: Maybe (GDestroyNotify RcProperty)

tag ~ AttrSet => Constructible RcProperty tag Source # 
Instance details

Defined in GI.Gtk.Structs.RcProperty

Methods

new :: MonadIO m => (ManagedPtr RcProperty -> RcProperty) -> [AttrOp RcProperty tag] -> m RcProperty

newZeroRcProperty :: MonadIO m => m RcProperty Source #

Construct a RcProperty struct initialized to zero.

noRcProperty :: Maybe RcProperty Source #

A convenience alias for Nothing :: Maybe RcProperty.

Methods

Overloaded methods

parseBorder

rcPropertyParseBorder Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> GParamSpec

pspec: a tParamSpec

-> String

gstring: the tString to be parsed

-> GValue

propertyValue: a tValue which must hold boxed values.

-> m Bool

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

A tRcPropertyParser 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 tParamSpec

-> String

gstring: the tString to be parsed

-> GValue

propertyValue: a tValue which must hold tColor values.

-> m Bool

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

A tRcPropertyParser 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 tParamSpec

-> String

gstring: the tString to be parsed

-> GValue

propertyValue: a tValue which must hold enum values.

-> m Bool

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

A tRcPropertyParser 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 tParamSpec

-> String

gstring: the tString to be parsed

-> GValue

propertyValue: a tValue 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 tRcPropertyParser 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 tParamSpec

-> String

gstring: the tString to be parsed

-> GValue

propertyValue: a tValue which must hold boxed values.

-> m Bool

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

A tRcPropertyParser 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

field similar to one found in tSettingsValue

clearRcPropertyOrigin :: MonadIO m => RcProperty -> m () Source #

Set the value of the “origin” field to Nothing. When overloading is enabled, this is equivalent to

clear #origin

getRcPropertyOrigin :: MonadIO m => RcProperty -> m (Maybe Text) Source #

Get the value of the “origin” field. When overloading is enabled, this is equivalent to

get rcProperty #origin

setRcPropertyOrigin :: MonadIO m => RcProperty -> CString -> m () Source #

Set the value of the “origin” field. When overloading is enabled, this is equivalent to

set rcProperty [ #origin := value ]

propertyName

quark-ified property identifier like “GtkScrollbar[spacing](#signal:spacing)”

getRcPropertyPropertyName :: MonadIO m => RcProperty -> m Word32 Source #

Get the value of the “property_name” field. When overloading is enabled, this is equivalent to

get rcProperty #propertyName

setRcPropertyPropertyName :: MonadIO m => RcProperty -> Word32 -> m () Source #

Set the value of the “property_name” field. When overloading is enabled, this is equivalent to

set rcProperty [ #propertyName := value ]

typeName

quark-ified type identifier

getRcPropertyTypeName :: MonadIO m => RcProperty -> m Word32 Source #

Get the value of the “type_name” field. When overloading is enabled, this is equivalent to

get rcProperty #typeName

setRcPropertyTypeName :: MonadIO m => RcProperty -> Word32 -> m () Source #

Set the value of the “type_name” field. When overloading is enabled, this is equivalent to

set rcProperty [ #typeName := value ]

value

field similar to one found in tSettingsValue

getRcPropertyValue :: MonadIO m => RcProperty -> m GValue Source #

Get the value of the “value” field. When overloading is enabled, this is equivalent to

get rcProperty #value