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.Gio.Objects.SimpleActionGroup
Description
GSimpleActionGroup
is a hash table filled with Action
objects,
implementing the ActionGroup
and ActionMap
interfaces.
Since: 2.28
Synopsis
- newtype SimpleActionGroup = SimpleActionGroup (ManagedPtr SimpleActionGroup)
- class (GObject o, IsDescendantOf SimpleActionGroup o) => IsSimpleActionGroup o
- toSimpleActionGroup :: (MonadIO m, IsSimpleActionGroup o) => o -> m SimpleActionGroup
- type family ResolveSimpleActionGroupMethod (t :: Symbol) o where ...
- data SimpleActionGroupAddEntriesMethodInfo
- simpleActionGroupAddEntries :: (HasCallStack, MonadIO m, IsSimpleActionGroup a) => a -> [ActionEntry] -> Ptr () -> m ()
- data SimpleActionGroupInsertMethodInfo
- simpleActionGroupInsert :: (HasCallStack, MonadIO m, IsSimpleActionGroup a, IsAction b) => a -> b -> m ()
- data SimpleActionGroupLookupMethodInfo
- simpleActionGroupLookup :: (HasCallStack, MonadIO m, IsSimpleActionGroup a) => a -> Text -> m Action
- simpleActionGroupNew :: (HasCallStack, MonadIO m) => m SimpleActionGroup
- data SimpleActionGroupRemoveMethodInfo
- simpleActionGroupRemove :: (HasCallStack, MonadIO m, IsSimpleActionGroup a) => a -> Text -> m ()
Exported types
newtype SimpleActionGroup Source #
Memory-managed wrapper type.
Constructors
SimpleActionGroup (ManagedPtr SimpleActionGroup) |
Instances
class (GObject o, IsDescendantOf SimpleActionGroup o) => IsSimpleActionGroup o Source #
Type class for types which can be safely cast to SimpleActionGroup
, for instance with toSimpleActionGroup
.
Instances
(GObject o, IsDescendantOf SimpleActionGroup o) => IsSimpleActionGroup o Source # | |
Defined in GI.Gio.Objects.SimpleActionGroup |
toSimpleActionGroup :: (MonadIO m, IsSimpleActionGroup o) => o -> m SimpleActionGroup Source #
Cast to SimpleActionGroup
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Click to display all available methods, including inherited ones
Methods
actionAdded, actionEnabledChanged, actionRemoved, actionStateChanged, activateAction, addAction, addActionEntries, addEntries, bindProperty, bindPropertyFull, changeActionState, forceFloating, freezeNotify, getv, hasAction, insert, isFloating, listActions, lookup, lookupAction, notify, notifyByPspec, queryAction, ref, refSink, remove, removeAction, removeActionEntries, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getActionEnabled, getActionParameterType, getActionState, getActionStateHint, getActionStateType, getData, getProperty, getQdata.
Setters
type family ResolveSimpleActionGroupMethod (t :: Symbol) o where ... Source #
Equations
addEntries
data SimpleActionGroupAddEntriesMethodInfo Source #
Instances
(signature ~ ([ActionEntry] -> Ptr () -> m ()), MonadIO m, IsSimpleActionGroup a) => OverloadedMethod SimpleActionGroupAddEntriesMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.SimpleActionGroup Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo SimpleActionGroupAddEntriesMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.SimpleActionGroup Methods |
simpleActionGroupAddEntries Source #
Arguments
:: (HasCallStack, MonadIO m, IsSimpleActionGroup a) | |
=> a |
|
-> [ActionEntry] |
|
-> Ptr () |
|
-> m () |
Deprecated: (Since version 2.38)Use actionMapAddActionEntries
A convenience function for creating multiple SimpleAction
instances
and adding them to the action group.
Since: 2.30
insert
data SimpleActionGroupInsertMethodInfo Source #
Instances
(signature ~ (b -> m ()), MonadIO m, IsSimpleActionGroup a, IsAction b) => OverloadedMethod SimpleActionGroupInsertMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.SimpleActionGroup Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo SimpleActionGroupInsertMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.SimpleActionGroup Methods |
simpleActionGroupInsert Source #
Arguments
:: (HasCallStack, MonadIO m, IsSimpleActionGroup a, IsAction b) | |
=> a |
|
-> b |
|
-> m () |
Deprecated: (Since version 2.38)Use actionMapAddAction
Adds an action to the action group.
If the action group already contains an action with the same name as
action
then the old action is dropped from the group.
The action group takes its own reference on action
.
Since: 2.28
lookup
data SimpleActionGroupLookupMethodInfo Source #
Instances
(signature ~ (Text -> m Action), MonadIO m, IsSimpleActionGroup a) => OverloadedMethod SimpleActionGroupLookupMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.SimpleActionGroup Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo SimpleActionGroupLookupMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.SimpleActionGroup Methods |
simpleActionGroupLookup Source #
Arguments
:: (HasCallStack, MonadIO m, IsSimpleActionGroup a) | |
=> a |
|
-> Text |
|
-> m Action |
Deprecated: (Since version 2.38)Use actionMapLookupAction
Looks up the action with the name actionName
in the group.
If no such action exists, returns Nothing
.
Since: 2.28
new
Arguments
:: (HasCallStack, MonadIO m) | |
=> m SimpleActionGroup | Returns: a new |
Creates a new, empty, SimpleActionGroup
.
Since: 2.28
remove
data SimpleActionGroupRemoveMethodInfo Source #
Instances
(signature ~ (Text -> m ()), MonadIO m, IsSimpleActionGroup a) => OverloadedMethod SimpleActionGroupRemoveMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.SimpleActionGroup Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo SimpleActionGroupRemoveMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.SimpleActionGroup Methods |
simpleActionGroupRemove Source #
Arguments
:: (HasCallStack, MonadIO m, IsSimpleActionGroup a) | |
=> a |
|
-> Text |
|
-> m () |
Deprecated: (Since version 2.38)Use actionMapRemoveAction
Removes the named action from the action group.
If no action of this name is in the group then nothing happens.
Since: 2.28