296 lines
6.1 KiB
HTML
296 lines
6.1 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of Glib::VariantType</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>Glib::VariantType</H1>
|
|
Section: User Contributed Perl Documentation (3pm)<BR>Updated: 2020-02-18<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
Glib::VariantType - Utilities for dealing with the GVariant type system
|
|
<A NAME="lbAC"> </A>
|
|
<H2>HIERARCHY</H2>
|
|
|
|
|
|
|
|
|
|
|
|
<PRE>
|
|
Glib::Boxed
|
|
+----Glib::VariantType
|
|
|
|
</PRE>
|
|
|
|
|
|
<A NAME="lbAD"> </A>
|
|
<H2>METHODS</H2>
|
|
|
|
|
|
|
|
<A NAME="lbAE"> </A>
|
|
<H3>varianttype = Glib::VariantType-><B>new</B> ($type_string)</H3>
|
|
|
|
|
|
|
|
<DL COMPACT>
|
|
<DT id="1">•<DD>
|
|
<TT>$type_string</TT> (string)
|
|
</DL>
|
|
<A NAME="lbAF"> </A>
|
|
<H3>varianttype = Glib::VariantType-><B>new_array</B> ($element)</H3>
|
|
|
|
|
|
|
|
<DL COMPACT>
|
|
<DT id="2">•<DD>
|
|
<TT>$element</TT> (Glib::VariantType)
|
|
</DL>
|
|
<A NAME="lbAG"> </A>
|
|
<H3>varianttype = Glib::VariantType-><B>new_dict_entry</B> ($key, $value)</H3>
|
|
|
|
|
|
|
|
|
|
|
|
<DL COMPACT>
|
|
<DT id="3">•<DD>
|
|
<TT>$key</TT> (Glib::VariantType)
|
|
<DT id="4">•<DD>
|
|
<TT>$value</TT> (Glib::VariantType)
|
|
</DL>
|
|
<A NAME="lbAH"> </A>
|
|
<H3>varianttype = Glib::VariantType-><B>new_maybe</B> ($element)</H3>
|
|
|
|
|
|
|
|
<DL COMPACT>
|
|
<DT id="5">•<DD>
|
|
<TT>$element</TT> (Glib::VariantType)
|
|
</DL>
|
|
<A NAME="lbAI"> </A>
|
|
<H3>varianttype = Glib::VariantType-><B>new_tuple</B> ($items)</H3>
|
|
|
|
|
|
|
|
<DL COMPACT>
|
|
<DT id="6">•<DD>
|
|
<TT>$items</TT> (scalar)
|
|
</DL>
|
|
<A NAME="lbAJ"> </A>
|
|
<H3>varianttype = $type-><B>element</B></H3>
|
|
|
|
|
|
|
|
|
|
|
|
<A NAME="lbAK"> </A>
|
|
<H3>boolean = $type1-><B>equal</B> ($type2)</H3>
|
|
|
|
|
|
|
|
|
|
|
|
<DL COMPACT>
|
|
<DT id="7">•<DD>
|
|
<TT>$type2</TT> (Glib::VariantType)
|
|
</DL>
|
|
<A NAME="lbAL"> </A>
|
|
<H3>varianttype = $type-><B>first</B></H3>
|
|
|
|
|
|
|
|
|
|
|
|
<A NAME="lbAM"> </A>
|
|
<H3>integer = $type-><B>hash</B></H3>
|
|
|
|
|
|
|
|
|
|
|
|
<A NAME="lbAN"> </A>
|
|
<H3>boolean = $type-><B>is_array</B></H3>
|
|
|
|
|
|
|
|
|
|
|
|
<A NAME="lbAO"> </A>
|
|
<H3>boolean = $type-><B>is_basic</B></H3>
|
|
|
|
|
|
|
|
|
|
|
|
<A NAME="lbAP"> </A>
|
|
<H3>boolean = $type-><B>is_container</B></H3>
|
|
|
|
|
|
|
|
|
|
|
|
<A NAME="lbAQ"> </A>
|
|
<H3>boolean = $type-><B>is_definite</B></H3>
|
|
|
|
|
|
|
|
|
|
|
|
<A NAME="lbAR"> </A>
|
|
<H3>boolean = $type-><B>is_dict_entry</B></H3>
|
|
|
|
|
|
|
|
|
|
|
|
<A NAME="lbAS"> </A>
|
|
<H3>boolean = $type-><B>is_maybe</B></H3>
|
|
|
|
|
|
|
|
|
|
|
|
<A NAME="lbAT"> </A>
|
|
<H3>boolean = $type-><B>is_subtype_of</B> ($supertype)</H3>
|
|
|
|
|
|
|
|
|
|
|
|
<DL COMPACT>
|
|
<DT id="8">•<DD>
|
|
<TT>$supertype</TT> (Glib::VariantType)
|
|
</DL>
|
|
<A NAME="lbAU"> </A>
|
|
<H3>boolean = $type-><B>is_tuple</B></H3>
|
|
|
|
|
|
|
|
|
|
|
|
<A NAME="lbAV"> </A>
|
|
<H3>boolean = $type-><B>is_variant</B></H3>
|
|
|
|
|
|
|
|
|
|
|
|
<A NAME="lbAW"> </A>
|
|
<H3>varianttype = $type-><B>key</B></H3>
|
|
|
|
|
|
|
|
|
|
|
|
<A NAME="lbAX"> </A>
|
|
<H3>unsigned = $type-><B>n_items</B></H3>
|
|
|
|
|
|
|
|
|
|
|
|
<A NAME="lbAY"> </A>
|
|
<H3>varianttype = $type-><B>next</B></H3>
|
|
|
|
|
|
|
|
|
|
|
|
<A NAME="lbAZ"> </A>
|
|
<H3>scalar = $type-><B>get_string</B></H3>
|
|
|
|
|
|
|
|
|
|
|
|
<A NAME="lbBA"> </A>
|
|
<H3>boolean = Glib::VariantType::string_is_valid ($type_string)</H3>
|
|
|
|
|
|
|
|
<DL COMPACT>
|
|
<DT id="9">•<DD>
|
|
<TT>$type_string</TT> (string)
|
|
</DL>
|
|
<A NAME="lbBB"> </A>
|
|
<H3>(type_string, rest) = Glib::VariantType::string_scan ($string)</H3>
|
|
|
|
|
|
|
|
Scans the start of <TT>$string</TT> for a complete type string and extracts it. If
|
|
no type string can be found, an exception is thrown.
|
|
<A NAME="lbBC"> </A>
|
|
<H3>varianttype = $type-><B>value</B></H3>
|
|
|
|
|
|
|
|
|
|
|
|
<A NAME="lbBD"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
|
|
|
|
Glib, Glib::Boxed, Glib::Variant
|
|
<A NAME="lbBE"> </A>
|
|
<H2>COPYRIGHT</H2>
|
|
|
|
|
|
|
|
Copyright (C) 2003-2011 by the gtk2-perl team.
|
|
<P>
|
|
|
|
This software is licensed under the <FONT SIZE="-1">LGPL.</FONT> See Glib for a full notice.
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="10"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="11"><A HREF="#lbAC">HIERARCHY</A><DD>
|
|
<DT id="12"><A HREF="#lbAD">METHODS</A><DD>
|
|
<DL>
|
|
<DT id="13"><A HREF="#lbAE">varianttype = Glib::VariantType-><B>new</B> ($type_string)</A><DD>
|
|
<DT id="14"><A HREF="#lbAF">varianttype = Glib::VariantType-><B>new_array</B> ($element)</A><DD>
|
|
<DT id="15"><A HREF="#lbAG">varianttype = Glib::VariantType-><B>new_dict_entry</B> ($key, $value)</A><DD>
|
|
<DT id="16"><A HREF="#lbAH">varianttype = Glib::VariantType-><B>new_maybe</B> ($element)</A><DD>
|
|
<DT id="17"><A HREF="#lbAI">varianttype = Glib::VariantType-><B>new_tuple</B> ($items)</A><DD>
|
|
<DT id="18"><A HREF="#lbAJ">varianttype = $type-><B>element</B></A><DD>
|
|
<DT id="19"><A HREF="#lbAK">boolean = $type1-><B>equal</B> ($type2)</A><DD>
|
|
<DT id="20"><A HREF="#lbAL">varianttype = $type-><B>first</B></A><DD>
|
|
<DT id="21"><A HREF="#lbAM">integer = $type-><B>hash</B></A><DD>
|
|
<DT id="22"><A HREF="#lbAN">boolean = $type-><B>is_array</B></A><DD>
|
|
<DT id="23"><A HREF="#lbAO">boolean = $type-><B>is_basic</B></A><DD>
|
|
<DT id="24"><A HREF="#lbAP">boolean = $type-><B>is_container</B></A><DD>
|
|
<DT id="25"><A HREF="#lbAQ">boolean = $type-><B>is_definite</B></A><DD>
|
|
<DT id="26"><A HREF="#lbAR">boolean = $type-><B>is_dict_entry</B></A><DD>
|
|
<DT id="27"><A HREF="#lbAS">boolean = $type-><B>is_maybe</B></A><DD>
|
|
<DT id="28"><A HREF="#lbAT">boolean = $type-><B>is_subtype_of</B> ($supertype)</A><DD>
|
|
<DT id="29"><A HREF="#lbAU">boolean = $type-><B>is_tuple</B></A><DD>
|
|
<DT id="30"><A HREF="#lbAV">boolean = $type-><B>is_variant</B></A><DD>
|
|
<DT id="31"><A HREF="#lbAW">varianttype = $type-><B>key</B></A><DD>
|
|
<DT id="32"><A HREF="#lbAX">unsigned = $type-><B>n_items</B></A><DD>
|
|
<DT id="33"><A HREF="#lbAY">varianttype = $type-><B>next</B></A><DD>
|
|
<DT id="34"><A HREF="#lbAZ">scalar = $type-><B>get_string</B></A><DD>
|
|
<DT id="35"><A HREF="#lbBA">boolean = Glib::VariantType::string_is_valid ($type_string)</A><DD>
|
|
<DT id="36"><A HREF="#lbBB">(type_string, rest) = Glib::VariantType::string_scan ($string)</A><DD>
|
|
<DT id="37"><A HREF="#lbBC">varianttype = $type-><B>value</B></A><DD>
|
|
</DL>
|
|
<DT id="38"><A HREF="#lbBD">SEE ALSO</A><DD>
|
|
<DT id="39"><A HREF="#lbBE">COPYRIGHT</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:45 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|