Ubuntu Manpages

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)

  • $type2 (Glib::VariantType)

boolean = $type->is_subtype_of ($supertype)

  • $supertype (Glib::VariantType)

  • $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.

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.