| 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.GLib.Unions.TokenValue
Description
A union holding the value of the token.
Synopsis
- newtype TokenValue = TokenValue (ManagedPtr TokenValue)
- newZeroTokenValue :: MonadIO m => m TokenValue
- type family ResolveTokenValueMethod (t :: Symbol) o where ...
- getTokenValueVBinary :: MonadIO m => TokenValue -> m CULong
- setTokenValueVBinary :: MonadIO m => TokenValue -> CULong -> m ()
- tokenValue_vBinary :: AttrLabelProxy "vBinary"
- getTokenValueVChar :: MonadIO m => TokenValue -> m Word8
- setTokenValueVChar :: MonadIO m => TokenValue -> Word8 -> m ()
- tokenValue_vChar :: AttrLabelProxy "vChar"
- clearTokenValueVComment :: MonadIO m => TokenValue -> m ()
- getTokenValueVComment :: MonadIO m => TokenValue -> m (Maybe Text)
- setTokenValueVComment :: MonadIO m => TokenValue -> CString -> m ()
- tokenValue_vComment :: AttrLabelProxy "vComment"
- getTokenValueVError :: MonadIO m => TokenValue -> m Word32
- setTokenValueVError :: MonadIO m => TokenValue -> Word32 -> m ()
- tokenValue_vError :: AttrLabelProxy "vError"
- getTokenValueVFloat :: MonadIO m => TokenValue -> m Double
- setTokenValueVFloat :: MonadIO m => TokenValue -> Double -> m ()
- tokenValue_vFloat :: AttrLabelProxy "vFloat"
- getTokenValueVHex :: MonadIO m => TokenValue -> m CULong
- setTokenValueVHex :: MonadIO m => TokenValue -> CULong -> m ()
- tokenValue_vHex :: AttrLabelProxy "vHex"
- clearTokenValueVIdentifier :: MonadIO m => TokenValue -> m ()
- getTokenValueVIdentifier :: MonadIO m => TokenValue -> m (Maybe Text)
- setTokenValueVIdentifier :: MonadIO m => TokenValue -> CString -> m ()
- tokenValue_vIdentifier :: AttrLabelProxy "vIdentifier"
- getTokenValueVInt :: MonadIO m => TokenValue -> m CULong
- setTokenValueVInt :: MonadIO m => TokenValue -> CULong -> m ()
- tokenValue_vInt :: AttrLabelProxy "vInt"
- getTokenValueVInt64 :: MonadIO m => TokenValue -> m Word64
- setTokenValueVInt64 :: MonadIO m => TokenValue -> Word64 -> m ()
- tokenValue_vInt64 :: AttrLabelProxy "vInt64"
- getTokenValueVOctal :: MonadIO m => TokenValue -> m CULong
- setTokenValueVOctal :: MonadIO m => TokenValue -> CULong -> m ()
- tokenValue_vOctal :: AttrLabelProxy "vOctal"
- clearTokenValueVString :: MonadIO m => TokenValue -> m ()
- getTokenValueVString :: MonadIO m => TokenValue -> m (Maybe Text)
- setTokenValueVString :: MonadIO m => TokenValue -> CString -> m ()
- tokenValue_vString :: AttrLabelProxy "vString"
- clearTokenValueVSymbol :: MonadIO m => TokenValue -> m ()
- getTokenValueVSymbol :: MonadIO m => TokenValue -> m (Ptr ())
- setTokenValueVSymbol :: MonadIO m => TokenValue -> Ptr () -> m ()
- tokenValue_vSymbol :: AttrLabelProxy "vSymbol"
Exported types
newtype TokenValue Source #
Memory-managed wrapper type.
Constructors
| TokenValue (ManagedPtr TokenValue) |
Instances
newZeroTokenValue :: MonadIO m => m TokenValue Source #
Construct a TokenValue struct initialized to zero.
Methods
type family ResolveTokenValueMethod (t :: Symbol) o where ... Source #
Equations
| ResolveTokenValueMethod l o = MethodResolutionFailed l o :: Type |
Properties
vBinary
token binary integer value
getTokenValueVBinary :: MonadIO m => TokenValue -> m CULong Source #
Get the value of the “v_binary” field.
When overloading is enabled, this is equivalent to
get tokenValue #vBinary
setTokenValueVBinary :: MonadIO m => TokenValue -> CULong -> m () Source #
Set the value of the “v_binary” field.
When overloading is enabled, this is equivalent to
settokenValue [ #vBinary:=value ]
tokenValue_vBinary :: AttrLabelProxy "vBinary" Source #
vChar
character value
getTokenValueVChar :: MonadIO m => TokenValue -> m Word8 Source #
Get the value of the “v_char” field.
When overloading is enabled, this is equivalent to
get tokenValue #vChar
setTokenValueVChar :: MonadIO m => TokenValue -> Word8 -> m () Source #
Set the value of the “v_char” field.
When overloading is enabled, this is equivalent to
settokenValue [ #vChar:=value ]
tokenValue_vChar :: AttrLabelProxy "vChar" Source #
vComment
comment value
clearTokenValueVComment :: MonadIO m => TokenValue -> m () Source #
Set the value of the “v_comment” field to Nothing.
When overloading is enabled, this is equivalent to
clear #vComment
getTokenValueVComment :: MonadIO m => TokenValue -> m (Maybe Text) Source #
Get the value of the “v_comment” field.
When overloading is enabled, this is equivalent to
get tokenValue #vComment
setTokenValueVComment :: MonadIO m => TokenValue -> CString -> m () Source #
Set the value of the “v_comment” field.
When overloading is enabled, this is equivalent to
settokenValue [ #vComment:=value ]
tokenValue_vComment :: AttrLabelProxy "vComment" Source #
vError
error value
getTokenValueVError :: MonadIO m => TokenValue -> m Word32 Source #
Get the value of the “v_error” field.
When overloading is enabled, this is equivalent to
get tokenValue #vError
setTokenValueVError :: MonadIO m => TokenValue -> Word32 -> m () Source #
Set the value of the “v_error” field.
When overloading is enabled, this is equivalent to
settokenValue [ #vError:=value ]
tokenValue_vError :: AttrLabelProxy "vError" Source #
vFloat
floating point value
getTokenValueVFloat :: MonadIO m => TokenValue -> m Double Source #
Get the value of the “v_float” field.
When overloading is enabled, this is equivalent to
get tokenValue #vFloat
setTokenValueVFloat :: MonadIO m => TokenValue -> Double -> m () Source #
Set the value of the “v_float” field.
When overloading is enabled, this is equivalent to
settokenValue [ #vFloat:=value ]
tokenValue_vFloat :: AttrLabelProxy "vFloat" Source #
vHex
hex integer value
getTokenValueVHex :: MonadIO m => TokenValue -> m CULong Source #
Get the value of the “v_hex” field.
When overloading is enabled, this is equivalent to
get tokenValue #vHex
setTokenValueVHex :: MonadIO m => TokenValue -> CULong -> m () Source #
Set the value of the “v_hex” field.
When overloading is enabled, this is equivalent to
settokenValue [ #vHex:=value ]
tokenValue_vHex :: AttrLabelProxy "vHex" Source #
vIdentifier
token identifier value
clearTokenValueVIdentifier :: MonadIO m => TokenValue -> m () Source #
Set the value of the “v_identifier” field to Nothing.
When overloading is enabled, this is equivalent to
clear #vIdentifier
getTokenValueVIdentifier :: MonadIO m => TokenValue -> m (Maybe Text) Source #
Get the value of the “v_identifier” field.
When overloading is enabled, this is equivalent to
get tokenValue #vIdentifier
setTokenValueVIdentifier :: MonadIO m => TokenValue -> CString -> m () Source #
Set the value of the “v_identifier” field.
When overloading is enabled, this is equivalent to
settokenValue [ #vIdentifier:=value ]
tokenValue_vIdentifier :: AttrLabelProxy "vIdentifier" Source #
vInt
integer value
getTokenValueVInt :: MonadIO m => TokenValue -> m CULong Source #
Get the value of the “v_int” field.
When overloading is enabled, this is equivalent to
get tokenValue #vInt
setTokenValueVInt :: MonadIO m => TokenValue -> CULong -> m () Source #
Set the value of the “v_int” field.
When overloading is enabled, this is equivalent to
settokenValue [ #vInt:=value ]
tokenValue_vInt :: AttrLabelProxy "vInt" Source #
vInt64
64-bit integer value
getTokenValueVInt64 :: MonadIO m => TokenValue -> m Word64 Source #
Get the value of the “v_int64” field.
When overloading is enabled, this is equivalent to
get tokenValue #vInt64
setTokenValueVInt64 :: MonadIO m => TokenValue -> Word64 -> m () Source #
Set the value of the “v_int64” field.
When overloading is enabled, this is equivalent to
settokenValue [ #vInt64:=value ]
tokenValue_vInt64 :: AttrLabelProxy "vInt64" Source #
vOctal
octal integer value
getTokenValueVOctal :: MonadIO m => TokenValue -> m CULong Source #
Get the value of the “v_octal” field.
When overloading is enabled, this is equivalent to
get tokenValue #vOctal
setTokenValueVOctal :: MonadIO m => TokenValue -> CULong -> m () Source #
Set the value of the “v_octal” field.
When overloading is enabled, this is equivalent to
settokenValue [ #vOctal:=value ]
tokenValue_vOctal :: AttrLabelProxy "vOctal" Source #
vString
string value
clearTokenValueVString :: MonadIO m => TokenValue -> m () Source #
Set the value of the “v_string” field to Nothing.
When overloading is enabled, this is equivalent to
clear #vString
getTokenValueVString :: MonadIO m => TokenValue -> m (Maybe Text) Source #
Get the value of the “v_string” field.
When overloading is enabled, this is equivalent to
get tokenValue #vString
setTokenValueVString :: MonadIO m => TokenValue -> CString -> m () Source #
Set the value of the “v_string” field.
When overloading is enabled, this is equivalent to
settokenValue [ #vString:=value ]
tokenValue_vString :: AttrLabelProxy "vString" Source #
vSymbol
token symbol value
clearTokenValueVSymbol :: MonadIO m => TokenValue -> m () Source #
Set the value of the “v_symbol” field to Nothing.
When overloading is enabled, this is equivalent to
clear #vSymbol
getTokenValueVSymbol :: MonadIO m => TokenValue -> m (Ptr ()) Source #
Get the value of the “v_symbol” field.
When overloading is enabled, this is equivalent to
get tokenValue #vSymbol
setTokenValueVSymbol :: MonadIO m => TokenValue -> Ptr () -> m () Source #
Set the value of the “v_symbol” field.
When overloading is enabled, this is equivalent to
settokenValue [ #vSymbol:=value ]
tokenValue_vSymbol :: AttrLabelProxy "vSymbol" Source #