gi-gtk-4.0.2: Gtk bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Gtk.Objects.AlternativeTrigger

Description

A ShortcutTrigger that triggers when either of two GtkShortcutTriggers trigger.

Synopsis

Exported types

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

Instances details
(GObject o, IsDescendantOf AlternativeTrigger o) => IsAlternativeTrigger o Source # 
Instance details

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

Overloaded methods

getFirst

alternativeTriggerGetFirst Source #

Arguments

:: (HasCallStack, MonadIO m, IsAlternativeTrigger a) 
=> a

self: an alternative ShortcutTrigger

-> 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 #

Arguments

:: (HasCallStack, MonadIO m, IsAlternativeTrigger a) 
=> a

self: an alternative ShortcutTrigger

-> 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 #

Arguments

:: (HasCallStack, MonadIO m, IsShortcutTrigger a, IsShortcutTrigger b) 
=> a

first: The first trigger that may trigger

-> b

second: The second trigger that may trigger

-> m AlternativeTrigger

Returns: a new ShortcutTrigger

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