Glib::VariantType - Utilities for dealing with the GVariant type system
Contents
Copyright
Copyright (C) 2003-2011 by the gtk2-perl team.
This software is licensed under the LGPL. See Glib for a full notice.
perl v5.40.0 2024-10-20 Glib::VariantType(3pm)
Hierarchy
Glib::Boxed
+----Glib::VariantType
Methods
varianttype=Glib::VariantType->new($type_string)
• $type_string (string)
varianttype=Glib::VariantType->new_array($element)
• $element (Glib::VariantType)
varianttype=Glib::VariantType->new_dict_entry($key,$value)
• $key (Glib::VariantType)
• $value (Glib::VariantType)
varianttype=Glib::VariantType->new_maybe($element)
• $element (Glib::VariantType)
varianttype=Glib::VariantType->new_tuple($items)
• $items (scalar)
varianttype=$type->elementboolean=$type1->equal($type2)
• $type2 (Glib::VariantType)
varianttype=$type->firstinteger=$type->hashboolean=$type->is_arrayboolean=$type->is_basicboolean=$type->is_containerboolean=$type->is_definiteboolean=$type->is_dict_entryboolean=$type->is_maybeboolean=$type->is_subtype_of($supertype)
• $supertype (Glib::VariantType)
boolean=$type->is_tupleboolean=$type->is_variantvarianttype=$type->keyunsigned=$type->n_itemsvarianttype=$type->nextscalar=$type->get_stringboolean=Glib::VariantType::string_is_valid($type_string)
• $type_string (string)
(type_string,rest)=Glib::VariantType::string_scan($string)
Scans the start of $string for a complete type string and extracts it. If no type string can be found,
an exception is thrown.
varianttype=$type->value
Name
Glib::VariantType - Utilities for dealing with the GVariant type system
See Also
Glib, Glib::Boxed, Glib::Variant
