Gladeui.PropertyDef¶
Fields¶
None
Methods¶
Details¶
- 
class Gladeui.PropertyDef¶
- 
classmethod get_default_from_spec(spec)¶
- Parameters: - spec ( - GObject.ParamSpec) –- Return type: - GObject.Value
 - 
classmethod make_flags_from_string(type, string)¶
- Parameters: - type (GObject.GType) –
- string (str) –
 - Return type: 
- type (
 - 
classmethod new(adaptor, id)¶
- Parameters: - adaptor (Gladeui.WidgetAdaptor) – TheGladeui.WidgetAdaptorto create this property for
- id (str) – the id for the new property class
 - Returns: - a new - Gladeui.PropertyDef- Return type: 
- adaptor (
 - 
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.PropertyDefbased on spec or- Noneif its unsupported.- Return type: 
- adaptor (
 - 
classmethod new_from_spec_full(adaptor, spec, need_handle)¶
- Parameters: - adaptor (Gladeui.WidgetAdaptor) –
- spec (GObject.ParamSpec) –
- need_handle (bool) –
 - Return type: 
- adaptor (
 - 
classmethod set_weights(properties, parent)¶
- Parameters: - properties ([Gladeui.PropertyDef]) – a list ofGladeui.PropertyDef
- parent (GObject.GType) – theGObject.GTypeof 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.PropertyDefin the list. This function will not override weight if it is already set (weight >= 0.0)
- properties ([
 - 
classmethod update_from_node(node, object_type, property_def_ref, domain)¶
- Parameters: - node (Gladeui.XmlNode) – the property node
- object_type (GObject.GType) – theGObject.GTypeof the owning object
- property_def_ref (Gladeui.PropertyDeforNone) – a pointer to the property class
- domain (str) – the domain to translate catalog strings from
 - Returns: - Trueon success. property_def_ref is set to- Noneif the property has Disabled=”- True”.- property_def_ref: - a pointer to the property class - Return type: - ( - bool, property_def_ref:- Gladeui.PropertyDefor- None)- 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. 
- node (
 - 
clone()¶
- Returns: - a new - Gladeui.PropertyDefcloned from self- Return type: - Gladeui.PropertyDef
 - 
compare(value1, value2)¶
- Parameters: - value1 (GObject.Value) – aGObject.Valueof correct type for self
- value2 (GObject.Value) – aGObject.Valueof 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. 
- value1 (
 - 
free()¶
- Frees self and its associated memory. 
 - 
get_adaptor()¶
- Returns: - The - Gladeui.WidgetAdaptorassociated with the self- Return type: - Gladeui.WidgetAdaptor
 - 
get_default()¶
- Return type: - GObject.Value
 - 
get_original_default()¶
- Return type: - GObject.Value
 - 
get_pspec()¶
- Returns: - The - GObject.ParamSpecassociated with the self- Return type: - GObject.ParamSpec
 - 
is_object()¶
- Returns: - whether or not this is an object property that refers to another object in this project. - Return type: - bool
 - 
load_defaults_from_spec()¶
 - 
make_adjustment()¶
- Returns: - An appropriate - Gtk.Adjustmentfor use in the Property editor- Return type: - Gtk.Adjustment- Creates and appropriate - Gtk.Adjustmentfor use in the editor
 - 
make_gvalue_from_string(string, project)¶
- Parameters: - string (str) – a string representation of this property
- project (Gladeui.Project) – theGladeui.Projectthat the property should be resolved for
 - Returns: - A - GObject.Valuecreated based on the self and string criteria.- Return type: 
- string (
 - 
make_string_from_gvalue(value)¶
- Parameters: - value ( - GObject.Value) – A- GObject.Value- Returns: - A newly allocated string representation of value - Return type: - str
 - 
match(comp)¶
- Parameters: - comp ( - Gladeui.PropertyDef) – a- Gladeui.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: - bool
 - 
set_adaptor(adaptor)¶
- Parameters: - adaptor ( - Gladeui.WidgetAdaptor) – A- Gladeui.WidgetAdaptor
 - 
set_pspec(pspec)¶
- Parameters: - pspec ( - GObject.ParamSpec) – A- GObject.ParamSpec
 - 
void_value(value)¶
- Parameters: - value ( - GObject.Value) – a- GObject.Valueof correct type for self- Returns: - Whether value for this self is voided; a voided value can be a - Nonevalue for boxed or object type param specs.- Return type: - bool
 
- 
classmethod