Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (inaki@blueleaf.cc) |
Safe Haskell | None |
Language | Haskell2010 |
A structure holding information for a specific type.
It is filled in by the typeQuery
function.
Synopsis
- newtype TypeQuery = TypeQuery (ManagedPtr TypeQuery)
- newZeroTypeQuery :: MonadIO m => m TypeQuery
- noTypeQuery :: Maybe TypeQuery
- getTypeQueryClassSize :: MonadIO m => TypeQuery -> m Word32
- setTypeQueryClassSize :: MonadIO m => TypeQuery -> Word32 -> m ()
- getTypeQueryInstanceSize :: MonadIO m => TypeQuery -> m Word32
- setTypeQueryInstanceSize :: MonadIO m => TypeQuery -> Word32 -> m ()
- getTypeQueryType :: MonadIO m => TypeQuery -> m GType
- setTypeQueryType :: MonadIO m => TypeQuery -> GType -> m ()
- clearTypeQueryTypeName :: MonadIO m => TypeQuery -> m ()
- getTypeQueryTypeName :: MonadIO m => TypeQuery -> m (Maybe Text)
- setTypeQueryTypeName :: MonadIO m => TypeQuery -> CString -> m ()
Exported types
Memory-managed wrapper type.
Instances
WrappedPtr TypeQuery Source # | |
Defined in GI.GObject.Structs.TypeQuery wrappedPtrCalloc :: IO (Ptr TypeQuery) # wrappedPtrCopy :: TypeQuery -> IO TypeQuery # | |
tag ~ AttrSet => Constructible TypeQuery tag Source # | |
Defined in GI.GObject.Structs.TypeQuery |
newZeroTypeQuery :: MonadIO m => m TypeQuery Source #
Construct a TypeQuery
struct initialized to zero.
Properties
classSize
the size of the class structure
getTypeQueryClassSize :: MonadIO m => TypeQuery -> m Word32 Source #
Get the value of the “class_size
” field.
When overloading is enabled, this is equivalent to
get
typeQuery #classSize
setTypeQueryClassSize :: MonadIO m => TypeQuery -> Word32 -> m () Source #
Set the value of the “class_size
” field.
When overloading is enabled, this is equivalent to
set
typeQuery [ #classSize:=
value ]
instanceSize
the size of the instance structure
getTypeQueryInstanceSize :: MonadIO m => TypeQuery -> m Word32 Source #
Get the value of the “instance_size
” field.
When overloading is enabled, this is equivalent to
get
typeQuery #instanceSize
setTypeQueryInstanceSize :: MonadIO m => TypeQuery -> Word32 -> m () Source #
Set the value of the “instance_size
” field.
When overloading is enabled, this is equivalent to
set
typeQuery [ #instanceSize:=
value ]
type
the GType
value of the type
getTypeQueryType :: MonadIO m => TypeQuery -> m GType Source #
Get the value of the “type
” field.
When overloading is enabled, this is equivalent to
get
typeQuery #type
setTypeQueryType :: MonadIO m => TypeQuery -> GType -> m () Source #
Set the value of the “type
” field.
When overloading is enabled, this is equivalent to
set
typeQuery [ #type:=
value ]
typeName
the name of the type
clearTypeQueryTypeName :: MonadIO m => TypeQuery -> m () Source #
Set the value of the “type_name
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#typeName
getTypeQueryTypeName :: MonadIO m => TypeQuery -> m (Maybe Text) Source #
Get the value of the “type_name
” field.
When overloading is enabled, this is equivalent to
get
typeQuery #typeName
setTypeQueryTypeName :: MonadIO m => TypeQuery -> CString -> m () Source #
Set the value of the “type_name
” field.
When overloading is enabled, this is equivalent to
set
typeQuery [ #typeName:=
value ]