haskell-gi-base-0.26.9: Foundation for libraries generated by haskell-gi

Safe Haskell | None
Language | Haskell2010

Data.GI.Base.GType

Description

Basic `GType`s.

Synopsis

- gtypeString :: GType
- gtypePointer :: GType
- gtypeInt :: GType
- gtypeUInt :: GType
- gtypeLong :: GType
- gtypeULong :: GType
- gtypeInt64 :: GType
- gtypeUInt64 :: GType
- gtypeFloat :: GType
- gtypeDouble :: GType
- gtypeBoolean :: GType
- gtypeError :: GType
- gtypeGType :: GType
- gtypeStrv :: GType
- gtypeBoxed :: GType
- gtypeObject :: GType
- gtypeVariant :: GType
- gtypeByteArray :: GType
- gtypeInvalid :: GType
- gtypeParam :: GType
- gtypeStablePtr :: GType
- gtypeHValue :: GType

# Documentation

gtypeString :: GType Source #

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 Source #

`GType` of pointers.

gtypeInt :: GType Source #

`GType` for signed integers (`gint` or `gint32`).

gtypeUInt :: GType Source #

`GType` for unsigned integers (`guint` or `guint32`).

gtypeLong :: GType Source #

`GType` for `glong`.

gtypeULong :: GType Source #

`GType` for `gulong`.

gtypeInt64 :: GType Source #

`GType` for signed 64 bit integers.

gtypeUInt64 :: GType Source #

`GType` for unsigned 64 bit integers.

gtypeFloat :: GType Source #

`GType` for floating point values.

gtypeDouble :: GType Source #

`GType` for gdouble.

gtypeBoolean :: GType Source #

`GType` corresponding to gboolean.

gtypeError :: GType Source #

The `GType` corresponding to `GError`.

gtypeGType :: GType Source #

`GType` corresponding to a `GType` itself.

gtypeStrv :: GType Source #

`GType` for a NULL terminated array of strings.

gtypeBoxed :: GType Source #

`GType` corresponding to a boxed object.

gtypeObject :: GType Source #

`GType` corresponding to a `GObject`.

gtypeVariant :: GType Source #

The `GType` corresponding to a `GVariant`.

gtypeByteArray :: GType Source #

`GType` for a boxed type holding a `GByteArray`.

gtypeInvalid :: GType Source #

An invalid `GType` used as error return value in some functions which return a `GType`.

gtypeParam :: GType Source #

The `GType` corresponding to `GParamSpec`.

gtypeStablePtr :: GType Source #

The `GType` for boxed `StablePtr`s.

gtypeHValue :: GType Source #

The `GType` for a generic Haskell value.