Template.Symbol

Fields

None

Methods

class

new ()

assign_boolean (v_bool)

assign_double (v_double)

assign_object (v_object)

assign_string (v_string)

assign_strv (strv)

assign_value (value)

assign_variant (v_variant)

get_boxed ()

get_expr ()

get_symbol_type ()

get_value (value)

holds (type)

ref ()

unref ()

Details

class Template.Symbol
classmethod new()
Return type:

Template.Symbol

assign_boolean(v_bool)
Parameters:

v_bool (bool) –

assign_double(v_double)
Parameters:

v_double (float) –

assign_object(v_object)
Parameters:

v_object (GObject.Object or None) – a GObject.Object or None.

Sets the value to the object v_object.

assign_string(v_string)
Parameters:

v_string (str) –

assign_strv(strv)
Parameters:

strv ([str] or None) – the value to set, or None

Sets the value to the strv strv.

assign_value(value)
Parameters:

value (GObject.Value) –

assign_variant(v_variant)
Parameters:

v_variant (GLib.Variant or None) – a GLib.Variant or None.

Sets the value to the GLib.Variant v_variant.

If v_variant has a floating reference, it is consumed.

get_boxed()
Return type:

object or None

get_expr()
Returns:

A Template.Expr.

params:

A list of parameters

Return type:

(Template.Expr, params: [str])

get_symbol_type()
Return type:

Template.SymbolType

get_value(value)
Parameters:

value (GObject.Value) –

holds(type)
Parameters:

type (GObject.GType) –

Return type:

bool

ref()
Return type:

Template.Symbol

unref()