Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
A ShortcutTrigger
that triggers when a specific keyval
and (optionally) modifiers are pressed.
Synopsis
- newtype KeyvalTrigger = KeyvalTrigger (ManagedPtr KeyvalTrigger)
- class (GObject o, IsDescendantOf KeyvalTrigger o) => IsKeyvalTrigger o
- toKeyvalTrigger :: (MonadIO m, IsKeyvalTrigger o) => o -> m KeyvalTrigger
- keyvalTriggerGetKeyval :: (HasCallStack, MonadIO m, IsKeyvalTrigger a) => a -> m Word32
- keyvalTriggerGetModifiers :: (HasCallStack, MonadIO m, IsKeyvalTrigger a) => a -> m [ModifierType]
- keyvalTriggerNew :: (HasCallStack, MonadIO m) => Word32 -> [ModifierType] -> m KeyvalTrigger
- constructKeyvalTriggerKeyval :: (IsKeyvalTrigger o, MonadIO m) => Word32 -> m (GValueConstruct o)
- getKeyvalTriggerKeyval :: (MonadIO m, IsKeyvalTrigger o) => o -> m Word32
- constructKeyvalTriggerModifiers :: (IsKeyvalTrigger o, MonadIO m) => [ModifierType] -> m (GValueConstruct o)
- getKeyvalTriggerModifiers :: (MonadIO m, IsKeyvalTrigger o) => o -> m [ModifierType]
Exported types
newtype KeyvalTrigger Source #
Memory-managed wrapper type.
KeyvalTrigger (ManagedPtr KeyvalTrigger) |
Instances
Eq KeyvalTrigger Source # | |
Defined in GI.Gtk.Objects.KeyvalTrigger (==) :: KeyvalTrigger -> KeyvalTrigger -> Bool # (/=) :: KeyvalTrigger -> KeyvalTrigger -> Bool # | |
GObject KeyvalTrigger Source # | |
Defined in GI.Gtk.Objects.KeyvalTrigger | |
ManagedPtrNewtype KeyvalTrigger Source # | |
Defined in GI.Gtk.Objects.KeyvalTrigger toManagedPtr :: KeyvalTrigger -> ManagedPtr KeyvalTrigger | |
TypedObject KeyvalTrigger Source # | |
Defined in GI.Gtk.Objects.KeyvalTrigger | |
HasParentTypes KeyvalTrigger Source # | |
Defined in GI.Gtk.Objects.KeyvalTrigger | |
IsGValue (Maybe KeyvalTrigger) Source # | Convert |
Defined in GI.Gtk.Objects.KeyvalTrigger gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe KeyvalTrigger -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe KeyvalTrigger) | |
type ParentTypes KeyvalTrigger Source # | |
Defined in GI.Gtk.Objects.KeyvalTrigger |
class (GObject o, IsDescendantOf KeyvalTrigger o) => IsKeyvalTrigger o Source #
Type class for types which can be safely cast to KeyvalTrigger
, for instance with toKeyvalTrigger
.
Instances
(GObject o, IsDescendantOf KeyvalTrigger o) => IsKeyvalTrigger o Source # | |
Defined in GI.Gtk.Objects.KeyvalTrigger |
toKeyvalTrigger :: (MonadIO m, IsKeyvalTrigger o) => o -> m KeyvalTrigger Source #
Cast to KeyvalTrigger
, 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
bindProperty, bindPropertyFull, compare, equal, forceFloating, freezeNotify, getv, hash, isFloating, notify, notifyByPspec, print, printLabel, ref, refSink, runDispose, stealData, stealQdata, thawNotify, toLabel, toString, trigger, unref, watchClosure.
Getters
getData, getKeyval, getModifiers, getProperty, getQdata.
Setters
getKeyval
keyvalTriggerGetKeyval Source #
:: (HasCallStack, MonadIO m, IsKeyvalTrigger a) | |
=> a |
|
-> m Word32 | Returns: the keyval |
Gets the keyval that must be pressed to succeed
triggering self
.
getModifiers
keyvalTriggerGetModifiers Source #
:: (HasCallStack, MonadIO m, IsKeyvalTrigger a) | |
=> a |
|
-> m [ModifierType] | Returns: the modifiers |
Gets the modifiers that must be present to succeed
triggering self
.
new
:: (HasCallStack, MonadIO m) | |
=> Word32 |
|
-> [ModifierType] |
|
-> m KeyvalTrigger | Returns: A new |
Creates a ShortcutTrigger
that will trigger whenever
the key with the given keyval
and modifiers
is pressed.
Properties
keyval
The key value for the trigger.
constructKeyvalTriggerKeyval :: (IsKeyvalTrigger o, MonadIO m) => Word32 -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “keyval
” property. This is rarely needed directly, but it is used by new
.
getKeyvalTriggerKeyval :: (MonadIO m, IsKeyvalTrigger o) => o -> m Word32 Source #
Get the value of the “keyval
” property.
When overloading is enabled, this is equivalent to
get
keyvalTrigger #keyval
modifiers
The key modifiers for the trigger.
constructKeyvalTriggerModifiers :: (IsKeyvalTrigger o, MonadIO m) => [ModifierType] -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “modifiers
” property. This is rarely needed directly, but it is used by new
.
getKeyvalTriggerModifiers :: (MonadIO m, IsKeyvalTrigger o) => o -> m [ModifierType] Source #
Get the value of the “modifiers
” property.
When overloading is enabled, this is equivalent to
get
keyvalTrigger #modifiers