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: - pspec (GObject.ParamSpec) – aGObject.ParamSpec
- gstring (GLib.String) – theGLib.Stringto be parsed
- property_value (GObject.Value) – aGObject.Valuewhich must hold boxed values.
 - Returns: - Trueif gstring could be parsed and property_value has been set to the resulting- Gtk.Border.- Return type: - A - Gtk.RcPropertyParserfor 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.
- pspec (
 - 
classmethod parse_color(pspec, gstring, property_value)[source]¶
- Parameters: - pspec (GObject.ParamSpec) – aGObject.ParamSpec
- gstring (GLib.String) – theGLib.Stringto be parsed
- property_value (GObject.Value) – aGObject.Valuewhich must holdGdk.Colorvalues.
 - Returns: - Trueif gstring could be parsed and property_value has been set to the resulting- Gdk.Color.- Return type: - A - Gtk.RcPropertyParserfor 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.
- pspec (
 - 
classmethod parse_enum(pspec, gstring, property_value)[source]¶
- Parameters: - pspec (GObject.ParamSpec) – aGObject.ParamSpec
- gstring (GLib.String) – theGLib.Stringto be parsed
- property_value (GObject.Value) – aGObject.Valuewhich must hold enum values.
 - Returns: - Trueif gstring could be parsed and property_value has been set to the resulting- GObject.EnumValue.- Return type: - A - Gtk.RcPropertyParserfor 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. 
- pspec (
 - 
classmethod parse_flags(pspec, gstring, property_value)[source]¶
- Parameters: - pspec (GObject.ParamSpec) – aGObject.ParamSpec
- gstring (GLib.String) – theGLib.Stringto be parsed
- property_value (GObject.Value) – aGObject.Valuewhich must hold flags values.
 - Returns: - Trueif gstring could be parsed and property_value has been set to the resulting flags value.- Return type: - A - Gtk.RcPropertyParserfor 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 | ... )".
- pspec (
 - 
classmethod parse_requisition(pspec, gstring, property_value)[source]¶
- Parameters: - pspec (GObject.ParamSpec) – aGObject.ParamSpec
- gstring (GLib.String) – theGLib.Stringto be parsed
- property_value (GObject.Value) – aGObject.Valuewhich must hold boxed values.
 - Returns: - Trueif gstring could be parsed and property_value has been set to the resulting- Gtk.Requisition.- Return type: - A - Gtk.RcPropertyParserfor 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.
- pspec (
 
- 
classmethod