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 either of two
GtkShortcutTriggers
trigger.
Synopsis
- newtype AlternativeTrigger = AlternativeTrigger (ManagedPtr AlternativeTrigger)
- class (GObject o, IsDescendantOf AlternativeTrigger o) => IsAlternativeTrigger o
- toAlternativeTrigger :: (MonadIO m, IsAlternativeTrigger o) => o -> m AlternativeTrigger
- alternativeTriggerGetFirst :: (HasCallStack, MonadIO m, IsAlternativeTrigger a) => a -> m ShortcutTrigger
- alternativeTriggerGetSecond :: (HasCallStack, MonadIO m, IsAlternativeTrigger a) => a -> m ShortcutTrigger
- alternativeTriggerNew :: (HasCallStack, MonadIO m, IsShortcutTrigger a, IsShortcutTrigger b) => a -> b -> m AlternativeTrigger
- constructAlternativeTriggerFirst :: (IsAlternativeTrigger o, MonadIO m, IsShortcutTrigger a) => a -> m (GValueConstruct o)
- getAlternativeTriggerFirst :: (MonadIO m, IsAlternativeTrigger o) => o -> m ShortcutTrigger
- constructAlternativeTriggerSecond :: (IsAlternativeTrigger o, MonadIO m, IsShortcutTrigger a) => a -> m (GValueConstruct o)
- getAlternativeTriggerSecond :: (MonadIO m, IsAlternativeTrigger o) => o -> m ShortcutTrigger
Exported types
newtype AlternativeTrigger Source #
Memory-managed wrapper type.
AlternativeTrigger (ManagedPtr AlternativeTrigger) |
Instances
class (GObject o, IsDescendantOf AlternativeTrigger o) => IsAlternativeTrigger o Source #
Type class for types which can be safely cast to AlternativeTrigger
, for instance with toAlternativeTrigger
.
Instances
(GObject o, IsDescendantOf AlternativeTrigger o) => IsAlternativeTrigger o Source # | |
Defined in GI.Gtk.Objects.AlternativeTrigger |
toAlternativeTrigger :: (MonadIO m, IsAlternativeTrigger o) => o -> m AlternativeTrigger Source #
Cast to AlternativeTrigger
, 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, getFirst, getProperty, getQdata, getSecond.
Setters
getFirst
alternativeTriggerGetFirst Source #
:: (HasCallStack, MonadIO m, IsAlternativeTrigger a) | |
=> a |
|
-> m ShortcutTrigger | Returns: the first alternative trigger |
Gets the first of the two alternative triggers that may
trigger self
. alternativeTriggerGetSecond
will
return the other one.
getSecond
alternativeTriggerGetSecond Source #
:: (HasCallStack, MonadIO m, IsAlternativeTrigger a) | |
=> a |
|
-> m ShortcutTrigger | Returns: the second alternative trigger |
Gets the second of the two alternative triggers that may
trigger self
. alternativeTriggerGetFirst
will
return the other one.
new
alternativeTriggerNew Source #
:: (HasCallStack, MonadIO m, IsShortcutTrigger a, IsShortcutTrigger b) | |
=> a |
|
-> b |
|
-> m AlternativeTrigger | Returns: a new |
Creates a ShortcutTrigger
that will trigger whenever
either of the two given triggers gets triggered.
Note that nesting is allowed, so if you want more than two alternative, create a new alternative trigger for each option.
Properties
first
The first ShortcutTrigger
to check.
constructAlternativeTriggerFirst :: (IsAlternativeTrigger o, MonadIO m, IsShortcutTrigger a) => a -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “first
” property. This is rarely needed directly, but it is used by new
.
getAlternativeTriggerFirst :: (MonadIO m, IsAlternativeTrigger o) => o -> m ShortcutTrigger Source #
Get the value of the “first
” property.
When overloading is enabled, this is equivalent to
get
alternativeTrigger #first
second
The second ShortcutTrigger
to check.
constructAlternativeTriggerSecond :: (IsAlternativeTrigger o, MonadIO m, IsShortcutTrigger a) => a -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “second
” property. This is rarely needed directly, but it is used by new
.
getAlternativeTriggerSecond :: (MonadIO m, IsAlternativeTrigger o) => o -> m ShortcutTrigger Source #
Get the value of the “second
” property.
When overloading is enabled, this is equivalent to
get
alternativeTrigger #second