v_sim.Option¶
Fields¶
None
Methods¶
class  | 
  | 
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
Details¶
- class v_sim.Option¶
 An opaque structure to store values. It is equivalent to
GObject.Valuebut with a name and a label.- classmethod new(name, label, g_type)¶
 - Parameters:
 name (
str) – a string identifying the option ;label (
str) – a string describing shortly the option (must be in UTF-8).g_type (
GObject.GType) – the type of option to create.
- Returns:
 a newly created option, use
v_sim.Option.free() to free it.- Return type:
 
Create a new #Option using the name as identifier.
- copy()¶
 - Returns:
 a newly created option, use
v_sim.Option.free() to free it.- Return type:
 
Create a new
v_sim.Optionusing the values from option self.
- free()¶
 Free the memory used by the data.
- getLabel()¶
 - Returns:
 a string owned by V_Sim, should not be freed.
- Return type:
 
Get the label of the option.
- getName()¶
 - Returns:
 a string owned by V_Sim, should not be freed.
- Return type:
 
Get the name of the option.
- getType()¶
 - Returns:
 a #OptionTypes value.
- Return type:
 
Get the type of the option.
- getValue()¶
 - Returns:
 the
GObject.Valuestoring the option value.- Return type:
 
Get the location of the storage for the option.