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 |
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 :: IsShortcutLabel o => o -> IO ShortcutLabel
- noShortcutLabel :: Maybe ShortcutLabel
- data ShortcutLabelGetAcceleratorMethodInfo
- shortcutLabelGetAccelerator :: (HasCallStack, MonadIO m, IsShortcutLabel a) => a -> m (Maybe Text)
- data ShortcutLabelGetDisabledTextMethodInfo
- shortcutLabelGetDisabledText :: (HasCallStack, MonadIO m, IsShortcutLabel a) => a -> m (Maybe Text)
- shortcutLabelNew :: (HasCallStack, MonadIO m) => Text -> m ShortcutLabel
- data ShortcutLabelSetAcceleratorMethodInfo
- shortcutLabelSetAccelerator :: (HasCallStack, MonadIO m, IsShortcutLabel a) => a -> Text -> m ()
- data ShortcutLabelSetDisabledTextMethodInfo
- shortcutLabelSetDisabledText :: (HasCallStack, MonadIO m, IsShortcutLabel a) => a -> Text -> m ()
- data ShortcutLabelAcceleratorPropertyInfo
- constructShortcutLabelAccelerator :: IsShortcutLabel o => Text -> IO (GValueConstruct o)
- getShortcutLabelAccelerator :: (MonadIO m, IsShortcutLabel o) => o -> m (Maybe Text)
- setShortcutLabelAccelerator :: (MonadIO m, IsShortcutLabel o) => o -> Text -> m ()
- shortcutLabelAccelerator :: AttrLabelProxy "accelerator"
- data ShortcutLabelDisabledTextPropertyInfo
- constructShortcutLabelDisabledText :: IsShortcutLabel o => Text -> IO (GValueConstruct o)
- getShortcutLabelDisabledText :: (MonadIO m, IsShortcutLabel o) => o -> m (Maybe Text)
- setShortcutLabelDisabledText :: (MonadIO m, IsShortcutLabel o) => o -> Text -> m ()
- shortcutLabelDisabledText :: AttrLabelProxy "disabledText"
Exported types
newtype ShortcutLabel Source #
GObject ShortcutLabel Source # | |
IsImplementorIface ShortcutLabel Source # | |
IsObject ShortcutLabel Source # | |
IsWidget ShortcutLabel Source # | |
IsContainer ShortcutLabel Source # | |
IsBox ShortcutLabel Source # | |
IsOrientable ShortcutLabel Source # | |
IsBuildable ShortcutLabel Source # | |
IsShortcutLabel ShortcutLabel Source # | |
((~) * info (ResolveShortcutLabelMethod t ShortcutLabel), MethodInfo * info ShortcutLabel p) => IsLabel t (ShortcutLabel -> p) Source # | |
((~) * info (ResolveShortcutLabelMethod t ShortcutLabel), MethodInfo * info ShortcutLabel p) => IsLabelProxy t (ShortcutLabel -> p) Source # | |
HasAttributeList * ShortcutLabel Source # | |
type AttributeList ShortcutLabel Source # | |
type SignalList ShortcutLabel Source # | |
class GObject o => IsShortcutLabel o Source #
toShortcutLabel :: IsShortcutLabel o => o -> IO ShortcutLabel Source #
Methods
getAccelerator
data ShortcutLabelGetAcceleratorMethodInfo Source #
((~) * signature (m (Maybe Text)), MonadIO m, IsShortcutLabel a) => MethodInfo * ShortcutLabelGetAcceleratorMethodInfo a signature Source # | |
shortcutLabelGetAccelerator Source #
:: (HasCallStack, MonadIO m, IsShortcutLabel a) | |
=> a |
|
-> m (Maybe Text) | Returns: the current accelerator. |
Retrieves the current accelerator of self
.
Since: 3.22
getDisabledText
data ShortcutLabelGetDisabledTextMethodInfo Source #
((~) * signature (m (Maybe Text)), MonadIO m, IsShortcutLabel a) => MethodInfo * ShortcutLabelGetDisabledTextMethodInfo a signature Source # | |
shortcutLabelGetDisabledText Source #
:: (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
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> m ShortcutLabel | Returns: a newly-allocated |
Creates a new ShortcutLabel
with accelerator
set.
Since: 3.22
setAccelerator
data ShortcutLabelSetAcceleratorMethodInfo Source #
((~) * signature (Text -> m ()), MonadIO m, IsShortcutLabel a) => MethodInfo * ShortcutLabelSetAcceleratorMethodInfo a signature Source # | |
shortcutLabelSetAccelerator Source #
:: (HasCallStack, MonadIO m, IsShortcutLabel a) | |
=> a |
|
-> Text |
|
-> m () |
Sets the accelerator to be displayed by self
.
Since: 3.22
setDisabledText
data ShortcutLabelSetDisabledTextMethodInfo Source #
((~) * signature (Text -> m ()), MonadIO m, IsShortcutLabel a) => MethodInfo * ShortcutLabelSetDisabledTextMethodInfo a signature Source # | |
shortcutLabelSetDisabledText Source #
:: (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
data ShortcutLabelAcceleratorPropertyInfo Source #
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 #
shortcutLabelAccelerator :: AttrLabelProxy "accelerator" Source #
disabledText
data ShortcutLabelDisabledTextPropertyInfo Source #
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 #
shortcutLabelDisabledText :: AttrLabelProxy "disabledText" Source #