adw-value-object

adw-value-object

Functions

Properties

GValue * value Read / Write / Construct Only

Types and Values

Object Hierarchy

    GObject
    ╰── AdwValueObject

Description

Functions

adw_value_object_new ()

AdwValueObject *
adw_value_object_new (const GValue *value);

Create a new AdwValueObject.

Parameters

value

the GValue to store

 

Returns

a new AdwValueObject

Since: 1.0


adw_value_object_new_collect ()

AdwValueObject *
adw_value_object_new_collect (GType type,
                              ...);

Creates a new AdwValueObject. This is a convenience method which uses the G_VALUE_COLLECT() macro internally.

[skip]

Parameters

type

the GType of the value

 

...

the value to store

 

Returns

a new AdwValueObject

Since: 1.0


adw_value_object_new_string ()

AdwValueObject *
adw_value_object_new_string (const char *string);

Creates a new AdwValueObject. This is a convenience method to create a AdwValueObject that stores a string.

[skip]

Parameters

string

the string to store.

[transfer none]

Returns

a new AdwValueObject

Since: 1.0


adw_value_object_new_take_string ()

AdwValueObject *
adw_value_object_new_take_string (char *string);

Creates a new AdwValueObject. This is a convenience method to create a AdwValueObject that stores a string taking ownership of it.

[skip]

Parameters

string

the string to store.

[transfer full]

Returns

a new AdwValueObject

Since: 1.0


adw_value_object_get_value ()

const GValue *
adw_value_object_get_value (AdwValueObject *value);

Return the contained value.

Parameters

value

the AdwValueObject

 

Returns

the contained GValue.

[transfer none]

Since: 1.0


adw_value_object_copy_value ()

void
adw_value_object_copy_value (AdwValueObject *value,
                             GValue *dest);

Copy data from the contained GValue into dest .

Parameters

value

the AdwValueObject

 

dest

GValue with correct type to copy into

 

Since: 1.0


adw_value_object_get_string ()

const char *
adw_value_object_get_string (AdwValueObject *value);

Returns the contained string if the value is of type G_TYPE_STRING.

Parameters

value

the AdwValueObject

 

Returns

the contained string.

[transfer none]

Since: 1.0


adw_value_object_dup_string ()

char *
adw_value_object_dup_string (AdwValueObject *value);

Returns a copy of the contained string if the value is of type G_TYPE_STRING.

Parameters

value

the AdwValueObject

 

Returns

a copy of the contained string.

[transfer full]

Since: 1.0

Types and Values

ADW_TYPE_VALUE_OBJECT

#define ADW_TYPE_VALUE_OBJECT (adw_value_object_get_type())

AdwValueObject

typedef struct _AdwValueObject AdwValueObject;

Property Details

The “value” property

  “value”                    GValue *

The contained value.

Owner: AdwValueObject

Flags: Read / Write / Construct Only