Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
A union holding one collected value.
Synopsis
- newtype TypeCValue = TypeCValue (ManagedPtr TypeCValue)
- newZeroTypeCValue :: MonadIO m => m TypeCValue
- noTypeCValue :: Maybe TypeCValue
- getTypeCValueVDouble :: MonadIO m => TypeCValue -> m Double
- setTypeCValueVDouble :: MonadIO m => TypeCValue -> Double -> m ()
- getTypeCValueVInt :: MonadIO m => TypeCValue -> m Int32
- setTypeCValueVInt :: MonadIO m => TypeCValue -> Int32 -> m ()
- getTypeCValueVInt64 :: MonadIO m => TypeCValue -> m Int64
- setTypeCValueVInt64 :: MonadIO m => TypeCValue -> Int64 -> m ()
- getTypeCValueVLong :: MonadIO m => TypeCValue -> m CLong
- setTypeCValueVLong :: MonadIO m => TypeCValue -> CLong -> m ()
- clearTypeCValueVPointer :: MonadIO m => TypeCValue -> m ()
- getTypeCValueVPointer :: MonadIO m => TypeCValue -> m (Ptr ())
- setTypeCValueVPointer :: MonadIO m => TypeCValue -> Ptr () -> m ()
Exported types
newtype TypeCValue Source #
Memory-managed wrapper type.
Instances
WrappedPtr TypeCValue Source # | |
Defined in GI.GObject.Unions.TypeCValue wrappedPtrCalloc :: IO (Ptr TypeCValue) # wrappedPtrCopy :: TypeCValue -> IO TypeCValue # wrappedPtrFree :: Maybe (FunPtr (Ptr TypeCValue -> IO ())) # | |
tag ~ AttrSet => Constructible TypeCValue tag Source # | |
Defined in GI.GObject.Unions.TypeCValue new :: MonadIO m => (ManagedPtr TypeCValue -> TypeCValue) -> [AttrOp TypeCValue tag] -> m TypeCValue # |
newZeroTypeCValue :: MonadIO m => m TypeCValue Source #
Construct a TypeCValue
struct initialized to zero.
noTypeCValue :: Maybe TypeCValue Source #
A convenience alias for Nothing
:: Maybe
TypeCValue
.
Properties
vDouble
the field for holding floating point values
getTypeCValueVDouble :: MonadIO m => TypeCValue -> m Double Source #
Get the value of the “v_double
” field.
When overloading is enabled, this is equivalent to
get
typeCValue #vDouble
setTypeCValueVDouble :: MonadIO m => TypeCValue -> Double -> m () Source #
Set the value of the “v_double
” field.
When overloading is enabled, this is equivalent to
set
typeCValue [ #vDouble:=
value ]
vInt
the field for holding integer values
getTypeCValueVInt :: MonadIO m => TypeCValue -> m Int32 Source #
Get the value of the “v_int
” field.
When overloading is enabled, this is equivalent to
get
typeCValue #vInt
setTypeCValueVInt :: MonadIO m => TypeCValue -> Int32 -> m () Source #
Set the value of the “v_int
” field.
When overloading is enabled, this is equivalent to
set
typeCValue [ #vInt:=
value ]
vInt64
the field for holding 64 bit integer values
getTypeCValueVInt64 :: MonadIO m => TypeCValue -> m Int64 Source #
Get the value of the “v_int64
” field.
When overloading is enabled, this is equivalent to
get
typeCValue #vInt64
setTypeCValueVInt64 :: MonadIO m => TypeCValue -> Int64 -> m () Source #
Set the value of the “v_int64
” field.
When overloading is enabled, this is equivalent to
set
typeCValue [ #vInt64:=
value ]
vLong
the field for holding long integer values
getTypeCValueVLong :: MonadIO m => TypeCValue -> m CLong Source #
Get the value of the “v_long
” field.
When overloading is enabled, this is equivalent to
get
typeCValue #vLong
setTypeCValueVLong :: MonadIO m => TypeCValue -> CLong -> m () Source #
Set the value of the “v_long
” field.
When overloading is enabled, this is equivalent to
set
typeCValue [ #vLong:=
value ]
vPointer
the field for holding pointers
clearTypeCValueVPointer :: MonadIO m => TypeCValue -> m () Source #
Set the value of the “v_pointer
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#vPointer
getTypeCValueVPointer :: MonadIO m => TypeCValue -> m (Ptr ()) Source #
Get the value of the “v_pointer
” field.
When overloading is enabled, this is equivalent to
get
typeCValue #vPointer
setTypeCValueVPointer :: MonadIO m => TypeCValue -> Ptr () -> m () Source #
Set the value of the “v_pointer
” field.
When overloading is enabled, this is equivalent to
set
typeCValue [ #vPointer:=
value ]