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 |
Struct defining a pad action entry.
Synopsis
- newtype PadActionEntry = PadActionEntry (ManagedPtr PadActionEntry)
- newZeroPadActionEntry :: MonadIO m => m PadActionEntry
- noPadActionEntry :: Maybe PadActionEntry
- clearPadActionEntryActionName :: MonadIO m => PadActionEntry -> m ()
- getPadActionEntryActionName :: MonadIO m => PadActionEntry -> m (Maybe Text)
- setPadActionEntryActionName :: MonadIO m => PadActionEntry -> CString -> m ()
- getPadActionEntryIndex :: MonadIO m => PadActionEntry -> m Int32
- setPadActionEntryIndex :: MonadIO m => PadActionEntry -> Int32 -> m ()
- clearPadActionEntryLabel :: MonadIO m => PadActionEntry -> m ()
- getPadActionEntryLabel :: MonadIO m => PadActionEntry -> m (Maybe Text)
- setPadActionEntryLabel :: MonadIO m => PadActionEntry -> CString -> m ()
- getPadActionEntryMode :: MonadIO m => PadActionEntry -> m Int32
- setPadActionEntryMode :: MonadIO m => PadActionEntry -> Int32 -> m ()
- getPadActionEntryType :: MonadIO m => PadActionEntry -> m PadActionType
- setPadActionEntryType :: MonadIO m => PadActionEntry -> PadActionType -> m ()
Exported types
newtype PadActionEntry Source #
Memory-managed wrapper type.
Instances
WrappedPtr PadActionEntry Source # | |
Defined in GI.Gtk.Structs.PadActionEntry wrappedPtrCalloc :: IO (Ptr PadActionEntry) # wrappedPtrCopy :: PadActionEntry -> IO PadActionEntry # wrappedPtrFree :: Maybe (FunPtr (Ptr PadActionEntry -> IO ())) # | |
tag ~ AttrSet => Constructible PadActionEntry tag Source # | |
Defined in GI.Gtk.Structs.PadActionEntry new :: MonadIO m => (ManagedPtr PadActionEntry -> PadActionEntry) -> [AttrOp PadActionEntry tag] -> m PadActionEntry # |
newZeroPadActionEntry :: MonadIO m => m PadActionEntry Source #
Construct a PadActionEntry
struct initialized to zero.
noPadActionEntry :: Maybe PadActionEntry Source #
A convenience alias for Nothing
:: Maybe
PadActionEntry
.
Properties
actionName
action name that will be activated in the ActionGroup
.
clearPadActionEntryActionName :: MonadIO m => PadActionEntry -> m () Source #
Set the value of the “action_name
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#actionName
getPadActionEntryActionName :: MonadIO m => PadActionEntry -> m (Maybe Text) Source #
Get the value of the “action_name
” field.
When overloading is enabled, this is equivalent to
get
padActionEntry #actionName
setPadActionEntryActionName :: MonadIO m => PadActionEntry -> CString -> m () Source #
Set the value of the “action_name
” field.
When overloading is enabled, this is equivalent to
set
padActionEntry [ #actionName:=
value ]
index
the 0-indexed button/ring/strip number that will trigger this action entry.
getPadActionEntryIndex :: MonadIO m => PadActionEntry -> m Int32 Source #
Get the value of the “index
” field.
When overloading is enabled, this is equivalent to
get
padActionEntry #index
setPadActionEntryIndex :: MonadIO m => PadActionEntry -> Int32 -> m () Source #
Set the value of the “index
” field.
When overloading is enabled, this is equivalent to
set
padActionEntry [ #index:=
value ]
label
Human readable description of this action entry, this string should be deemed user-visible.
clearPadActionEntryLabel :: MonadIO m => PadActionEntry -> m () Source #
Set the value of the “label
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#label
getPadActionEntryLabel :: MonadIO m => PadActionEntry -> m (Maybe Text) Source #
Get the value of the “label
” field.
When overloading is enabled, this is equivalent to
get
padActionEntry #label
setPadActionEntryLabel :: MonadIO m => PadActionEntry -> CString -> m () Source #
Set the value of the “label
” field.
When overloading is enabled, this is equivalent to
set
padActionEntry [ #label:=
value ]
mode
the mode that will trigger this action entry, or -1 for all modes.
getPadActionEntryMode :: MonadIO m => PadActionEntry -> m Int32 Source #
Get the value of the “mode
” field.
When overloading is enabled, this is equivalent to
get
padActionEntry #mode
setPadActionEntryMode :: MonadIO m => PadActionEntry -> Int32 -> m () Source #
Set the value of the “mode
” field.
When overloading is enabled, this is equivalent to
set
padActionEntry [ #mode:=
value ]
type
the type of pad feature that will trigger this action entry.
getPadActionEntryType :: MonadIO m => PadActionEntry -> m PadActionType Source #
Get the value of the “type
” field.
When overloading is enabled, this is equivalent to
get
padActionEntry #type
setPadActionEntryType :: MonadIO m => PadActionEntry -> PadActionType -> m () Source #
Set the value of the “type
” field.
When overloading is enabled, this is equivalent to
set
padActionEntry [ #type:=
value ]