Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
GI.Gtk.Objects.ShortcutLabel
Contents
Description
ShortcutLabel
is a widget that represents a single keyboard shortcut or gesture
in the user interface.
- newtype ShortcutLabel = ShortcutLabel (ManagedPtr ShortcutLabel)
- class GObject o => IsShortcutLabel o
- toShortcutLabel :: (MonadIO m, IsShortcutLabel o) => o -> m ShortcutLabel
- noShortcutLabel :: Maybe ShortcutLabel
- shortcutLabelGetAccelerator :: (HasCallStack, MonadIO m, IsShortcutLabel a) => a -> m (Maybe Text)
- shortcutLabelGetDisabledText :: (HasCallStack, MonadIO m, IsShortcutLabel a) => a -> m (Maybe Text)
- shortcutLabelNew :: (HasCallStack, MonadIO m) => Text -> m ShortcutLabel
- shortcutLabelSetAccelerator :: (HasCallStack, MonadIO m, IsShortcutLabel a) => a -> Text -> m ()
- shortcutLabelSetDisabledText :: (HasCallStack, MonadIO m, IsShortcutLabel a) => a -> Text -> m ()
- constructShortcutLabelAccelerator :: IsShortcutLabel o => Text -> IO (GValueConstruct o)
- getShortcutLabelAccelerator :: (MonadIO m, IsShortcutLabel o) => o -> m (Maybe Text)
- setShortcutLabelAccelerator :: (MonadIO m, IsShortcutLabel o) => o -> Text -> m ()
- constructShortcutLabelDisabledText :: IsShortcutLabel o => Text -> IO (GValueConstruct o)
- getShortcutLabelDisabledText :: (MonadIO m, IsShortcutLabel o) => o -> m (Maybe Text)
- setShortcutLabelDisabledText :: (MonadIO m, IsShortcutLabel o) => o -> Text -> m ()
Exported types
newtype ShortcutLabel Source #
Constructors
ShortcutLabel (ManagedPtr ShortcutLabel) |
Instances
class GObject o => IsShortcutLabel o Source #
Instances
toShortcutLabel :: (MonadIO m, IsShortcutLabel o) => o -> m ShortcutLabel Source #
Methods
getAccelerator
shortcutLabelGetAccelerator Source #
Arguments
:: (HasCallStack, MonadIO m, IsShortcutLabel a) | |
=> a |
|
-> 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 |
|
-> 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
Arguments
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> m ShortcutLabel | Returns: a newly-allocated |
Creates a new ShortcutLabel
with accelerator
set.
Since: 3.22
setAccelerator
shortcutLabelSetAccelerator Source #
Arguments
:: (HasCallStack, MonadIO m, IsShortcutLabel a) | |
=> a |
|
-> Text |
|
-> m () |
Sets the accelerator to be displayed by self
.
Since: 3.22
setDisabledText
shortcutLabelSetDisabledText Source #
Arguments
:: (HasCallStack, MonadIO m, IsShortcutLabel a) | |
=> a |
|
-> Text |
|
-> m () |
Sets the text to be displayed by self
when no accelerator is set.
Since: 3.22
Properties
accelerator
constructShortcutLabelAccelerator :: IsShortcutLabel o => Text -> IO (GValueConstruct o) Source #
getShortcutLabelAccelerator :: (MonadIO m, IsShortcutLabel o) => o -> m (Maybe Text) Source #
setShortcutLabelAccelerator :: (MonadIO m, IsShortcutLabel o) => o -> Text -> m () Source #
disabledText
constructShortcutLabelDisabledText :: IsShortcutLabel o => Text -> IO (GValueConstruct o) Source #
getShortcutLabelDisabledText :: (MonadIO m, IsShortcutLabel o) => o -> m (Maybe Text) Source #
setShortcutLabelDisabledText :: (MonadIO m, IsShortcutLabel o) => o -> Text -> m () Source #