Gladeui.PropertyDef¶
Fields¶
None
Methods¶
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- class Gladeui.PropertyDef¶
- classmethod get_default_from_spec(spec)¶
- Parameters:
spec (
GObject.ParamSpec
) –- Return type:
- classmethod make_flags_from_string(type, string)¶
- Parameters:
type (
GObject.GType
) –string (
str
) –
- Return type:
- classmethod new(adaptor, id)¶
- Parameters:
adaptor (
Gladeui.WidgetAdaptor
) – TheGladeui.WidgetAdaptor
to create this property forid (
str
) – the id for the new property class
- Returns:
a new
Gladeui.PropertyDef
- Return type:
- classmethod new_from_spec(adaptor, spec)¶
- Parameters:
adaptor (
Gladeui.WidgetAdaptor
) – A generic pointer (i.e. aGladeui.WidgetAdaptor
)spec (
GObject.ParamSpec
) – AGObject.ParamSpec
- Returns:
a newly created
Gladeui.PropertyDef
based on spec orNone
if its unsupported.- Return type:
- classmethod new_from_spec_full(adaptor, spec, need_handle)¶
- Parameters:
adaptor (
Gladeui.WidgetAdaptor
) –spec (
GObject.ParamSpec
) –need_handle (
bool
) –
- Return type:
- classmethod set_weights(properties, parent)¶
- Parameters:
properties ([
Gladeui.PropertyDef
]) – a list ofGladeui.PropertyDef
parent (
GObject.GType
) – theGObject.GType
of the parent
This function assigns “weight” to each property in its natural order staring from 1. If parent is 0 weight will be set for every
Gladeui.PropertyDef
in the list. This function will not override weight if it is already set (weight >= 0.0)
- classmethod update_from_node(node, object_type, property_def_ref, domain)¶
- Parameters:
node (
Gladeui.XmlNode
) – the property nodeobject_type (
GObject.GType
) – theGObject.GType
of the owning objectproperty_def_ref (
Gladeui.PropertyDef
orNone
) – a pointer to the property classdomain (
str
) – the domain to translate catalog strings from
- Returns:
True
on success. property_def_ref is set toNone
if the property has Disabled=”True
".- property_def_ref:
a pointer to the property class
- Return type:
(
bool
, property_def_ref:Gladeui.PropertyDef
orNone
)
Updates the property_def_ref with the contents of the node in the xml file. Only the values found in the xml file are overridden.
- clone()¶
- Returns:
a new
Gladeui.PropertyDef
cloned from self- Return type:
- compare(value1, value2)¶
- Parameters:
value1 (
GObject.Value
) – aGObject.Value
of correct type for selfvalue2 (
GObject.Value
) – aGObject.Value
of correct type for self
- Returns:
-1, 0 or +1, if value1 is found to be less than, equal to or greater than value2, respectively.
- Return type:
Compares value1 with value2 according to self.
- free()¶
Frees self and its associated memory.
- get_adaptor()¶
- Returns:
The
Gladeui.WidgetAdaptor
associated with the self- Return type:
- get_default()¶
- Return type:
- get_original_default()¶
- Return type:
- get_pspec()¶
- Returns:
The
GObject.ParamSpec
associated with the self- Return type:
- is_object()¶
- Returns:
whether or not this is an object property that refers to another object in this project.
- Return type:
- load_defaults_from_spec()¶
- make_adjustment()¶
- Returns:
An appropriate
Gtk.Adjustment
for use in the Property editor- Return type:
Creates and appropriate
Gtk.Adjustment
for use in the editor
- make_gvalue_from_string(string, project)¶
- Parameters:
string (
str
) – a string representation of this propertyproject (
Gladeui.Project
) – theGladeui.Project
that the property should be resolved for
- Returns:
A
GObject.Value
created based on the self and string criteria.- Return type:
- make_string_from_gvalue(value)¶
- Parameters:
value (
GObject.Value
) – AGObject.Value
- Returns:
A newly allocated string representation of value
- Return type:
- match(comp)¶
- Parameters:
comp (
Gladeui.PropertyDef
) – aGladeui.PropertyDef
- Returns:
whether self and comp are a match or not (properties in separate descendant hierarchies that have the same name are not matches).
- Return type:
- set_adaptor(adaptor)¶
- Parameters:
adaptor (
Gladeui.WidgetAdaptor
) – AGladeui.WidgetAdaptor
- set_pspec(pspec)¶
- Parameters:
pspec (
GObject.ParamSpec
) – AGObject.ParamSpec
- void_value(value)¶
- Parameters:
value (
GObject.Value
) – aGObject.Value
of correct type for self- Returns:
Whether value for this self is voided; a voided value can be a
None
value for boxed or object type param specs.- Return type: