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 |
A ParamSpecPool
maintains a collection of GParamSpecs
which can be
quickly accessed by owner and name.
The implementation of the Object
property system uses such a pool to
store the GParamSpecs
of the properties all object types.
Synopsis
- newtype ParamSpecPool = ParamSpecPool (ManagedPtr ParamSpecPool)
- paramSpecPoolInsert :: (HasCallStack, MonadIO m) => ParamSpecPool -> GParamSpec -> GType -> m ()
- paramSpecPoolListOwned :: (HasCallStack, MonadIO m) => ParamSpecPool -> GType -> m [GParamSpec]
- paramSpecPoolLookup :: (HasCallStack, MonadIO m) => ParamSpecPool -> Text -> GType -> Bool -> m (Maybe GParamSpec)
- paramSpecPoolRemove :: (HasCallStack, MonadIO m) => ParamSpecPool -> GParamSpec -> m ()
Exported types
newtype ParamSpecPool Source #
Memory-managed wrapper type.
ParamSpecPool (ManagedPtr ParamSpecPool) |
Instances
Eq ParamSpecPool Source # | |
Defined in GI.GObject.Structs.ParamSpecPool (==) :: ParamSpecPool -> ParamSpecPool -> Bool # (/=) :: ParamSpecPool -> ParamSpecPool -> Bool # | |
BoxedPtr ParamSpecPool Source # | |
Defined in GI.GObject.Structs.ParamSpecPool boxedPtrCopy :: ParamSpecPool -> IO ParamSpecPool boxedPtrFree :: ParamSpecPool -> IO () | |
ManagedPtrNewtype ParamSpecPool Source # | |
Defined in GI.GObject.Structs.ParamSpecPool toManagedPtr :: ParamSpecPool -> ManagedPtr ParamSpecPool |
Methods
Click to display all available methods, including inherited ones
insert
:: (HasCallStack, MonadIO m) | |
=> ParamSpecPool |
|
-> GParamSpec |
|
-> GType |
|
-> m () |
Inserts a ParamSpec
in the pool.
listOwned
paramSpecPoolListOwned Source #
:: (HasCallStack, MonadIO m) | |
=> ParamSpecPool |
|
-> GType |
|
-> m [GParamSpec] | Returns: a
|
Gets an List
of all GParamSpecs
owned by ownerType
in
the pool.
lookup
:: (HasCallStack, MonadIO m) | |
=> ParamSpecPool |
|
-> Text |
|
-> GType |
|
-> Bool |
|
-> m (Maybe GParamSpec) | Returns: The found |
Looks up a ParamSpec
in the pool.
remove
:: (HasCallStack, MonadIO m) | |
=> ParamSpecPool |
|
-> GParamSpec |
|
-> m () |
Removes a ParamSpec
from the pool.