| Copyright | Will Thompson and Iñaki García Etxebarria |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.GObject.Unions.TypeCValue
Description
A union holding one collected value.
Synopsis
- newtype TypeCValue = TypeCValue (ManagedPtr TypeCValue)
- newZeroTypeCValue :: MonadIO m => m TypeCValue
- type family ResolveTypeCValueMethod (t :: Symbol) o where ...
- getTypeCValueVDouble :: MonadIO m => TypeCValue -> m Double
- setTypeCValueVDouble :: MonadIO m => TypeCValue -> Double -> m ()
- typeCValue_vDouble :: AttrLabelProxy "vDouble"
- getTypeCValueVInt :: MonadIO m => TypeCValue -> m Int32
- setTypeCValueVInt :: MonadIO m => TypeCValue -> Int32 -> m ()
- typeCValue_vInt :: AttrLabelProxy "vInt"
- getTypeCValueVInt64 :: MonadIO m => TypeCValue -> m Int64
- setTypeCValueVInt64 :: MonadIO m => TypeCValue -> Int64 -> m ()
- typeCValue_vInt64 :: AttrLabelProxy "vInt64"
- getTypeCValueVLong :: MonadIO m => TypeCValue -> m CLong
- setTypeCValueVLong :: MonadIO m => TypeCValue -> CLong -> m ()
- typeCValue_vLong :: AttrLabelProxy "vLong"
- clearTypeCValueVPointer :: MonadIO m => TypeCValue -> m ()
- getTypeCValueVPointer :: MonadIO m => TypeCValue -> m (Ptr ())
- setTypeCValueVPointer :: MonadIO m => TypeCValue -> Ptr () -> m ()
- typeCValue_vPointer :: AttrLabelProxy "vPointer"
Exported types
newtype TypeCValue Source #
Memory-managed wrapper type.
Constructors
| TypeCValue (ManagedPtr TypeCValue) |
Instances
newZeroTypeCValue :: MonadIO m => m TypeCValue Source #
Construct a TypeCValue struct initialized to zero.
Methods
type family ResolveTypeCValueMethod (t :: Symbol) o where ... Source #
Equations
| ResolveTypeCValueMethod l o = MethodResolutionFailed l o :: Type |
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
settypeCValue [ #vDouble:=value ]
typeCValue_vDouble :: AttrLabelProxy "vDouble" Source #
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
settypeCValue [ #vInt:=value ]
typeCValue_vInt :: AttrLabelProxy "vInt" Source #
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
settypeCValue [ #vInt64:=value ]
typeCValue_vInt64 :: AttrLabelProxy "vInt64" Source #
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
settypeCValue [ #vLong:=value ]
typeCValue_vLong :: AttrLabelProxy "vLong" Source #
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
settypeCValue [ #vPointer:=value ]
typeCValue_vPointer :: AttrLabelProxy "vPointer" Source #