gi-gobject-2.0.16: GObject bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.GObject.Unions.TypeCValue

Contents

Description

A union holding one collected value.

Synopsis

Exported types

newtype TypeCValue Source #

Memory-managed wrapper type.

newZeroTypeCValue :: MonadIO m => m TypeCValue Source #

Construct a TypeCValue struct initialized to zero.

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 ]