gtk.shortcuts_section

Module for [ShortcutsSection] class

Types 3

A gtk.shortcuts_section.ShortcutsSection 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 gtk.shortcuts_section.ShortcutsSection.sectionName and a gtk.shortcuts_section.ShortcutsSection.title that can be shown in the section selector of the gtk.shortcuts_window.ShortcutsWindow.

The gtk.shortcuts_section.ShortcutsSection.maxHeight 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 gtk.shortcuts_window.ShortcutsWindow.

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

If you need to add a group programmatically, use gtk.shortcuts_section.ShortcutsSection.addGroup.

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
ShortcutsSection self() nothrowReturns `this`, for use in `with` statements.
ShortcutsSectionGidBuilder builder() static nothrowGet builder for [gtk.shortcuts_section.ShortcutsSection] Returns: New builder object
uint maxHeight() @property nothrowGet `maxHeight` property. Returns: The maximum number of lines to allow per column.
void maxHeight(uint propval) @property nothrowSet `maxHeight` property. Params: propval = The maximum number of lines to allow per column.
string sectionName() @property nothrowGet `sectionName` property. Returns: A unique name to identify this section among the sections added to the [gtk.shortcuts_window.ShortcutsWindow].
void sectionName(string propval) @property nothrowSet `sectionName` property. Params: propval = A unique name to identify this section among the sections added to the [gtk.shortcuts_window.ShortcutsWindow].
string title() @property nothrowGet `title` property. Returns: The string to show in the section selector of the [gtk.shortcuts_window.ShortcutsWindow] for this section.
void title(string propval) @property nothrowSet `title` property. Params: propval = The string to show in the section selector of the [gtk.shortcuts_window.ShortcutsWindow] for this section.
string viewName() @property nothrowGet `viewName` property. Returns: A view name to filter the groups in this section by.
void viewName(string propval) @property nothrowSet `viewName` property. Params: propval = A view name to filter the groups in this section by.
void addGroup(gtk.shortcuts_group.ShortcutsGroup group) nothrowAdds a group to the shortcuts section.
gulong connectChangeCurrentPage(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == bool) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == int))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gtk.shortcuts_section.ShortcutsSection))) && Parameters!T.length < 3) nothrowConnect to `ChangeCurrentPage` signal.
Constructors
this(void * ptr, Flag!"Take" take)

Fluent builder implementation template for gtk.shortcuts_section.ShortcutsSection

Methods
T maxHeight(uint propval) nothrowSet `maxHeight` property. Params: propval = The maximum number of lines to allow per column.
T sectionName(string propval) nothrowSet `sectionName` property. Params: propval = A unique name to identify this section among the sections added to the [gtk.shortcuts_window.ShortcutsWindow].
T title(string propval) nothrowSet `title` property. Params: propval = The string to show in the section selector of the [gtk.shortcuts_window.ShortcutsWindow] for this section.
T viewName(string propval) nothrowSet `viewName` property. Params: propval = A view name to filter the groups in this section by.