// This is a generated file. Do not edit it. Generated from ../subprojects/glibmm-2.4/glib/glibmm/../src/variant_basictypes.h.m4 #ifndef DOXYGEN_SHOULD_SKIP_THIS #ifndef _GLIBMM_VARIANT_H_INCLUDE_VARIANT_BASICTYPES_H #error "glibmm/variant_basictypes.h cannot be included directly" #endif #endif namespace Glib { /** Specialization of Glib::Variant containing a bool type. * @newin{2,26} * @ingroup Variant */ template <> class GLIBMM_API Variant : public VariantBase { public: using CType = gboolean; /// Default constructor. Variant() : VariantBase() {} /** GVariant constructor. * @param castitem The GVariant to wrap. * @param take_a_reference Whether to take an extra reference of the * GVariant or not (not taking one could destroy the GVariant with the * wrapper). */ explicit Variant(GVariant* castitem, bool take_a_reference = false) : VariantBase(castitem, take_a_reference) {} /** Gets the Glib::VariantType. * @return The Glib::VariantType. */ static const VariantType& variant_type(); /** Creates a new Glib::Variant. * @param data The value of the new Glib::Variant. * @return The new Glib::Variant. */ static Variant create(bool data); /** Gets the value of the Glib::Variant. * @return The bool value of the Glib::Variant. */ bool get() const; }; /** Specialization of Glib::Variant containing a unsigned char type. * @newin{2,26} * @ingroup Variant */ template <> class GLIBMM_API Variant : public VariantBase { public: using CType = guchar; /// Default constructor. Variant() : VariantBase() {} /** GVariant constructor. * @param castitem The GVariant to wrap. * @param take_a_reference Whether to take an extra reference of the * GVariant or not (not taking one could destroy the GVariant with the * wrapper). */ explicit Variant(GVariant* castitem, bool take_a_reference = false) : VariantBase(castitem, take_a_reference) {} /** Gets the Glib::VariantType. * @return The Glib::VariantType. */ static const VariantType& variant_type(); /** Creates a new Glib::Variant. * @param data The value of the new Glib::Variant. * @return The new Glib::Variant. */ static Variant create(unsigned char data); /** Gets the value of the Glib::Variant. * @return The unsigned char value of the Glib::Variant. */ unsigned char get() const; }; /** Specialization of Glib::Variant containing a gint16 type. * @newin{2,26} * @ingroup Variant */ template <> class GLIBMM_API Variant : public VariantBase { public: using CType = gint16; /// Default constructor. Variant() : VariantBase() {} /** GVariant constructor. * @param castitem The GVariant to wrap. * @param take_a_reference Whether to take an extra reference of the * GVariant or not (not taking one could destroy the GVariant with the * wrapper). */ explicit Variant(GVariant* castitem, bool take_a_reference = false) : VariantBase(castitem, take_a_reference) {} /** Gets the Glib::VariantType. * @return The Glib::VariantType. */ static const VariantType& variant_type(); /** Creates a new Glib::Variant. * @param data The value of the new Glib::Variant. * @return The new Glib::Variant. */ static Variant create(gint16 data); /** Gets the value of the Glib::Variant. * @return The gint16 value of the Glib::Variant. */ gint16 get() const; }; /** Specialization of Glib::Variant containing a guint16 type. * @newin{2,26} * @ingroup Variant */ template <> class GLIBMM_API Variant : public VariantBase { public: using CType = guint16; /// Default constructor. Variant() : VariantBase() {} /** GVariant constructor. * @param castitem The GVariant to wrap. * @param take_a_reference Whether to take an extra reference of the * GVariant or not (not taking one could destroy the GVariant with the * wrapper). */ explicit Variant(GVariant* castitem, bool take_a_reference = false) : VariantBase(castitem, take_a_reference) {} /** Gets the Glib::VariantType. * @return The Glib::VariantType. */ static const VariantType& variant_type(); /** Creates a new Glib::Variant. * @param data The value of the new Glib::Variant. * @return The new Glib::Variant. */ static Variant create(guint16 data); /** Gets the value of the Glib::Variant. * @return The guint16 value of the Glib::Variant. */ guint16 get() const; }; /** Specialization of Glib::Variant containing a gint32 type. * @newin{2,26} * @ingroup Variant */ template <> class GLIBMM_API Variant : public VariantBase { public: using CType = gint32; /// Default constructor. Variant() : VariantBase() {} /** GVariant constructor. * @param castitem The GVariant to wrap. * @param take_a_reference Whether to take an extra reference of the * GVariant or not (not taking one could destroy the GVariant with the * wrapper). */ explicit Variant(GVariant* castitem, bool take_a_reference = false) : VariantBase(castitem, take_a_reference) {} /** Gets the Glib::VariantType. * @return The Glib::VariantType. */ static const VariantType& variant_type(); /** Creates a new Glib::Variant. * @param data The value of the new Glib::Variant. * @return The new Glib::Variant. */ static Variant create(gint32 data); /** Creates a new Glib::Variant of type VARIANT_TYPE_HANDLE. * @param data The value of the new Glib::Variant. * @return The new Glib::Variant. */ static Variant create_handle(gint32 data); /** Gets the value of the Glib::Variant. * @return The gint32 value of the Glib::Variant. */ gint32 get() const; }; /** Specialization of Glib::Variant containing a guint32 type. * @newin{2,26} * @ingroup Variant */ template <> class GLIBMM_API Variant : public VariantBase { public: using CType = guint32; /// Default constructor. Variant() : VariantBase() {} /** GVariant constructor. * @param castitem The GVariant to wrap. * @param take_a_reference Whether to take an extra reference of the * GVariant or not (not taking one could destroy the GVariant with the * wrapper). */ explicit Variant(GVariant* castitem, bool take_a_reference = false) : VariantBase(castitem, take_a_reference) {} /** Gets the Glib::VariantType. * @return The Glib::VariantType. */ static const VariantType& variant_type(); /** Creates a new Glib::Variant. * @param data The value of the new Glib::Variant. * @return The new Glib::Variant. */ static Variant create(guint32 data); /** Gets the value of the Glib::Variant. * @return The guint32 value of the Glib::Variant. */ guint32 get() const; }; /** Specialization of Glib::Variant containing a gint64 type. * @newin{2,26} * @ingroup Variant */ template <> class GLIBMM_API Variant : public VariantBase { public: using CType = gint64; /// Default constructor. Variant() : VariantBase() {} /** GVariant constructor. * @param castitem The GVariant to wrap. * @param take_a_reference Whether to take an extra reference of the * GVariant or not (not taking one could destroy the GVariant with the * wrapper). */ explicit Variant(GVariant* castitem, bool take_a_reference = false) : VariantBase(castitem, take_a_reference) {} /** Gets the Glib::VariantType. * @return The Glib::VariantType. */ static const VariantType& variant_type(); /** Creates a new Glib::Variant. * @param data The value of the new Glib::Variant. * @return The new Glib::Variant. */ static Variant create(gint64 data); /** Gets the value of the Glib::Variant. * @return The gint64 value of the Glib::Variant. */ gint64 get() const; }; /** Specialization of Glib::Variant containing a guint64 type. * @newin{2,26} * @ingroup Variant */ template <> class GLIBMM_API Variant : public VariantBase { public: using CType = guint64; /// Default constructor. Variant() : VariantBase() {} /** GVariant constructor. * @param castitem The GVariant to wrap. * @param take_a_reference Whether to take an extra reference of the * GVariant or not (not taking one could destroy the GVariant with the * wrapper). */ explicit Variant(GVariant* castitem, bool take_a_reference = false) : VariantBase(castitem, take_a_reference) {} /** Gets the Glib::VariantType. * @return The Glib::VariantType. */ static const VariantType& variant_type(); /** Creates a new Glib::Variant. * @param data The value of the new Glib::Variant. * @return The new Glib::Variant. */ static Variant create(guint64 data); /** Gets the value of the Glib::Variant. * @return The guint64 value of the Glib::Variant. */ guint64 get() const; }; /** Specialization of Glib::Variant containing a double type. * @newin{2,26} * @ingroup Variant */ template <> class GLIBMM_API Variant : public VariantBase { public: using CType = gdouble; /// Default constructor. Variant() : VariantBase() {} /** GVariant constructor. * @param castitem The GVariant to wrap. * @param take_a_reference Whether to take an extra reference of the * GVariant or not (not taking one could destroy the GVariant with the * wrapper). */ explicit Variant(GVariant* castitem, bool take_a_reference = false) : VariantBase(castitem, take_a_reference) {} /** Gets the Glib::VariantType. * @return The Glib::VariantType. */ static const VariantType& variant_type(); /** Creates a new Glib::Variant. * @param data The value of the new Glib::Variant. * @return The new Glib::Variant. */ static Variant create(double data); /** Gets the value of the Glib::Variant. * @return The double value of the Glib::Variant. */ double get() const; }; } // namespace Glib