gi-gtk-3.0.26: Gtk bindings

Copyright Will Thompson Iñaki García Etxebarria and Jonas Platte LGPL-2.1 Iñaki García Etxebarria (garetxe@gmail.com) None Haskell2010

GI.Gtk.Objects.ShortcutsGroup

Description

A GtkShortcutsGroup represents a group of related keyboard shortcuts or gestures. The group has a title. It may optionally be associated with a view of the application, which can be used to show only relevant shortcuts depending on the application context.

This widget is only meant to be used with ShortcutsWindow.

Synopsis

# Exported types

newtype ShortcutsGroup Source #

Memory-managed wrapper type.

Constructors

 ShortcutsGroup (ManagedPtr ShortcutsGroup)
Instances
 Source # Instance detailsDefined in GI.Gtk.Objects.ShortcutsGroup Methods Source # Instance detailsDefined in GI.Gtk.Objects.ShortcutsGroup Source # Instance detailsDefined in GI.Gtk.Objects.ShortcutsGroup Source # Instance detailsDefined in GI.Gtk.Objects.ShortcutsGroup Source # Instance detailsDefined in GI.Gtk.Objects.ShortcutsGroup Source # Instance detailsDefined in GI.Gtk.Objects.ShortcutsGroup Source # Instance detailsDefined in GI.Gtk.Objects.ShortcutsGroup Source # Instance detailsDefined in GI.Gtk.Objects.ShortcutsGroup Source # Instance detailsDefined in GI.Gtk.Objects.ShortcutsGroup

class GObject o => IsShortcutsGroup o Source #

Type class for types which can be safely cast to ShortcutsGroup, for instance with toShortcutsGroup.

Instances
 Source # Instance detailsDefined in GI.Gtk.Objects.ShortcutsGroup Source # Instance detailsDefined in GI.Gtk.Objects.ShortcutsGroup

toShortcutsGroup :: (MonadIO m, IsShortcutsGroup o) => o -> m ShortcutsGroup Source #

Cast to ShortcutsGroup, for types for which this is known to be safe. For general casts, use castTo.

A convenience alias for Nothing :: Maybe ShortcutsGroup.

# Properties

## accelSizeGroup

The size group for the accelerator portion of shortcuts in this group.

This is used internally by GTK+, and must not be modified by applications.

clearShortcutsGroupAccelSizeGroup :: (MonadIO m, IsShortcutsGroup o) => o -> m () Source #

Set the value of the “accel-size-group” property to Nothing. When overloading is enabled, this is equivalent to

clear #accelSizeGroup


Construct a GValueConstruct with valid value for the “accel-size-group” property. This is rarely needed directly, but it is used by new.

setShortcutsGroupAccelSizeGroup :: (MonadIO m, IsShortcutsGroup o, IsSizeGroup a) => o -> a -> m () Source #

Set the value of the “accel-size-group” property. When overloading is enabled, this is equivalent to

set shortcutsGroup [ #accelSizeGroup := value ]


## height

A rough measure for the number of lines in this group.

This is used internally by GTK+, and is not useful for applications.

getShortcutsGroupHeight :: (MonadIO m, IsShortcutsGroup o) => o -> m Word32 Source #

Get the value of the “height” property. When overloading is enabled, this is equivalent to

get shortcutsGroup #height


## title

The title for this group of shortcuts.

clearShortcutsGroupTitle :: (MonadIO m, IsShortcutsGroup o) => o -> m () Source #

Set the value of the “title” property to Nothing. When overloading is enabled, this is equivalent to

clear #title


Construct a GValueConstruct with valid value for the “title” property. This is rarely needed directly, but it is used by new.

getShortcutsGroupTitle :: (MonadIO m, IsShortcutsGroup o) => o -> m (Maybe Text) Source #

Get the value of the “title” property. When overloading is enabled, this is equivalent to

get shortcutsGroup #title


setShortcutsGroupTitle :: (MonadIO m, IsShortcutsGroup o) => o -> Text -> m () Source #

Set the value of the “title” property. When overloading is enabled, this is equivalent to

set shortcutsGroup [ #title := value ]


## titleSizeGroup

The size group for the textual portion of shortcuts in this group.

This is used internally by GTK+, and must not be modified by applications.

clearShortcutsGroupTitleSizeGroup :: (MonadIO m, IsShortcutsGroup o) => o -> m () Source #

Set the value of the “title-size-group” property to Nothing. When overloading is enabled, this is equivalent to

clear #titleSizeGroup


Construct a GValueConstruct with valid value for the “title-size-group” property. This is rarely needed directly, but it is used by new.

setShortcutsGroupTitleSizeGroup :: (MonadIO m, IsShortcutsGroup o, IsSizeGroup a) => o -> a -> m () Source #

Set the value of the “title-size-group” property. When overloading is enabled, this is equivalent to

set shortcutsGroup [ #titleSizeGroup := value ]


## view

An optional view that the shortcuts in this group are relevant for. The group will be hidden if the ShortcutsWindow:view-name property does not match the view of this group.

Set this to Nothing to make the group always visible.

clearShortcutsGroupView :: (MonadIO m, IsShortcutsGroup o) => o -> m () Source #

Set the value of the “view” property to Nothing. When overloading is enabled, this is equivalent to

clear #view


Construct a GValueConstruct with valid value for the “view” property. This is rarely needed directly, but it is used by new.

getShortcutsGroupView :: (MonadIO m, IsShortcutsGroup o) => o -> m (Maybe Text) Source #

Get the value of the “view” property. When overloading is enabled, this is equivalent to

get shortcutsGroup #view


setShortcutsGroupView :: (MonadIO m, IsShortcutsGroup o) => o -> Text -> m () Source #

Set the value of the “view” property. When overloading is enabled, this is equivalent to

set shortcutsGroup [ #view := value ]