Class ShortcutsSection.Builder<B extends ShortcutsSection.Builder<B>>
- Type Parameters:
B- the type of the Builder that is returned
- All Implemented Interfaces:
Accessible.Builder<B>, Orientable.Builder<B>, BuilderInterface
- Enclosing class:
ShortcutsSection
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theShortcutsSectionobject.Deprecated.This widget will be removed in GTK 5setMaxHeight(int maxHeight) Deprecated.This widget will be removed in GTK 5setSectionName(String sectionName) Deprecated.This widget will be removed in GTK 5Deprecated.This widget will be removed in GTK 5setViewName(String viewName) Deprecated.This widget will be removed in GTK 5Methods inherited from class Box.Builder
setBaselineChild, setBaselinePosition, setHomogeneous, setSpacingMethods inherited from class Widget.Builder
onDestroy, onDirectionChanged, onHide, onKeynavFailed, onMap, onMnemonicActivate, onMoveFocus, onQueryTooltip, onRealize, onShow, onStateFlagsChanged, onUnmap, onUnrealize, setCanFocus, setCanTarget, setCssClasses, setCssName, setCursor, setFocusable, setFocusOnClick, setHalign, setHasTooltip, setHeightRequest, setHexpand, setHexpandSet, setLayoutManager, setLimitEvents, setMarginBottom, setMarginEnd, setMarginStart, setMarginTop, setName, setOpacity, setOverflow, setReceivesDefault, setSensitive, setTooltipMarkup, setTooltipText, setValign, setVexpand, setVexpandSet, setVisible, setWidthRequestMethods inherited from class GObject.Builder
onNotifyMethods inherited from class Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValuesMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Accessible.Builder
setAccessibleRoleMethods inherited from interface BuilderInterface
addBuilderProperty, connect, connect, getArenaMethods inherited from interface Orientable.Builder
setOrientation
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilderobject.
-
-
Method Details
-
build
Finish building theShortcutsSectionobject. This will callGObject.withProperties(Type, String[], Value[])to create a new GObject instance, which is then cast toShortcutsSection.- Overrides:
buildin classBox.Builder<B extends ShortcutsSection.Builder<B>>- Returns:
- a new instance of
ShortcutsSectionwith the properties that were set in the Builder object.
-
setMaxHeight
Deprecated.This widget will be removed in GTK 5The maximum number of lines to allow per column.
This property can be used to influence how the groups in this section are distributed across pages and columns. The default value of 15 should work in most cases.
- Parameters:
maxHeight- the value for themax-heightproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setSectionName
Deprecated.This widget will be removed in GTK 5A unique name to identify this section among the sections added to the
GtkShortcutsWindow.Setting the
Gtk.ShortcutsWindow:section-nameproperty to this string will make this section shown in theGtkShortcutsWindow.- Parameters:
sectionName- the value for thesection-nameproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setTitle
Deprecated.This widget will be removed in GTK 5The string to show in the section selector of the
GtkShortcutsWindowfor this section.If there is only one section, you don't need to set a title, since the section selector will not be shown in this case.
- Parameters:
title- the value for thetitleproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setViewName
Deprecated.This widget will be removed in GTK 5A view name to filter the groups in this section by.
See
Gtk.ShortcutsGroup:view.Applications are expected to use the
Gtk.ShortcutsWindow:view-nameproperty for this purpose.- Parameters:
viewName- the value for theview-nameproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
onChangeCurrentPage
Deprecated.This widget will be removed in GTK 5Emitted when we change the current page.
The default bindings for this signal are Ctrl+PgUp, PgUp, Ctrl+PgDn, PgDn.
- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - See Also:
-