Handy.ValueObject¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
The contained value |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Handy.ValueObject(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
An object representing a [struct`GObject`.Value].
The
HdyValueObject
object represents a [struct`GObject`.Value], allowing it to be used with [iface`Gio`.ListModel].New in version 1.0.
- classmethod new(value)¶
- Parameters:
value (
GObject.Value
) – the value to store- Returns:
a new
HdyValueObject
- Return type:
Creates a new
HdyValueObject
.New in version 1.0.
- copy_value(dest)¶
- Parameters:
dest (
GObject.Value
) – value with correct type to copy into
Copy data from the contained [struct`GObject`.Value] into dest.
New in version 1.0.
- dup_string()¶
- Returns:
a copy of the contained string
- Return type:
Gets a copy of the contained string if the value is of type
G_TYPE_STRING
.New in version 1.0.
- get_string()¶
- Returns:
the contained string
- Return type:
Returns the contained string if the value is of type
G_TYPE_STRING
.New in version 1.0.
- get_value()¶
- Returns:
the contained [struct`GObject`.Value]
- Return type:
Return the contained value.
New in version 1.0.
Property Details¶
- Handy.ValueObject.props.value¶
- Name:
value
- Type:
- Default Value:
- Flags:
The contained value.
New in version 1.0.