ShortcutsSection

A GtkShortcutsSection collects all the keyboard shortcuts and gestures for a major application mode.

If your application needs multiple sections, you should give each section a unique [property@Gtk.ShortcutsSection:section-name] and a [property@Gtk.ShortcutsSection:title] that can be shown in the section selector of the [class@Gtk.ShortcutsWindow].

The [property@Gtk.ShortcutsSection:max-height] property can be used to influence how the groups in the section are distributed over pages and columns.

This widget is only meant to be used with [class@Gtk.ShortcutsWindow].

Constructors

this
this(GtkShortcutsSection* gtkShortcutsSection, bool ownedRef)

Sets our main struct and passes it to the parent class.

Members

Functions

addOnChangeCurrentPage
gulong addOnChangeCurrentPage(bool delegate(int, ShortcutsSection) dlg, ConnectFlags connectFlags)
getShortcutsSectionStruct
GtkShortcutsSection* getShortcutsSectionStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

Static functions

getType
GType getType()

Variables

gtkShortcutsSection
GtkShortcutsSection* gtkShortcutsSection;

the main Gtk struct

Inherited Members

From Box

gtkBox
GtkBox* gtkBox;

the main Gtk struct

getBoxStruct
GtkBox* getBoxStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

__anonymous
mixin OrientableT!(GtkBox)
Undocumented in source.
getType
GType getType()
append
void append(Widget child)

Adds @child as the last child to @box.

getBaselinePosition
GtkBaselinePosition getBaselinePosition()

Gets the value set by gtk_box_set_baseline_position().

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_set_spacing().

insertChildAfter
void insertChildAfter(Widget child, Widget sibling)

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

prepend
void prepend(Widget child)

Adds @child as the first child to @box.

remove
void remove(Widget child)

Removes a child widget from @box.

reorderChildAfter
void reorderChildAfter(Widget child, Widget sibling)

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

setBaselinePosition
void setBaselinePosition(GtkBaselinePosition 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.

Meta