Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
An attribute in a Schema
.
Synopsis
- newtype SchemaAttribute = SchemaAttribute (ManagedPtr SchemaAttribute)
- newZeroSchemaAttribute :: MonadIO m => m SchemaAttribute
- noSchemaAttribute :: Maybe SchemaAttribute
- clearSchemaAttributeName :: MonadIO m => SchemaAttribute -> m ()
- getSchemaAttributeName :: MonadIO m => SchemaAttribute -> m (Maybe Text)
- setSchemaAttributeName :: MonadIO m => SchemaAttribute -> CString -> m ()
- getSchemaAttributeType :: MonadIO m => SchemaAttribute -> m SchemaAttributeType
- setSchemaAttributeType :: MonadIO m => SchemaAttribute -> SchemaAttributeType -> m ()
Exported types
newtype SchemaAttribute Source #
Memory-managed wrapper type.
Instances
Eq SchemaAttribute Source # | |
Defined in GI.Secret.Structs.SchemaAttribute (==) :: SchemaAttribute -> SchemaAttribute -> Bool # (/=) :: SchemaAttribute -> SchemaAttribute -> Bool # | |
IsGValue SchemaAttribute Source # | Convert |
Defined in GI.Secret.Structs.SchemaAttribute toGValue :: SchemaAttribute -> IO GValue # fromGValue :: GValue -> IO SchemaAttribute # | |
BoxedObject SchemaAttribute Source # | |
Defined in GI.Secret.Structs.SchemaAttribute boxedType :: SchemaAttribute -> IO GType # | |
tag ~ 'AttrSet => Constructible SchemaAttribute tag Source # | |
Defined in GI.Secret.Structs.SchemaAttribute new :: MonadIO m => (ManagedPtr SchemaAttribute -> SchemaAttribute) -> [AttrOp SchemaAttribute tag] -> m SchemaAttribute # |
newZeroSchemaAttribute :: MonadIO m => m SchemaAttribute Source #
Construct a SchemaAttribute
struct initialized to zero.
noSchemaAttribute :: Maybe SchemaAttribute Source #
A convenience alias for Nothing
:: Maybe
SchemaAttribute
.
Methods
Overloaded methods
Properties
name
name of the attribute
clearSchemaAttributeName :: MonadIO m => SchemaAttribute -> m () Source #
Set the value of the “name
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#name
getSchemaAttributeName :: MonadIO m => SchemaAttribute -> m (Maybe Text) Source #
Get the value of the “name
” field.
When overloading is enabled, this is equivalent to
get
schemaAttribute #name
setSchemaAttributeName :: MonadIO m => SchemaAttribute -> CString -> m () Source #
Set the value of the “name
” field.
When overloading is enabled, this is equivalent to
set
schemaAttribute [ #name:=
value ]
type
the type of the attribute
getSchemaAttributeType :: MonadIO m => SchemaAttribute -> m SchemaAttributeType Source #
Get the value of the “type
” field.
When overloading is enabled, this is equivalent to
get
schemaAttribute #type
setSchemaAttributeType :: MonadIO m => SchemaAttribute -> SchemaAttributeType -> m () Source #
Set the value of the “type
” field.
When overloading is enabled, this is equivalent to
set
schemaAttribute [ #type:=
value ]