gi-gtk-3.0.11: Gtk bindings

CopyrightWill Thompson, Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Gtk.Objects.ShortcutLabel

Contents

Description

ShortcutLabel is a widget that represents a single keyboard shortcut or gesture in the user interface.

Synopsis

Exported types

Methods

getAccelerator

shortcutLabelGetAccelerator Source #

Arguments

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

self: a ShortcutLabel

-> m (Maybe Text)

Returns: the current accelerator.

Retrieves the current accelerator of self.

Since: 3.22

getDisabledText

shortcutLabelGetDisabledText Source #

Arguments

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

self: a ShortcutLabel

-> m (Maybe Text)

Returns: the current text displayed when no accelerator is set.

Retrieves the text that is displayed when no accelerator is set.

Since: 3.22

new

shortcutLabelNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Text

accelerator: the initial accelerator

-> m ShortcutLabel

Returns: a newly-allocated ShortcutLabel

Creates a new ShortcutLabel with accelerator set.

Since: 3.22

setAccelerator

shortcutLabelSetAccelerator Source #

Arguments

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

self: a ShortcutLabel

-> Text

accelerator: the new accelerator

-> m () 

Sets the accelerator to be displayed by self.

Since: 3.22

setDisabledText

shortcutLabelSetDisabledText Source #

Arguments

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

self: a ShortcutLabel

-> Text

disabledText: the text to be displayed when no accelerator is set

-> m () 

Sets the text to be displayed by self when no accelerator is set.

Since: 3.22

Properties

accelerator

data ShortcutLabelAcceleratorPropertyInfo Source #

Instances

AttrInfo ShortcutLabelAcceleratorPropertyInfo Source # 
type AttrOrigin ShortcutLabelAcceleratorPropertyInfo Source # 
type AttrLabel ShortcutLabelAcceleratorPropertyInfo Source # 
type AttrGetType ShortcutLabelAcceleratorPropertyInfo Source # 
type AttrBaseTypeConstraint ShortcutLabelAcceleratorPropertyInfo Source # 
type AttrSetTypeConstraint ShortcutLabelAcceleratorPropertyInfo Source # 
type AttrAllowedOps ShortcutLabelAcceleratorPropertyInfo Source # 

disabledText

data ShortcutLabelDisabledTextPropertyInfo Source #

Instances

AttrInfo ShortcutLabelDisabledTextPropertyInfo Source # 
type AttrOrigin ShortcutLabelDisabledTextPropertyInfo Source # 
type AttrLabel ShortcutLabelDisabledTextPropertyInfo Source # 
type AttrGetType ShortcutLabelDisabledTextPropertyInfo Source # 
type AttrBaseTypeConstraint ShortcutLabelDisabledTextPropertyInfo Source # 
type AttrSetTypeConstraint ShortcutLabelDisabledTextPropertyInfo Source # 
type AttrAllowedOps ShortcutLabelDisabledTextPropertyInfo Source #