gvaluetypes.h File Reference

__G_VALUETYPES_H__

G_VALUE_HOLDS_CHAR

G_VALUE_HOLDS_CHAR: : a valid GValue structure

Checks whether the given GValue can hold values of type G_TYPE_CHAR.

Returns: TRUE on success.

G_VALUE_HOLDS_UCHAR

G_VALUE_HOLDS_UCHAR: : a valid GValue structure

Checks whether the given GValue can hold values of type G_TYPE_UCHAR.

Returns: TRUE on success.

G_VALUE_HOLDS_BOOLEAN

G_VALUE_HOLDS_BOOLEAN: : a valid GValue structure

Checks whether the given GValue can hold values of type G_TYPE_BOOLEAN.

Returns: TRUE on success.

G_VALUE_HOLDS_INT

G_VALUE_HOLDS_INT: : a valid GValue structure

Checks whether the given GValue can hold values of type G_TYPE_INT.

Returns: TRUE on success.

G_VALUE_HOLDS_UINT

G_VALUE_HOLDS_UINT: : a valid GValue structure

Checks whether the given GValue can hold values of type G_TYPE_UINT.

Returns: TRUE on success.

G_VALUE_HOLDS_LONG

G_VALUE_HOLDS_LONG: : a valid GValue structure

Checks whether the given GValue can hold values of type G_TYPE_LONG.

Returns: TRUE on success.

G_VALUE_HOLDS_ULONG

G_VALUE_HOLDS_ULONG: : a valid GValue structure

Checks whether the given GValue can hold values of type G_TYPE_ULONG.

Returns: TRUE on success.

G_VALUE_HOLDS_INT64

G_VALUE_HOLDS_INT64: : a valid GValue structure

Checks whether the given GValue can hold values of type G_TYPE_INT64.

Returns: TRUE on success.

G_VALUE_HOLDS_UINT64

G_VALUE_HOLDS_UINT64: : a valid GValue structure

Checks whether the given GValue can hold values of type G_TYPE_UINT64.

Returns: TRUE on success.

G_VALUE_HOLDS_FLOAT

G_VALUE_HOLDS_FLOAT: : a valid GValue structure

Checks whether the given GValue can hold values of type G_TYPE_FLOAT.

Returns: TRUE on success.

G_VALUE_HOLDS_DOUBLE

G_VALUE_HOLDS_DOUBLE: : a valid GValue structure

Checks whether the given GValue can hold values of type G_TYPE_DOUBLE.

Returns: TRUE on success.

G_VALUE_HOLDS_STRING

G_VALUE_HOLDS_STRING: : a valid GValue structure

Checks whether the given GValue can hold values of type G_TYPE_STRING.

Returns: TRUE on success.

G_VALUE_HOLDS_POINTER

G_VALUE_HOLDS_POINTER: : a valid GValue structure

Checks whether the given GValue can hold values of type G_TYPE_POINTER.

Returns: TRUE on success.

G_TYPE_GTYPE

G_TYPE_GTYPE:

The type for GType.

G_VALUE_HOLDS_GTYPE

G_VALUE_HOLDS_GTYPE: : a valid GValue structure

Checks whether the given GValue can hold values of type G_TYPE_GTYPE.

Since: 2.12 Returns: TRUE on success.

g_value_set_char ( GValue *, gchar )

IMPORT_C voidg_value_set_char(GValue *value,
gcharv_char
)

g_value_set_char: : a valid GValue of type G_TYPE_CHAR : character value to be set

Set the contents of a G_TYPE_CHAR GValue to .

g_value_get_char ( const GValue * )

IMPORT_C gcharg_value_get_char(const GValue *value)

g_value_get_char: : a valid GValue of type G_TYPE_CHAR

Get the contents of a G_TYPE_CHAR GValue.

Returns: character contents of

g_value_set_uchar ( GValue *, guchar )

IMPORT_C voidg_value_set_uchar(GValue *value,
gucharv_uchar
)

g_value_set_uchar: : a valid GValue of type G_TYPE_UCHAR : unsigned character value to be set

Set the contents of a G_TYPE_UCHAR GValue to .

g_value_get_uchar ( const GValue * )

IMPORT_C gucharg_value_get_uchar(const GValue *value)

g_value_get_uchar: : a valid GValue of type G_TYPE_UCHAR

Get the contents of a G_TYPE_UCHAR GValue.

Returns: unsigned character contents of

g_value_set_boolean ( GValue *, gboolean )

IMPORT_C voidg_value_set_boolean(GValue *value,
gbooleanv_boolean
)

g_value_set_boolean: : a valid GValue of type G_TYPE_BOOLEAN : boolean value to be set

Set the contents of a G_TYPE_BOOLEAN GValue to .

g_value_get_boolean ( const GValue * )

IMPORT_C gbooleang_value_get_boolean(const GValue *value)

g_value_get_boolean: : a valid GValue of type G_TYPE_BOOLEAN

Get the contents of a G_TYPE_BOOLEAN GValue.

Returns: boolean contents of

g_value_set_int ( GValue *, gint )

IMPORT_C voidg_value_set_int(GValue *value,
gintv_int
)

g_value_set_int: : a valid GValue of type G_TYPE_INT : integer value to be set

Set the contents of a G_TYPE_INT GValue to .

g_value_get_int ( const GValue * )

IMPORT_C gintg_value_get_int(const GValue *value)

g_value_get_int: : a valid GValue of type G_TYPE_INT

Get the contents of a G_TYPE_INT GValue.

Returns: integer contents of

g_value_set_uint ( GValue *, guint )

IMPORT_C voidg_value_set_uint(GValue *value,
guintv_uint
)

g_value_set_uint: : a valid GValue of type G_TYPE_UINT : unsigned integer value to be set

Set the contents of a G_TYPE_UINT GValue to .

g_value_get_uint ( const GValue * )

IMPORT_C guintg_value_get_uint(const GValue *value)

g_value_get_uint: : a valid GValue of type G_TYPE_UINT

Get the contents of a G_TYPE_UINT GValue.

Returns: unsigned integer contents of

g_value_set_long ( GValue *, glong )

IMPORT_C voidg_value_set_long(GValue *value,
glongv_long
)

g_value_set_long: : a valid GValue of type G_TYPE_LONG : long integer value to be set

Set the contents of a G_TYPE_LONG GValue to .

g_value_get_long ( const GValue * )

IMPORT_C glongg_value_get_long(const GValue *value)

g_value_get_long: : a valid GValue of type G_TYPE_LONG

Get the contents of a G_TYPE_LONG GValue.

Returns: long integer contents of

g_value_set_ulong ( GValue *, gulong )

IMPORT_C voidg_value_set_ulong(GValue *value,
gulongv_ulong
)

g_value_set_ulong: : a valid GValue of type G_TYPE_ULONG : unsigned long integer value to be set

Set the contents of a G_TYPE_ULONG GValue to .

g_value_get_ulong ( const GValue * )

IMPORT_C gulongg_value_get_ulong(const GValue *value)

g_value_get_ulong: : a valid GValue of type G_TYPE_ULONG

Get the contents of a G_TYPE_ULONG GValue.

Returns: unsigned long integer contents of

g_value_set_int64 ( GValue *, gint64 )

IMPORT_C voidg_value_set_int64(GValue *value,
gint64v_int64
)

g_value_get_int64: : a valid GValue of type G_TYPE_INT64

Get the contents of a G_TYPE_INT64 GValue.

Returns: 64bit integer contents of

g_value_get_int64 ( const GValue * )

IMPORT_C gint64g_value_get_int64(const GValue *value)

g_value_set_int64: : a valid GValue of type G_TYPE_INT64 : 64bit integer value to be set

Set the contents of a G_TYPE_INT64 GValue to .

g_value_set_uint64 ( GValue *, guint64 )

IMPORT_C voidg_value_set_uint64(GValue *value,
guint64v_uint64
)

g_value_set_uint64: : a valid GValue of type G_TYPE_UINT64 : unsigned 64bit integer value to be set

Set the contents of a G_TYPE_UINT64 GValue to .

g_value_get_uint64 ( const GValue * )

IMPORT_C guint64g_value_get_uint64(const GValue *value)

g_value_get_uint64: : a valid GValue of type G_TYPE_UINT64

Get the contents of a G_TYPE_UINT64 GValue.

Returns: unsigned 64bit integer contents of

g_value_set_float ( GValue *, gfloat )

IMPORT_C voidg_value_set_float(GValue *value,
gfloatv_float
)

g_value_set_float: : a valid GValue of type G_TYPE_FLOAT : float value to be set

Set the contents of a G_TYPE_FLOAT GValue to .

g_value_get_float ( const GValue * )

IMPORT_C gfloatg_value_get_float(const GValue *value)

g_value_get_float: : a valid GValue of type G_TYPE_FLOAT

Get the contents of a G_TYPE_FLOAT GValue.

Returns: float contents of

g_value_set_double ( GValue *, gdouble )

IMPORT_C voidg_value_set_double(GValue *value,
gdoublev_double
)

g_value_set_double: : a valid GValue of type G_TYPE_DOUBLE : double value to be set

Set the contents of a G_TYPE_DOUBLE GValue to .

g_value_get_double ( const GValue * )

IMPORT_C gdoubleg_value_get_double(const GValue *value)

g_value_get_double: : a valid GValue of type G_TYPE_DOUBLE

Get the contents of a G_TYPE_DOUBLE GValue.

Returns: double contents of

g_value_set_string ( GValue *, const gchar * )

IMPORT_C voidg_value_set_string(GValue *value,
const gchar *v_string
)

g_value_set_string: : a valid GValue of type G_TYPE_STRING : caller-owned string to be duplicated for the GValue

Set the contents of a G_TYPE_STRING GValue to .

g_value_set_static_string ( GValue *, const gchar * )

IMPORT_C voidg_value_set_static_string(GValue *value,
const gchar *v_string
)

g_value_set_static_string: : a valid GValue of type G_TYPE_STRING : static string to be set

Set the contents of a G_TYPE_STRING GValue to . The string is assumed to be static, and is thus not duplicated when setting the GValue.

g_value_get_string ( const GValue * )

IMPORT_C G_CONST_RETURN gchar *g_value_get_string(const GValue *value)

g_value_get_string: : a valid GValue of type G_TYPE_STRING

Get the contents of a G_TYPE_STRING GValue.

Returns: string content of

g_value_dup_string ( const GValue * )

IMPORT_C gchar *g_value_dup_string(const GValue *value)

g_value_dup_string: : a valid GValue of type G_TYPE_STRING

Get a copy the contents of a G_TYPE_STRING GValue.

Returns: a newly allocated copy of the string content of

g_value_set_pointer ( GValue *, gpointer )

IMPORT_C voidg_value_set_pointer(GValue *value,
gpointerv_pointer
)

g_value_set_pointer: : a valid GValue of G_TYPE_POINTER : pointer value to be set

Set the contents of a pointer GValue to .

g_value_get_pointer ( const GValue * )

IMPORT_C gpointerg_value_get_pointer(const GValue *value)

g_value_get_pointer: : a valid GValue of G_TYPE_POINTER

Get the contents of a pointer GValue.

Returns: pointer contents of

g_gtype_get_type ( void )

IMPORT_C GTypeg_gtype_get_type(void)

g_value_set_gtype ( GValue *, GType )

IMPORT_C voidg_value_set_gtype(GValue *value,
GTypev_gtype
)

g_value_set_gtype: : a valid GValue of type G_TYPE_GTYPE : GType to be set

Set the contents of a G_TYPE_GTYPE GValue to .

Since: 2.12

g_value_get_gtype ( const GValue * )

IMPORT_C GTypeg_value_get_gtype(const GValue *value)

g_value_get_gtype: : a valid GValue of type G_TYPE_GTYPE

Get the contents of a G_TYPE_GTYPE GValue.

Since: 2.12

Returns: the GType stored in

g_pointer_type_register_static ( const gchar * )

IMPORT_C GTypeg_pointer_type_register_static(const gchar *name)

g_strdup_value_contents ( const GValue * )

IMPORT_C gchar *g_strdup_value_contents(const GValue *value)

g_strdup_value_contents: : GValue which contents are to be described.

Return a newly allocated string, which describes the contents of a GValue. The main purpose of this function is to describe GValue contents for debugging output, the way in which the contents are described may change between different GLib versions.

Returns: Newly allocated string.

g_value_take_string ( GValue *, gchar * )

IMPORT_C voidg_value_take_string(GValue *value,
gchar *v_string
)

g_value_take_string: : a valid GValue of type G_TYPE_STRING : string to take ownership of

Sets the contents of a G_TYPE_STRING GValue to .

Since: 2.4

g_value_set_string_take_ownership ( GValue *, gchar * )

IMPORT_C voidg_value_set_string_take_ownership(GValue *value,
gchar *v_string
)

g_value_set_string_take_ownership: : a valid GValue of type G_TYPE_STRING : duplicated unowned string to be set

This is an internal function introduced mainly for C marshallers.

Deprecated: 2.4: Use g_value_take_string() instead.

Typedef gchararray

typedef gchar *gchararray

gchararray:

A C representable type name for G_TYPE_STRING.