ShortcutsGroup

A gtk.shortcuts_group.ShortcutsGroup 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 gtk.shortcuts_window.ShortcutsWindow.

The recommended way to construct a gtk.shortcuts_group.ShortcutsGroup is with gtk.builder.Builder, by using the <child> tag to populate a gtk.shortcuts_group.ShortcutsGroup with one or more gtk.shortcuts_shortcut.ShortcutsShortcut instances.

If you need to add a shortcut programmatically, use gtk.shortcuts_group.ShortcutsGroup.addShortcut.

Constructors

this
this(void* ptr, Flag!"Take" take)

Members

Functions

addShortcut
void addShortcut(gtk.shortcuts_shortcut.ShortcutsShortcut shortcut)

Adds a shortcut to the shortcuts group.

self
ShortcutsGroup self()

Returns this, for use in with statements.

Properties

accelSizeGroup
gtk.size_group.SizeGroup accelSizeGroup [@property setter]

Set accelSizeGroup property.

gType
GType gType [@property getter]
height
uint height [@property getter]

Get height property.

title
string title [@property getter]

Get title property.

title
string title [@property setter]

Set title property.

titleSizeGroup
gtk.size_group.SizeGroup titleSizeGroup [@property setter]

Set titleSizeGroup property.

view
string view [@property getter]

Get view property.

view
string view [@property setter]

Set view property.

Static functions

getGType
GType getGType()

Inherited Members

From Box

getGType
GType getGType()
gType
GType gType [@property getter]
self
Box self()

Returns this, for use in with statements.

baselineChild
int baselineChild [@property getter]

Get baselineChild property.

baselineChild
int baselineChild [@property setter]

Set baselineChild property.

baselinePosition
gtk.types.BaselinePosition baselinePosition [@property getter]

Get baselinePosition property.

baselinePosition
gtk.types.BaselinePosition baselinePosition [@property setter]

Set baselinePosition property.

homogeneous
bool homogeneous [@property getter]

Get homogeneous property.

homogeneous
bool homogeneous [@property setter]

Set homogeneous property.

spacing
int spacing [@property getter]

Get spacing property.

spacing
int spacing [@property setter]

Set spacing property.

append
void append(gtk.widget.Widget child)

Adds child as the last child to box.

getBaselineChild
int getBaselineChild()

Gets the value set by gtk.box.Box.setBaselineChild.

getBaselinePosition
gtk.types.BaselinePosition getBaselinePosition()

Gets the value set by gtk.box.Box.setBaselinePosition.

getHomogeneous
bool getHomogeneous()

Returns whether the box is homogeneous (all children are the same size).

getSpacing
int getSpacing()

Gets the value set by gtk.box.Box.setSpacing.

insertChildAfter
void insertChildAfter(gtk.widget.Widget child, gtk.widget.Widget sibling)

Inserts child in the position after sibling in the list of box children.

prepend
void prepend(gtk.widget.Widget child)

Adds child as the first child to box.

remove
void remove(gtk.widget.Widget child)

Removes a child widget from box.

reorderChildAfter
void reorderChildAfter(gtk.widget.Widget child, gtk.widget.Widget sibling)

Moves child to the position after sibling in the list of box children.

setBaselineChild
void setBaselineChild(int child)

Sets the baseline child of a box.

setBaselinePosition
void setBaselinePosition(gtk.types.BaselinePosition position)

Sets the baseline position of a box.

setHomogeneous
void setHomogeneous(bool homogeneous)

Sets whether or not all children of box are given equal space in the box.

setSpacing
void setSpacing(int spacing)

Sets the number of pixels to place between children of box.