VectorValue
Object Hierarchy:
Description:
[ CCode ( copy_function = "shumate_vector_value_dup" , free_function = "shumate_vector_value_free" , type_id = "shumate_vector_value_get_type ()" ) ]
[ Compact ]
[ Version ( since = "1.6" ) ]
public class VectorValue
A mutable value used in the vector style specification.
Content:
Creation methods:
Methods:
- public void array_append (VectorValue element)
Appends element to the array value of
this.
- public VectorValue dup ()
Creates a duplicate of this.
- public bool equal (VectorValue b)
Compares two [struct@VectorValue]s for equality.
- public void free ()
Frees a [struct@VectorValue].
- public bool get_boolean (out bool boolean)
Gets the boolean value of this.
- public bool get_color (out RGBA color)
Gets the color value of this.
- public bool get_number (out double number)
Gets the number value of this.
- public bool get_string (out unowned string? string)
Gets the string value of this.
- public VectorValueType get_value_type ()
Gets the type of value stored in this
.
- public int hash ()
Calculates a hash value for this.
- public bool is_null ()
Checks if this is a null value.
- public void set_boolean (bool boolean)
Sets this to a boolean value.
- public void set_color (RGBA color)
Sets this to a color value.
- public void set_number (double number)
Sets this to a number value.
- public void set_string (string string)
Sets this to a string value.
- public void start_array ()
Sets this to an empty array value.
- public void unset ()
Sets this to a null value.