gi-gobject-2.0.21: GObject bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (inaki@blueleaf.cc)
Safe HaskellNone
LanguageHaskell2010

GI.GObject.Structs.ParamSpecTypeInfo

Contents

Description

This structure is used to provide the type system with the information required to initialize and destruct (finalize) a parameter's class and instances thereof. The initialized structure is passed to the paramTypeRegisterStatic The type system will perform a deep copy of this structure, so its memory does not need to be persistent across invocation of paramTypeRegisterStatic.

Synopsis

Exported types

newZeroParamSpecTypeInfo :: MonadIO m => m ParamSpecTypeInfo Source #

Construct a ParamSpecTypeInfo struct initialized to zero.

Properties

finalize

No description available in the introspection data.

clearParamSpecTypeInfoFinalize :: MonadIO m => ParamSpecTypeInfo -> m () Source #

Set the value of the “finalize” field to Nothing. When overloading is enabled, this is equivalent to

clear #finalize

getParamSpecTypeInfoFinalize :: MonadIO m => ParamSpecTypeInfo -> m (Maybe ParamSpecTypeInfoFinalizeFieldCallback) Source #

Get the value of the “finalize” field. When overloading is enabled, this is equivalent to

get paramSpecTypeInfo #finalize

setParamSpecTypeInfoFinalize :: MonadIO m => ParamSpecTypeInfo -> FunPtr C_ParamSpecTypeInfoFinalizeFieldCallback -> m () Source #

Set the value of the “finalize” field. When overloading is enabled, this is equivalent to

set paramSpecTypeInfo [ #finalize := value ]

instanceInit

No description available in the introspection data.

clearParamSpecTypeInfoInstanceInit :: MonadIO m => ParamSpecTypeInfo -> m () Source #

Set the value of the “instance_init” field to Nothing. When overloading is enabled, this is equivalent to

clear #instanceInit

getParamSpecTypeInfoInstanceInit :: MonadIO m => ParamSpecTypeInfo -> m (Maybe ParamSpecTypeInfoInstanceInitFieldCallback) Source #

Get the value of the “instance_init” field. When overloading is enabled, this is equivalent to

get paramSpecTypeInfo #instanceInit

setParamSpecTypeInfoInstanceInit :: MonadIO m => ParamSpecTypeInfo -> FunPtr C_ParamSpecTypeInfoInstanceInitFieldCallback -> m () Source #

Set the value of the “instance_init” field. When overloading is enabled, this is equivalent to

set paramSpecTypeInfo [ #instanceInit := value ]

instanceSize

Size of the instance (object) structure.

getParamSpecTypeInfoInstanceSize :: MonadIO m => ParamSpecTypeInfo -> m Word16 Source #

Get the value of the “instance_size” field. When overloading is enabled, this is equivalent to

get paramSpecTypeInfo #instanceSize

setParamSpecTypeInfoInstanceSize :: MonadIO m => ParamSpecTypeInfo -> Word16 -> m () Source #

Set the value of the “instance_size” field. When overloading is enabled, this is equivalent to

set paramSpecTypeInfo [ #instanceSize := value ]

nPreallocs

Prior to GLib 2.10, it specified the number of pre-allocated (cached) instances to reserve memory for (0 indicates no caching). Since GLib 2.10, it is ignored, since instances are allocated with the [slice allocator][glib-Memory-Slices] now.

getParamSpecTypeInfoNPreallocs :: MonadIO m => ParamSpecTypeInfo -> m Word16 Source #

Get the value of the “n_preallocs” field. When overloading is enabled, this is equivalent to

get paramSpecTypeInfo #nPreallocs

setParamSpecTypeInfoNPreallocs :: MonadIO m => ParamSpecTypeInfo -> Word16 -> m () Source #

Set the value of the “n_preallocs” field. When overloading is enabled, this is equivalent to

set paramSpecTypeInfo [ #nPreallocs := value ]

valueSetDefault

No description available in the introspection data.

clearParamSpecTypeInfoValueSetDefault :: MonadIO m => ParamSpecTypeInfo -> m () Source #

Set the value of the “value_set_default” field to Nothing. When overloading is enabled, this is equivalent to

clear #valueSetDefault

getParamSpecTypeInfoValueSetDefault :: MonadIO m => ParamSpecTypeInfo -> m (Maybe ParamSpecTypeInfoValueSetDefaultFieldCallback) Source #

Get the value of the “value_set_default” field. When overloading is enabled, this is equivalent to

get paramSpecTypeInfo #valueSetDefault

setParamSpecTypeInfoValueSetDefault :: MonadIO m => ParamSpecTypeInfo -> FunPtr C_ParamSpecTypeInfoValueSetDefaultFieldCallback -> m () Source #

Set the value of the “value_set_default” field. When overloading is enabled, this is equivalent to

set paramSpecTypeInfo [ #valueSetDefault := value ]

valueType

The GType of values conforming to this ParamSpec

getParamSpecTypeInfoValueType :: MonadIO m => ParamSpecTypeInfo -> m GType Source #

Get the value of the “value_type” field. When overloading is enabled, this is equivalent to

get paramSpecTypeInfo #valueType

setParamSpecTypeInfoValueType :: MonadIO m => ParamSpecTypeInfo -> GType -> m () Source #

Set the value of the “value_type” field. When overloading is enabled, this is equivalent to

set paramSpecTypeInfo [ #valueType := value ]

valueValidate

No description available in the introspection data.

clearParamSpecTypeInfoValueValidate :: MonadIO m => ParamSpecTypeInfo -> m () Source #

Set the value of the “value_validate” field to Nothing. When overloading is enabled, this is equivalent to

clear #valueValidate

getParamSpecTypeInfoValueValidate :: MonadIO m => ParamSpecTypeInfo -> m (Maybe ParamSpecTypeInfoValueValidateFieldCallback) Source #

Get the value of the “value_validate” field. When overloading is enabled, this is equivalent to

get paramSpecTypeInfo #valueValidate

setParamSpecTypeInfoValueValidate :: MonadIO m => ParamSpecTypeInfo -> FunPtr C_ParamSpecTypeInfoValueValidateFieldCallback -> m () Source #

Set the value of the “value_validate” field. When overloading is enabled, this is equivalent to

set paramSpecTypeInfo [ #valueValidate := value ]

valuesCmp

No description available in the introspection data.

clearParamSpecTypeInfoValuesCmp :: MonadIO m => ParamSpecTypeInfo -> m () Source #

Set the value of the “values_cmp” field to Nothing. When overloading is enabled, this is equivalent to

clear #valuesCmp

getParamSpecTypeInfoValuesCmp :: MonadIO m => ParamSpecTypeInfo -> m (Maybe ParamSpecTypeInfoValuesCmpFieldCallback) Source #

Get the value of the “values_cmp” field. When overloading is enabled, this is equivalent to

get paramSpecTypeInfo #valuesCmp

setParamSpecTypeInfoValuesCmp :: MonadIO m => ParamSpecTypeInfo -> FunPtr C_ParamSpecTypeInfoValuesCmpFieldCallback -> m () Source #

Set the value of the “values_cmp” field. When overloading is enabled, this is equivalent to

set paramSpecTypeInfo [ #valuesCmp := value ]