Glib::VariantType(3)
β¨ NAME β¨
okay bestie, welcome to the Glib::VariantType(3) page from the User Contributed Perl Documentation π this one is all about Glib::VariantType β utilities for dealing with the GVariant type system. Thatβs the whole vibe. Slay.
𧬠HIERARCHY π§¬
Glib::VariantType sits under Glib::Boxed like this:
Glib::Boxed
+----Glib::VariantType
π METHODS π
varianttype = Glib::VariantType->new ($type_string)β constructor moment; it takes a type string and gives you back avarianttype.$type_stringβ type:string
varianttype = Glib::VariantType->new_array ($element)β constructor for the array situation, using$element.$elementβ type:Glib::VariantType
varianttype = Glib::VariantType->new_dict_entry ($key, $value)β constructor for a dict entry, with$keyand$value.$keyβ type:Glib::VariantType$valueβ type:Glib::VariantType
varianttype = Glib::VariantType->new_maybe ($element)β constructor with$element, maybe-core π$elementβ type:Glib::VariantType
varianttype = Glib::VariantType->new_tuple ($items)β constructor for a tuple, taking$items.$itemsβ type:scalar
varianttype = $type->elementβ returns avarianttype.boolean = $type1->equal ($type2)β boolean check between$type1and$type2; returns aboolean.$type2β type:Glib::VariantType
varianttype = $type->firstβ returns avarianttype.integer = $type->hashβ returns aninteger.boolean = $type->is_arrayβ returns aboolean.boolean = $type->is_basicβ returns aboolean.boolean = $type->is_containerβ returns aboolean.boolean = $type->is_definiteβ returns aboolean.boolean = $type->is_dict_entryβ returns aboolean.boolean = $type->is_maybeβ returns aboolean.boolean = $type->is_subtype_of ($supertype)β boolean subtype check against$supertype; returns aboolean.$supertypeβ type:Glib::VariantType
boolean = $type->is_tupleβ returns aboolean.boolean = $type->is_variantβ returns aboolean.varianttype = $type->keyβ returns avarianttype.unsigned = $type->n_itemsβ returns anunsigned.varianttype = $type->nextβ returns avarianttype.scalar = $type->get_stringβ returns ascalar.boolean = Glib::VariantType::string_is_valid ($type_string)β boolean check for the type string; returns aboolean.$type_stringβ type:string
(type_string, rest) = Glib::VariantType::string_scan ($string)β this one scans the start of$stringfor a complete type string and extracts it. If no type string can be found, an exception is thrown. π« no cap, thatβs the rule.varianttype = $type->valueβ returns avarianttype.
π SEE ALSO π
GlibGlib::BoxedGlib::Variant
π COPYRIGHT π
Copyright (C) 2003-2011 by the gtk2-perl team.
This software is licensed under the LGPL. See Glib for a full notice.
βΏ This page is perl v5.42.0, dated 2023-09-05, and it is absolutely Glib::VariantType(3). Bye bestie! π
β¨
π¦ where this page comes from
- opensuse-leap 16.0: perl-Glib 1.3294-160000.2.2 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: perl-Glib 1.3294-160000.2.2 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: perl-Glib 1.3294-160000.2.2 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: perl-Glib 1.3294-160000.2.2 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms