Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
The GParameter struct is an auxiliary structure used
to hand parameter name/value pairs to objectNewv
.
Synopsis
- newtype Parameter = Parameter (ManagedPtr Parameter)
- newZeroParameter :: MonadIO m => m Parameter
- clearParameterName :: MonadIO m => Parameter -> m ()
- getParameterName :: MonadIO m => Parameter -> m (Maybe Text)
- setParameterName :: MonadIO m => Parameter -> CString -> m ()
- clearParameterValue :: MonadIO m => Parameter -> m ()
- getParameterValue :: MonadIO m => Parameter -> m (Maybe GValue)
- setParameterValue :: MonadIO m => Parameter -> Ptr GValue -> m ()
Exported types
Memory-managed wrapper type.
Instances
Eq Parameter Source # | |
BoxedPtr Parameter Source # | |
Defined in GI.GObject.Structs.Parameter boxedPtrCopy :: Parameter -> IO Parameter boxedPtrFree :: Parameter -> IO () | |
CallocPtr Parameter Source # | |
Defined in GI.GObject.Structs.Parameter boxedPtrCalloc :: IO (Ptr Parameter) | |
ManagedPtrNewtype Parameter Source # | |
Defined in GI.GObject.Structs.Parameter toManagedPtr :: Parameter -> ManagedPtr Parameter | |
tag ~ 'AttrSet => Constructible Parameter tag Source # | |
newZeroParameter :: MonadIO m => m Parameter Source #
Construct a Parameter
struct initialized to zero.
Methods
Properties
name
the parameter name
clearParameterName :: MonadIO m => Parameter -> m () Source #
Set the value of the “name
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#name
getParameterName :: MonadIO m => Parameter -> m (Maybe Text) Source #
Get the value of the “name
” field.
When overloading is enabled, this is equivalent to
get
parameter #name
setParameterName :: MonadIO m => Parameter -> CString -> m () Source #
Set the value of the “name
” field.
When overloading is enabled, this is equivalent to
set
parameter [ #name:=
value ]
value
the parameter value
clearParameterValue :: MonadIO m => Parameter -> m () Source #
Set the value of the “value
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#value
getParameterValue :: MonadIO m => Parameter -> m (Maybe GValue) Source #
Get the value of the “value
” field.
When overloading is enabled, this is equivalent to
get
parameter #value
setParameterValue :: MonadIO m => Parameter -> Ptr GValue -> m () Source #
Set the value of the “value
” field.
When overloading is enabled, this is equivalent to
set
parameter [ #value:=
value ]