| Safe Haskell | None |
|---|---|
| Language | Haskell98 |
Data.GI.Base.GType
Description
Basic GTypes.
- newtype GType = GType {}
- type CGType = Word64
- gtypeName :: GType -> IO String
- gtypeString :: GType
- gtypePointer :: GType
- gtypeInt :: GType
- gtypeUInt :: GType
- gtypeLong :: GType
- gtypeULong :: GType
- gtypeInt64 :: GType
- gtypeUInt64 :: GType
- gtypeFloat :: GType
- gtypeDouble :: GType
- gtypeBoolean :: GType
- gtypeGType :: GType
- gtypeStrv :: GType
- gtypeBoxed :: GType
- gtypeObject :: GType
- gtypeVariant :: GType
- gtypeByteArray :: GType
- gtypeInvalid :: GType
Documentation
A newtype for use on the haskell side.
Constructors
| GType | |
Fields | |
A type identifier in the GLib type system. This is the low-level
type associated with the representation in memory, when using this
on the Haskell side use GType below.
gtypeString :: GType #
- Note: compile-time vs run-time GTypes
Notice that there are two types of GType's: the fundamental ones,
which are created with G_TYPE_MAKE_FUNDAMENTAL(n) and always have the
same runtime representation, and the ones that are registered in the
GObject type system at runtime, and whose CGType may change for each
program run (and generally does).
For the first type it is safe to use hsc to read the numerical values of the CGType at compile type, but for the second type it is essential to call the corresponding _get_type() function at runtime, and not use the value of the corresponding "constant" at compile time via hsc.
GType of strings.
gtypePointer :: GType #
GType of pointers.
gtypeULong :: GType #
GType for gulong.
gtypeInt64 :: GType #
GType for signed 64 bit integers.
gtypeUInt64 :: GType #
GType for unsigned 64 bit integers.
gtypeFloat :: GType #
GType for floating point values.
gtypeDouble :: GType #
GType for gdouble.
gtypeBoolean :: GType #
GType corresponding to gboolean.
gtypeGType :: GType #
gtypeBoxed :: GType #
GType corresponding to a BoxedObject.
gtypeObject :: GType #
GType corresponding to a GObject.
gtypeVariant :: GType #
The GType corresponding to a GVariant.
gtypeByteArray :: GType #
GType for a boxed type holding a GByteArray.
gtypeInvalid :: GType #