gi-gtk-4.0.5: Gtk bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Gtk.Objects.AlternativeTrigger

Description

A GtkShortcutTrigger that combines two triggers.

The GtkAlternativeTrigger triggers when either of two trigger.

This can be cascaded to combine more than two triggers.

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

getFirst

alternativeTriggerGetFirst Source #

Arguments

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

self: an alternative GtkShortcutTrigger

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

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

Creates a GtkShortcutTrigger 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 GtkShortcutTrigger 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 GtkShortcutTrigger 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