1Glib::VariantType(3) User Contributed Perl Documentation Glib::VariantType(3)
2
3
4
6 Glib::VariantType - Utilities for dealing with the GVariant type
7 system
8
10 Glib::Boxed
11 +----Glib::VariantType
12
14 varianttype = Glib::VariantType->new ($type_string)
15 · $type_string (string)
16
17 varianttype = Glib::VariantType->new_array ($element)
18 · $element (Glib::VariantType)
19
20 varianttype = Glib::VariantType->new_dict_entry ($key, $value)
21 · $key (Glib::VariantType)
22
23 · $value (Glib::VariantType)
24
25 varianttype = Glib::VariantType->new_maybe ($element)
26 · $element (Glib::VariantType)
27
28 varianttype = Glib::VariantType->new_tuple ($items)
29 · $items (scalar)
30
31 varianttype = $type->element
32 boolean = $type1->equal ($type2)
33 · $type2 (Glib::VariantType)
34
35 varianttype = $type->first
36 integer = $type->hash
37 boolean = $type->is_array
38 boolean = $type->is_basic
39 boolean = $type->is_container
40 boolean = $type->is_definite
41 boolean = $type->is_dict_entry
42 boolean = $type->is_maybe
43 boolean = $type->is_subtype_of ($supertype)
44 · $supertype (Glib::VariantType)
45
46 boolean = $type->is_tuple
47 boolean = $type->is_variant
48 varianttype = $type->key
49 unsigned = $type->n_items
50 varianttype = $type->next
51 scalar = $type->get_string
52 boolean = Glib::VariantType::string_is_valid ($type_string)
53 · $type_string (string)
54
55 (type_string, rest) = Glib::VariantType::string_scan ($string)
56 Scans the start of $string for a complete type string and extracts it.
57 If no type string can be found, an exception is thrown.
58
59 varianttype = $type->value
61 Glib, Glib::Boxed, Glib::Variant
62
64 Copyright (C) 2003-2011 by the gtk2-perl team.
65
66 This software is licensed under the LGPL. See Glib for a full notice.
67
68
69
70perl v5.32.0 2020-07-28 Glib::VariantType(3)