| Copyright | Will Thompson, Iñaki García Etxebarria and Jonas Platte |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.Gio.Structs.ActionEntry
Description
This struct defines a single action. It is for use with g_action_map_add_action_entries().
The order of the items in the structure are intended to reflect frequency of use. It is permissible to use an incomplete initialiser in order to leave some of the later values as %NULL. All values after @name are optional. Additional optional fields may be added in the future.
See g_action_map_add_action_entries() for an example.
- newtype ActionEntry = ActionEntry (ForeignPtr ActionEntry)
- newZeroActionEntry :: MonadIO m => m ActionEntry
- noActionEntry :: Maybe ActionEntry
- actionEntryName :: AttrLabelProxy "name"
- clearActionEntryName :: MonadIO m => ActionEntry -> m ()
- getActionEntryName :: MonadIO m => ActionEntry -> m (Maybe Text)
- setActionEntryName :: MonadIO m => ActionEntry -> CString -> m ()
- actionEntryParameterType :: AttrLabelProxy "parameterType"
- clearActionEntryParameterType :: MonadIO m => ActionEntry -> m ()
- getActionEntryParameterType :: MonadIO m => ActionEntry -> m (Maybe Text)
- setActionEntryParameterType :: MonadIO m => ActionEntry -> CString -> m ()
- actionEntryState :: AttrLabelProxy "state"
- clearActionEntryState :: MonadIO m => ActionEntry -> m ()
- getActionEntryState :: MonadIO m => ActionEntry -> m (Maybe Text)
- setActionEntryState :: MonadIO m => ActionEntry -> CString -> m ()
Exported types
newtype ActionEntry Source #
Constructors
| ActionEntry (ForeignPtr ActionEntry) |
Instances
| WrappedPtr ActionEntry Source # | |
| (~) AttrOpTag tag AttrSet => Constructible ActionEntry tag Source # | |
| ((~) * info (ResolveActionEntryMethod t ActionEntry), MethodInfo * info ActionEntry p) => IsLabel t (ActionEntry -> p) Source # | |
| ((~) * info (ResolveActionEntryMethod t ActionEntry), MethodInfo * info ActionEntry p) => IsLabelProxy t (ActionEntry -> p) Source # | |
| HasAttributeList * ActionEntry Source # | |
| type AttributeList ActionEntry Source # | |
newZeroActionEntry :: MonadIO m => m ActionEntry Source #
Construct a ActionEntry struct initialized to zero.
Properties
Name
actionEntryName :: AttrLabelProxy "name" Source #
clearActionEntryName :: MonadIO m => ActionEntry -> m () Source #
getActionEntryName :: MonadIO m => ActionEntry -> m (Maybe Text) Source #
setActionEntryName :: MonadIO m => ActionEntry -> CString -> m () Source #
ParameterType
actionEntryParameterType :: AttrLabelProxy "parameterType" Source #
clearActionEntryParameterType :: MonadIO m => ActionEntry -> m () Source #
getActionEntryParameterType :: MonadIO m => ActionEntry -> m (Maybe Text) Source #
setActionEntryParameterType :: MonadIO m => ActionEntry -> CString -> m () Source #
State
actionEntryState :: AttrLabelProxy "state" Source #
clearActionEntryState :: MonadIO m => ActionEntry -> m () Source #
getActionEntryState :: MonadIO m => ActionEntry -> m (Maybe Text) Source #
setActionEntryState :: MonadIO m => ActionEntry -> CString -> m () Source #