Handy.ValueObject

g GObject.Object GObject.Object Handy.ValueObject Handy.ValueObject GObject.Object->Handy.ValueObject

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (value)

copy_value (dest)

dup_string ()

get_string ()

get_value ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

value

GObject.Value

r/w/co

The contained value

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Handy.ValueObject(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Handy.ValueObjectClass

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:

Handy.ValueObject

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:

str

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:

str

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:

GObject.Value

Return the contained value.

New in version 1.0.

Property Details

Handy.ValueObject.props.value
Name:

value

Type:

GObject.Value

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The contained value.

New in version 1.0.