Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
The TypeValueTable
provides the functions required by the Value
implementation, to serve as a container for values of a type.
Synopsis
- newtype TypeValueTable = TypeValueTable (ManagedPtr TypeValueTable)
- newZeroTypeValueTable :: MonadIO m => m TypeValueTable
- clearTypeValueTableCollectFormat :: MonadIO m => TypeValueTable -> m ()
- getTypeValueTableCollectFormat :: MonadIO m => TypeValueTable -> m (Maybe Text)
- setTypeValueTableCollectFormat :: MonadIO m => TypeValueTable -> CString -> m ()
- clearTypeValueTableCollectValue :: MonadIO m => TypeValueTable -> m ()
- getTypeValueTableCollectValue :: MonadIO m => TypeValueTable -> m (Maybe TypeValueTableCollectValueFieldCallback)
- setTypeValueTableCollectValue :: MonadIO m => TypeValueTable -> FunPtr C_TypeValueTableCollectValueFieldCallback -> m ()
- clearTypeValueTableLcopyFormat :: MonadIO m => TypeValueTable -> m ()
- getTypeValueTableLcopyFormat :: MonadIO m => TypeValueTable -> m (Maybe Text)
- setTypeValueTableLcopyFormat :: MonadIO m => TypeValueTable -> CString -> m ()
- clearTypeValueTableLcopyValue :: MonadIO m => TypeValueTable -> m ()
- getTypeValueTableLcopyValue :: MonadIO m => TypeValueTable -> m (Maybe TypeValueTableLcopyValueFieldCallback)
- setTypeValueTableLcopyValue :: MonadIO m => TypeValueTable -> FunPtr C_TypeValueTableLcopyValueFieldCallback -> m ()
- clearTypeValueTableValueCopy :: MonadIO m => TypeValueTable -> m ()
- getTypeValueTableValueCopy :: MonadIO m => TypeValueTable -> m (Maybe TypeValueTableValueCopyFieldCallback)
- setTypeValueTableValueCopy :: MonadIO m => TypeValueTable -> FunPtr C_TypeValueTableValueCopyFieldCallback -> m ()
- clearTypeValueTableValueFree :: MonadIO m => TypeValueTable -> m ()
- getTypeValueTableValueFree :: MonadIO m => TypeValueTable -> m (Maybe TypeValueTableValueFreeFieldCallback)
- setTypeValueTableValueFree :: MonadIO m => TypeValueTable -> FunPtr C_TypeValueTableValueFreeFieldCallback -> m ()
- clearTypeValueTableValueInit :: MonadIO m => TypeValueTable -> m ()
- getTypeValueTableValueInit :: MonadIO m => TypeValueTable -> m (Maybe TypeValueTableValueInitFieldCallback)
- setTypeValueTableValueInit :: MonadIO m => TypeValueTable -> FunPtr C_TypeValueTableValueInitFieldCallback -> m ()
- clearTypeValueTableValuePeekPointer :: MonadIO m => TypeValueTable -> m ()
- getTypeValueTableValuePeekPointer :: MonadIO m => TypeValueTable -> m (Maybe TypeValueTableValuePeekPointerFieldCallback)
- setTypeValueTableValuePeekPointer :: MonadIO m => TypeValueTable -> FunPtr C_TypeValueTableValuePeekPointerFieldCallback -> m ()
Exported types
newtype TypeValueTable Source #
Memory-managed wrapper type.
Instances
Eq TypeValueTable Source # | |
Defined in GI.GObject.Structs.TypeValueTable (==) :: TypeValueTable -> TypeValueTable -> Bool # (/=) :: TypeValueTable -> TypeValueTable -> Bool # | |
BoxedPtr TypeValueTable Source # | |
Defined in GI.GObject.Structs.TypeValueTable boxedPtrCopy :: TypeValueTable -> IO TypeValueTable # boxedPtrFree :: TypeValueTable -> IO () # | |
CallocPtr TypeValueTable Source # | |
Defined in GI.GObject.Structs.TypeValueTable boxedPtrCalloc :: IO (Ptr TypeValueTable) # | |
ManagedPtrNewtype TypeValueTable Source # | |
Defined in GI.GObject.Structs.TypeValueTable | |
tag ~ 'AttrSet => Constructible TypeValueTable tag Source # | |
Defined in GI.GObject.Structs.TypeValueTable new :: MonadIO m => (ManagedPtr TypeValueTable -> TypeValueTable) -> [AttrOp TypeValueTable tag] -> m TypeValueTable # |
newZeroTypeValueTable :: MonadIO m => m TypeValueTable Source #
Construct a TypeValueTable
struct initialized to zero.
Methods
Properties
collectFormat
A string format describing how to collect the contents of this value bit-by-bit. Each character in the format represents an argument to be collected, and the characters themselves indicate the type of the argument. Currently supported arguments are: - 'i' - Integers. passed as collect_values[].v_int. - 'l' - Longs. passed as collect_values[].v_long. - 'd' - Doubles. passed as collect_values[].v_double. - 'p' - Pointers. passed as collect_values[].v_pointer. It should be noted that for variable argument list construction, ANSI C promotes every type smaller than an integer to an int, and floats to doubles. So for collection of short int or char, 'i' needs to be used, and for collection of floats 'd'.
clearTypeValueTableCollectFormat :: MonadIO m => TypeValueTable -> m () Source #
Set the value of the “collect_format
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#collectFormat
getTypeValueTableCollectFormat :: MonadIO m => TypeValueTable -> m (Maybe Text) Source #
Get the value of the “collect_format
” field.
When overloading is enabled, this is equivalent to
get
typeValueTable #collectFormat
setTypeValueTableCollectFormat :: MonadIO m => TypeValueTable -> CString -> m () Source #
Set the value of the “collect_format
” field.
When overloading is enabled, this is equivalent to
set
typeValueTable [ #collectFormat:=
value ]
collectValue
No description available in the introspection data.
clearTypeValueTableCollectValue :: MonadIO m => TypeValueTable -> m () Source #
Set the value of the “collect_value
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#collectValue
getTypeValueTableCollectValue :: MonadIO m => TypeValueTable -> m (Maybe TypeValueTableCollectValueFieldCallback) Source #
Get the value of the “collect_value
” field.
When overloading is enabled, this is equivalent to
get
typeValueTable #collectValue
setTypeValueTableCollectValue :: MonadIO m => TypeValueTable -> FunPtr C_TypeValueTableCollectValueFieldCallback -> m () Source #
Set the value of the “collect_value
” field.
When overloading is enabled, this is equivalent to
set
typeValueTable [ #collectValue:=
value ]
lcopyFormat
Format description of the arguments to collect for lcopyValue
,
analogous to collectFormat
. Usually, lcopyFormat
string consists
only of 'p's to provide lcopy_value()
with pointers to storage locations.
clearTypeValueTableLcopyFormat :: MonadIO m => TypeValueTable -> m () Source #
Set the value of the “lcopy_format
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#lcopyFormat
getTypeValueTableLcopyFormat :: MonadIO m => TypeValueTable -> m (Maybe Text) Source #
Get the value of the “lcopy_format
” field.
When overloading is enabled, this is equivalent to
get
typeValueTable #lcopyFormat
setTypeValueTableLcopyFormat :: MonadIO m => TypeValueTable -> CString -> m () Source #
Set the value of the “lcopy_format
” field.
When overloading is enabled, this is equivalent to
set
typeValueTable [ #lcopyFormat:=
value ]
lcopyValue
No description available in the introspection data.
clearTypeValueTableLcopyValue :: MonadIO m => TypeValueTable -> m () Source #
Set the value of the “lcopy_value
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#lcopyValue
getTypeValueTableLcopyValue :: MonadIO m => TypeValueTable -> m (Maybe TypeValueTableLcopyValueFieldCallback) Source #
Get the value of the “lcopy_value
” field.
When overloading is enabled, this is equivalent to
get
typeValueTable #lcopyValue
setTypeValueTableLcopyValue :: MonadIO m => TypeValueTable -> FunPtr C_TypeValueTableLcopyValueFieldCallback -> m () Source #
Set the value of the “lcopy_value
” field.
When overloading is enabled, this is equivalent to
set
typeValueTable [ #lcopyValue:=
value ]
valueCopy
No description available in the introspection data.
clearTypeValueTableValueCopy :: MonadIO m => TypeValueTable -> m () Source #
Set the value of the “value_copy
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#valueCopy
getTypeValueTableValueCopy :: MonadIO m => TypeValueTable -> m (Maybe TypeValueTableValueCopyFieldCallback) Source #
Get the value of the “value_copy
” field.
When overloading is enabled, this is equivalent to
get
typeValueTable #valueCopy
setTypeValueTableValueCopy :: MonadIO m => TypeValueTable -> FunPtr C_TypeValueTableValueCopyFieldCallback -> m () Source #
Set the value of the “value_copy
” field.
When overloading is enabled, this is equivalent to
set
typeValueTable [ #valueCopy:=
value ]
valueFree
No description available in the introspection data.
clearTypeValueTableValueFree :: MonadIO m => TypeValueTable -> m () Source #
Set the value of the “value_free
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#valueFree
getTypeValueTableValueFree :: MonadIO m => TypeValueTable -> m (Maybe TypeValueTableValueFreeFieldCallback) Source #
Get the value of the “value_free
” field.
When overloading is enabled, this is equivalent to
get
typeValueTable #valueFree
setTypeValueTableValueFree :: MonadIO m => TypeValueTable -> FunPtr C_TypeValueTableValueFreeFieldCallback -> m () Source #
Set the value of the “value_free
” field.
When overloading is enabled, this is equivalent to
set
typeValueTable [ #valueFree:=
value ]
valueInit
No description available in the introspection data.
clearTypeValueTableValueInit :: MonadIO m => TypeValueTable -> m () Source #
Set the value of the “value_init
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#valueInit
getTypeValueTableValueInit :: MonadIO m => TypeValueTable -> m (Maybe TypeValueTableValueInitFieldCallback) Source #
Get the value of the “value_init
” field.
When overloading is enabled, this is equivalent to
get
typeValueTable #valueInit
setTypeValueTableValueInit :: MonadIO m => TypeValueTable -> FunPtr C_TypeValueTableValueInitFieldCallback -> m () Source #
Set the value of the “value_init
” field.
When overloading is enabled, this is equivalent to
set
typeValueTable [ #valueInit:=
value ]
valuePeekPointer
No description available in the introspection data.
clearTypeValueTableValuePeekPointer :: MonadIO m => TypeValueTable -> m () Source #
Set the value of the “value_peek_pointer
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#valuePeekPointer
getTypeValueTableValuePeekPointer :: MonadIO m => TypeValueTable -> m (Maybe TypeValueTableValuePeekPointerFieldCallback) Source #
Get the value of the “value_peek_pointer
” field.
When overloading is enabled, this is equivalent to
get
typeValueTable #valuePeekPointer
setTypeValueTableValuePeekPointer :: MonadIO m => TypeValueTable -> FunPtr C_TypeValueTableValuePeekPointerFieldCallback -> m () Source #
Set the value of the “value_peek_pointer
” field.
When overloading is enabled, this is equivalent to
set
typeValueTable [ #valuePeekPointer:=
value ]