Wp.SpaPodBuilder¶
Fields¶
None
Methods¶
class |
|
class |
|
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- class Wp.SpaPodBuilder¶
- classmethod new_array()¶
- Returns:
the new spa pod builder
- Return type:
Creates a spa pod builder of type array.
- classmethod new_choice(choice_type)¶
- Parameters:
choice_type (
str
) – the name of the choice type (“Range”, “Step”, …)- Returns:
the new spa pod builder
- Return type:
Creates a spa pod builder of type choice.
- classmethod new_object(type_name, id_name)¶
- Parameters:
- Returns:
the new spa pod builder
- Return type:
Creates a spa pod builder of type object.
- classmethod new_sequence(unit)¶
- Parameters:
unit (
int
) –- Returns:
the new spa pod builder
- Return type:
Creates a spa pod builder of type sequence.
- classmethod new_struct()¶
- Returns:
the new spa pod builder
- Return type:
Creates a spa pod builder of type struct.
- add_boolean(value)¶
- Parameters:
value (
bool
) – the boolean value
Adds a boolean value into the builder.
- add_bytes(value, len)¶
-
Adds a bytes value with its length into the builder.
- add_control(offset, ctl_type)¶
-
Adds a control into the builder.
- add_double(value)¶
- Parameters:
value (
float
) – the double value
Adds a double value into the builder.
- add_fraction(num, denom)¶
- Parameters:
Adds the numerator and denominator values of a fraction into the builder.
- add_none()¶
Adds a none value into the builder.
- add_pointer(type_name, value)¶
- Parameters:
Adds a pointer value with its type name into the builder.
- add_property(key)¶
- Parameters:
key (
str
) – the name of the property
Adds a property into the builder.
- add_property_id(id)¶
- Parameters:
id (
int
) – the id of the property
Adds a property into the builder.
- add_rectangle(width, height)¶
- Parameters:
Adds the width and height values of a rectangle into the builder.
- end()¶
- Returns:
the constructed spa pod object
- Return type:
Ends the builder process and returns the constructed spa pod object.
- ref()¶
- Returns:
self with an additional reference count on it
- Return type:
Increases the reference count of a spa pod builder.
- unref()¶
Decreases the reference count on self and frees it when the ref count reaches zero.