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.WidgetAdaptorto 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.PropertyDefbased on spec orNoneif 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.PropertyDefparent (
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)
- classmethod update_from_node(node, object_type, property_def_ref, domain)¶
 - Parameters:
 node (
Gladeui.XmlNode) – the property nodeobject_type (
GObject.GType) – theGObject.GTypeof the owning objectproperty_def_ref (
Gladeui.PropertyDeforNone) – a pointer to the property classdomain (
str) – the domain to translate catalog strings from
- Returns:
 Trueon success. property_def_ref is set toNoneif the property has Disabled=”True".- property_def_ref:
 a pointer to the property class
- Return type:
 (
bool, property_def_ref:Gladeui.PropertyDeforNone)
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.PropertyDefcloned from self- Return type:
 
- compare(value1, value2)¶
 - Parameters:
 value1 (
GObject.Value) – aGObject.Valueof correct type for selfvalue2 (
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.
- free()¶
 Frees self and its associated memory.
- get_adaptor()¶
 - Returns:
 The
Gladeui.WidgetAdaptorassociated with the self- Return type:
 
- get_default()¶
 - Return type:
 
- get_original_default()¶
 - Return type:
 
- get_pspec()¶
 - Returns:
 The
GObject.ParamSpecassociated 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.Adjustmentfor use in the Property editor- Return type:
 
Creates and appropriate
Gtk.Adjustmentfor use in the editor
- make_gvalue_from_string(string, project)¶
 - Parameters:
 string (
str) – a string representation of this propertyproject (
Gladeui.Project) – theGladeui.Projectthat the property should be resolved for
- Returns:
 A
GObject.Valuecreated 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.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: