Gsf.DocProp

Fields

None

Methods

class new (name)
  dump ()
  free ()
  get_link ()
  get_name ()
  get_val ()
  set_link (link)
  set_val (val)
  swap_val (val)

Details

class Gsf.DocProp

Class representing a properties of a document.

classmethod new(name)
Parameters:name (str) – The name of the property.
Returns:a new Gsf.DocProp.
Return type:Gsf.DocProp
dump()

A debugging utility to dump self as text via g_print New in 1.14.2

free()

Release the given property.

Returns:the current link descriptor of self.
Return type:str or None
get_name()
Returns:the name of the property
Return type:str
get_val()
Returns:the value of the property, the caller should not modify the result.
Return type:GObject.Value
Parameters:link (str or None) – a link.

Sets self’s link to link

set_val(val)
Parameters:val (GObject.Value) – GObject.Value

Assigns val to self, and unsets and frees the current value.

swap_val(val)
Parameters:val (GObject.Value) – GObject.Value
Returns:the current value of self, and replaces it with val.
Return type:GObject.Value