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.
ShortcutsSection self()Returns `this`, for use in `with` statements.ShortcutsSectionGidBuilder builder()Get builder for [gtk.shortcuts_section.ShortcutsSection] Returns: New builder objectuint maxHeight() @propertyGet `maxHeight` property. Returns: The maximum number of lines to allow per column.void maxHeight(uint propval) @propertySet `maxHeight` property. Params: propval = The maximum number of lines to allow per column.string sectionName() @propertyGet `sectionName` property. Returns: A unique name to identify this section among the sections added to the [gtk.shortcuts_window.ShortcutsWindow].void sectionName(string propval) @propertySet `sectionName` property. Params: propval = A unique name to identify this section among the sections added to the [gtk.shortcuts_window.ShortcutsWindow].string title() @propertyGet `title` property. Returns: The string to show in the section selector of the [gtk.shortcuts_window.ShortcutsWindow] for this section.void title(string propval) @propertySet `title` property. Params: propval = The string to show in the section selector of the [gtk.shortcuts_window.ShortcutsWindow] for this section.string viewName() @propertyGet `viewName` property. Returns: A view name to filter the groups in this section by.void viewName(string propval) @propertySet `viewName` property. Params: propval = A view name to filter the groups in this section by.void addGroup(gtk.shortcuts_group.ShortcutsGroup group)Adds 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)Connect to `ChangeCurrentPage` signal.Fluent builder implementation template for gtk.shortcuts_section.ShortcutsSection
T maxHeight(uint propval)Set `maxHeight` property. Params: propval = The maximum number of lines to allow per column.T sectionName(string propval)Set `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)Set `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)Set `viewName` property. Params: propval = A view name to filter the groups in this section by.Fluent builder for gtk.shortcuts_section.ShortcutsSection
ShortcutsSection build()Create object from builder. Returns: New object