Gtk.RcProperty¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
origin |
r/w |
field similar to one found in |
|
property_name |
r/w |
quark-ified property identifier like “ |
|
type_name |
r/w |
quark-ified type identifier |
|
value |
r/w |
field similar to one found in |
Methods¶
class |
|
class |
|
class |
|
class |
|
class |
|
Details¶
- class Gtk.RcProperty¶
Deprecated
- classmethod parse_border(pspec, gstring, property_value)[source]¶
- Parameters:
pspec (
GObject.ParamSpec
) – aGObject.ParamSpec
gstring (
GLib.String
) – theGLib.String
to be parsedproperty_value (
GObject.Value
) – aGObject.Value
which must hold boxed values.
- Returns:
True
if gstring could be parsed and property_value has been set to the resultingGtk.Border
.- Return type:
A
Gtk.RcPropertyParser
for use withGtk.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:
pspec (
GObject.ParamSpec
) – aGObject.ParamSpec
gstring (
GLib.String
) – theGLib.String
to be parsedproperty_value (
GObject.Value
) – aGObject.Value
which must holdGdk.Color
values.
- Returns:
True
if gstring could be parsed and property_value has been set to the resultingGdk.Color
.- Return type:
A
Gtk.RcPropertyParser
for use withGtk.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:
pspec (
GObject.ParamSpec
) – aGObject.ParamSpec
gstring (
GLib.String
) – theGLib.String
to be parsedproperty_value (
GObject.Value
) – aGObject.Value
which must hold enum values.
- Returns:
True
if gstring could be parsed and property_value has been set to the resultingGObject.EnumValue
.- Return type:
A
Gtk.RcPropertyParser
for use withGtk.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:
pspec (
GObject.ParamSpec
) – aGObject.ParamSpec
gstring (
GLib.String
) – theGLib.String
to be parsedproperty_value (
GObject.Value
) – aGObject.Value
which must hold flags values.
- Returns:
True
if gstring could be parsed and property_value has been set to the resulting flags value.- Return type:
A
Gtk.RcPropertyParser
for use withGtk.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:
pspec (
GObject.ParamSpec
) – aGObject.ParamSpec
gstring (
GLib.String
) – theGLib.String
to be parsedproperty_value (
GObject.Value
) – aGObject.Value
which must hold boxed values.
- Returns:
True
if gstring could be parsed and property_value has been set to the resultingGtk.Requisition
.- Return type:
A
Gtk.RcPropertyParser
for use withGtk.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.