Gtk.RcProperty

Fields

Name

Type

Access

Description

origin

str

r/w

field similar to one found in Gtk.SettingsValue

property_name

int

r/w

quark-ified property identifier like “Gtk.Scrollbar ::spacing

type_name

int

r/w

quark-ified type identifier

value

GObject.Value

r/w

field similar to one found in Gtk.SettingsValue

Methods

class

parse_border (pspec, gstring, property_value)

class

parse_color (pspec, gstring, property_value)

class

parse_enum (pspec, gstring, property_value)

class

parse_flags (pspec, gstring, property_value)

class

parse_requisition (pspec, gstring, property_value)

Details

class Gtk.RcProperty

Deprecated

classmethod parse_border(pspec, gstring, property_value)[source]
Parameters:
Returns:

True if gstring could be parsed and property_value has been set to the resulting Gtk.Border.

Return type:

bool

A Gtk.RcPropertyParser for use with Gtk.Settings.install_property_parser() 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.

classmethod parse_color(pspec, gstring, property_value)[source]
Parameters:
Returns:

True if gstring could be parsed and property_value has been set to the resulting Gdk.Color.

Return type:

bool

A Gtk.RcPropertyParser for use with Gtk.Settings.install_property_parser() 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.

classmethod parse_enum(pspec, gstring, property_value)[source]
Parameters:
Returns:

True if gstring could be parsed and property_value has been set to the resulting GObject.EnumValue.

Return type:

bool

A Gtk.RcPropertyParser for use with Gtk.Settings.install_property_parser() 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.

classmethod parse_flags(pspec, gstring, property_value)[source]
Parameters:
Returns:

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

Return type:

bool

A Gtk.RcPropertyParser for use with Gtk.Settings.install_property_parser() 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 | ... )".

classmethod parse_requisition(pspec, gstring, property_value)[source]
Parameters:
Returns:

True if gstring could be parsed and property_value has been set to the resulting Gtk.Requisition.

Return type:

bool

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