DOKK / manpages / debian 11 / libglib-perl / Glib::VariantType.3pm.en
Glib::VariantType(3pm) User Contributed Perl Documentation Glib::VariantType(3pm)

Glib::VariantType - Utilities for dealing with the GVariant type system

  Glib::Boxed
  +----Glib::VariantType

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->element

$type2 (Glib::VariantType)

varianttype = $type->first

boolean = $type->is_array

boolean = $type->is_basic

boolean = $type->is_container

boolean = $type->is_definite

boolean = $type->is_dict_entry

boolean = $type->is_maybe

boolean = $type->is_subtype_of ($supertype)

$supertype (Glib::VariantType)

boolean = $type->is_tuple

boolean = $type->is_variant

varianttype = $type->key

varianttype = $type->next

$type_string (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

Glib, Glib::Boxed, Glib::Variant

Copyright (C) 2003-2011 by the gtk2-perl team.

This software is licensed under the LGPL. See Glib for a full notice.

2020-11-08 perl v5.32.0