Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
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
- noParameter :: Maybe Parameter
- clearParameterName :: MonadIO m => Parameter -> m ()
- getParameterName :: MonadIO m => Parameter -> m (Maybe Text)
- setParameterName :: MonadIO m => Parameter -> CString -> m ()
- getParameterValue :: MonadIO m => Parameter -> m GValue
Exported types
Memory-managed wrapper type.
Instances
Eq Parameter Source # | |
WrappedPtr Parameter Source # | |
Defined in GI.GObject.Structs.Parameter wrappedPtrCalloc :: IO (Ptr Parameter) # wrappedPtrCopy :: Parameter -> IO Parameter # | |
tag ~ 'AttrSet => Constructible Parameter tag Source # | |
Defined in GI.GObject.Structs.Parameter |
newZeroParameter :: MonadIO m => m Parameter Source #
Construct a Parameter
struct initialized to zero.
Methods
Overloaded 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
getParameterValue :: MonadIO m => Parameter -> m GValue Source #
Get the value of the “value
” field.
When overloading is enabled, this is equivalent to
get
parameter #value