ref_termprop_variant


Description:

[ Version ( since = "0.78" ) ]
public Variant? ref_termprop_variant (string prop)

Returns the value of prop as a Variant, or null if prop unset, or prop is not a registered property.

The VariantType of the returned Variant depends on the termprop type: * A vte_property_valueless termprop returns a g_variant_type_unit variant. * A vte_property_bool termprop returns a g_variant_type_boolean variant. * A vte_property_int termprop returns a g_variant_type_int64 variant. * A vte_property_uint termprop returns a g_variant_type_uint64 variant. * A vte_property_double termprop returns a g_variant_type_double variant. * A vte_property_rgb or vte_property_rgba termprop returns a "(ddddv)" tuple containing the red, green, blue, and alpha (1.0 for vte_property_rgb) components of the color and a variant of unspecified contents * A vte_property_string termprop returns a g_variant_type_string variant. * A vte_property_data termprop returns a "ay" variant (which is *not* a bytestring!). * A vte_property_uuid termprop returns a g_variant_type_string variant containing a string representation of the UUID in simple form. * A vte_property_uri termprop returns a g_variant_type_string variant containing a string representation of the URI * A vte_property_image termprop returns null since an image has no variant representation.

Parameters:

this

a Terminal

prop

a termprop name

Returns:

a floating Variant, or null