Shumate.VectorValue¶
Fields¶
None
Methods¶
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- class Shumate.VectorValue¶
A mutable value used in the vector style specification.
New in version 1.6.
- classmethod new()¶
- Returns:
a new [struct`VectorValue`] with a null value
- Return type:
Creates a new [struct`VectorValue`] with a null value.
New in version 1.6.
- classmethod new_boolean(boolean)¶
- Parameters:
boolean (
bool) – a boolean value- Returns:
a new [struct`VectorValue`] with the given boolean value
- Return type:
Creates a new [struct`VectorValue`] with a boolean value.
New in version 1.6.
- classmethod new_color(color)¶
- Parameters:
color (
Gdk.RGBA) – a [struct`Gdk`.RGBA]- Returns:
a new [struct`VectorValue`] with the given color value
- Return type:
Creates a new [struct`VectorValue`] with a color value.
New in version 1.6.
- classmethod new_from_value(value)¶
- Parameters:
value (
GObject.Value) – a [struct`GObject`.Value]- Returns:
a new [struct`VectorValue`] with the value from value
- Return type:
Creates a new [struct`VectorValue`] from a [struct`GObject`.Value].
New in version 1.6.
- classmethod new_number(number)¶
- Parameters:
number (
float) – a number value- Returns:
a new [struct`VectorValue`] with the given number value
- Return type:
Creates a new [struct`VectorValue`] with a number value.
New in version 1.6.
- classmethod new_string(string)¶
- Parameters:
string (
str) – a string value- Returns:
a new [struct`VectorValue`] with the given string value
- Return type:
Creates a new [struct`VectorValue`] with a string value.
New in version 1.6.
- array_append(element)¶
- Parameters:
element (
Shumate.VectorValue) – a [struct`VectorValue`] to append to the array
Appends element to the array value of self. The value of element is copied.
New in version 1.6.
- dup()¶
- Returns:
a new [struct`VectorValue`] which is a duplicate of self
- Return type:
Creates a duplicate of self.
New in version 1.6.
- equal(b)¶
- Parameters:
b (
Shumate.VectorValue) – a [struct`VectorValue`]- Returns:
- Return type:
Compares two [struct`VectorValue`]s for equality.
New in version 1.6.
- free()¶
Frees a [struct`VectorValue`].
New in version 1.6.
- get_boolean()¶
- Returns:
Trueif self is a boolean value and boolean was set,Falseotherwise- boolean:
a location to store the boolean value
- Return type:
Gets the boolean value of self.
New in version 1.6.
- get_color()¶
- Returns:
Trueif self is a color value and color was set,Falseotherwise- color:
a location to store the color value
- Return type:
Gets the color value of self.
If self is a string value, it will attempt to parse the string as a color.
New in version 1.6.
- get_number()¶
- Returns:
Trueif self is a number value and number was set,Falseotherwise- number:
a location to store the number value
- Return type:
Gets the number value of self.
New in version 1.6.
- get_string()¶
- Returns:
Trueif self is a string value and string was set,Falseotherwise- string:
a location to store the string value
- Return type:
Gets the string value of self.
New in version 1.6.
- get_value_type()¶
- Returns:
the type of self
- Return type:
Gets the type of value stored in self.
New in version 1.6.
- hash()¶
- Returns:
a hash value for self
- Return type:
Calculates a hash value for self.
New in version 1.6.
- is_null()¶
-
Checks if self is a null value.
New in version 1.6.
- set_boolean(boolean)¶
- Parameters:
boolean (
bool) – a boolean value
Sets self to a boolean value.
New in version 1.6.
- set_color(color)¶
- Parameters:
color (
Gdk.RGBA) – a [struct`Gdk`.RGBA]
Sets self to a color value.
New in version 1.6.
- set_number(number)¶
- Parameters:
number (
float) – a number value
Sets self to a number value.
New in version 1.6.
- set_string(string)¶
- Parameters:
string (
str) – a string value
Sets self to a string value.
New in version 1.6.
- start_array()¶
Sets self to an empty array value.
New in version 1.6.
- unset()¶
Sets self to a null value.
New in version 1.6.