Package ch.bailu.gtk.adw
Klasse TabOverview
- Alle implementierten Schnittstellen:
PointerInterface
A tab overview for [class@TabView].
<picture>
<source srcset="tab-overview-dark.png" media="(prefers-color-scheme: dark)">
<img src="tab-overview.png" alt="tab-overview">
</picture>
`AdwTabOverview` is a widget that can display tabs from an `AdwTabView` in a
grid.
`AdwTabOverview` shows a thumbnail for each tab. By default thumbnails are
static for all pages except the selected one. They can be made always live
by setting [property@TabPage:live-thumbnail] to `TRUE`, or refreshed with
[method@TabPage.invalidate_thumbnail] or
[method@TabView.invalidate_thumbnails] otherwise.
If the pages are too tall or too wide, the thumbnails will be cropped; use
[property@TabPage:thumbnail-xalign] and [property@TabPage:thumbnail-yalign] to
control which part of the page should be visible in this case.
Pinned tabs are shown as smaller cards without thumbnails above the other
tabs. Unlike in [class@TabBar], they still have titles, as well as an unpin
button.
`AdwTabOverview` provides search in open tabs. It searches in tab titles and
tooltips, as well as [property@TabPage:keyword].
If [property@TabOverview:enable-new-tab] is set to `TRUE`, a new tab button
will be shown. Connect to the [signal@TabOverview::create-tab] signal to use
it.
[property@TabOverview:secondary-menu] can be used to provide a secondary menu
for the overview. Use it to add extra actions, e.g. to open a new window or
undo closed tab.
`AdwTabOverview` is intended to be used as the direct child of the window,
with the rest of the window contents set as the [property@TabOverview:child].
The child is expected to contain an [class@TabView].
`AdwTabOverview` shows window buttons by default. They can be disabled by
setting [property@TabOverview:show-start-title-buttons] and/or
[property@TabOverview:show-start-title-buttons] and/or
[property@TabOverview:show-end-title-buttons] to `FALSE`.
If search and window buttons are disabled, and secondary menu is not set, the
header bar will be hidden.
## Actions
`AdwTabOverview` defines the `overview.open` and `overview.close` actions for
opening and closing itself. They can be convenient when used together with
[class@TabButton].
## CSS nodes
`AdwTabOverview` has a single CSS node with name `taboverview`.
<picture>
<source srcset="tab-overview-dark.png" media="(prefers-color-scheme: dark)">
<img src="tab-overview.png" alt="tab-overview">
</picture>
`AdwTabOverview` is a widget that can display tabs from an `AdwTabView` in a
grid.
`AdwTabOverview` shows a thumbnail for each tab. By default thumbnails are
static for all pages except the selected one. They can be made always live
by setting [property@TabPage:live-thumbnail] to `TRUE`, or refreshed with
[method@TabPage.invalidate_thumbnail] or
[method@TabView.invalidate_thumbnails] otherwise.
If the pages are too tall or too wide, the thumbnails will be cropped; use
[property@TabPage:thumbnail-xalign] and [property@TabPage:thumbnail-yalign] to
control which part of the page should be visible in this case.
Pinned tabs are shown as smaller cards without thumbnails above the other
tabs. Unlike in [class@TabBar], they still have titles, as well as an unpin
button.
`AdwTabOverview` provides search in open tabs. It searches in tab titles and
tooltips, as well as [property@TabPage:keyword].
If [property@TabOverview:enable-new-tab] is set to `TRUE`, a new tab button
will be shown. Connect to the [signal@TabOverview::create-tab] signal to use
it.
[property@TabOverview:secondary-menu] can be used to provide a secondary menu
for the overview. Use it to add extra actions, e.g. to open a new window or
undo closed tab.
`AdwTabOverview` is intended to be used as the direct child of the window,
with the rest of the window contents set as the [property@TabOverview:child].
The child is expected to contain an [class@TabView].
`AdwTabOverview` shows window buttons by default. They can be disabled by
setting [property@TabOverview:show-start-title-buttons] and/or
[property@TabOverview:show-start-title-buttons] and/or
[property@TabOverview:show-end-title-buttons] to `FALSE`.
If search and window buttons are disabled, and secondary menu is not set, the
header bar will be hidden.
## Actions
`AdwTabOverview` defines the `overview.open` and `overview.close` actions for
opening and closing itself. They can be convenient when used together with
[class@TabButton].
## CSS nodes
`AdwTabOverview` has a single CSS node with name `taboverview`.
https://gnome.pages.gitlab.gnome.org/libadwaita/doc/main/class.TabOverview.html
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic interface
static interface
static interface
Von Klasse geerbte verschachtelte Klassen/Schnittstellen ch.bailu.gtk.gtk.Widget
Widget.OnDestroy, Widget.OnDestroyNotify, Widget.OnDirectionChanged, Widget.OnHide, Widget.OnKeynavFailed, Widget.OnMap, Widget.OnMnemonicActivate, Widget.OnMoveFocus, Widget.OnQueryTooltip, Widget.OnRealize, Widget.OnShow, Widget.OnStateFlagsChanged, Widget.OnTickCallback, Widget.OnUnmap, Widget.OnUnrealize
Von Klasse geerbte verschachtelte Klassen/Schnittstellen ch.bailu.gtk.gobject.Object
Object.OnBindingTransformFunc, Object.OnDuplicateFunc, Object.OnNotify, Object.OnToggleNotify, Object.OnWeakNotify
-
Feldübersicht
FelderVon Klasse geerbte Felder ch.bailu.gtk.gtk.Widget
SIGNAL_ON_DESTROY, SIGNAL_ON_DIRECTION_CHANGED, SIGNAL_ON_HIDE, SIGNAL_ON_KEYNAV_FAILED, SIGNAL_ON_MAP, SIGNAL_ON_MNEMONIC_ACTIVATE, SIGNAL_ON_MOVE_FOCUS, SIGNAL_ON_QUERY_TOOLTIP, SIGNAL_ON_REALIZE, SIGNAL_ON_SHOW, SIGNAL_ON_STATE_FLAGS_CHANGED, SIGNAL_ON_UNMAP, SIGNAL_ON_UNREALIZE
Von Klasse geerbte Felder ch.bailu.gtk.gobject.Object
SIGNAL_ON_NOTIFY
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungImplements interfaceAccessible
.Implements interfaceBuildable
.Implements interfaceConstraintTarget
.getChild()
Gets the child widget of @self.static ClassHandler
boolean
Gets whether to new tab button is enabled for @self.boolean
Gets whether search in tabs is enabled for @self.int
Gets the current action during a drop on the extra_drop_target.boolean
Gets whether drop data should be preloaded on hover.static int
boolean
Gets whether thumbnails use inverted layout.boolean
getOpen()
Gets whether @self is open.static long
static TypeSystem.TypeSize
boolean
Gets whether search is currently active for @self.Gets the secondary menu model for @self.boolean
Gets whether end title buttons are shown in @self's header bar.boolean
Gets whether start title buttons are shown in @self's header bar.static long
static TypeSystem.TypeSize
getView()
Gets the tab view @self controls.onCreateTab
(TabOverview.OnCreateTab signal) Connect to signal "create-tab".Connect to signal "extra-drag-drop".Connect to signal "extra-drag-value".void
Sets the child widget of @self.void
setEnableNewTab
(boolean enable_new_tab) Sets whether to enable new tab button for @self.void
setEnableSearch
(boolean enable_search) Sets whether to enable search in tabs for @self.void
setExtraDragPreload
(boolean preload) Sets whether drop data should be preloaded on hover.void
setInverted
(boolean inverted) Sets whether thumbnails use inverted layout.void
setOpen
(boolean open) Sets whether the to open @self.void
setSecondaryMenu
(MenuModel secondary_menu) Sets the secondary menu model for @self.void
setShowEndTitleButtons
(boolean show_end_title_buttons) Sets whether to show end title buttons in @self's header bar.void
setShowStartTitleButtons
(boolean show_start_title_buttons) Sets whether to show start title buttons in @self's header bar.void
setupExtraDropTarget
(int actions, Int64 types, long n_types) Sets the supported types for this drop target.void
Sets the tab view to control.Von Klasse geerbte Methoden ch.bailu.gtk.gtk.Widget
actionSetEnabled, actionSetEnabled, activate, activateAction, activateAction, activateActionVariant, activateActionVariant, activateDefault, addController, addCssClass, addCssClass, addMnemonicLabel, addTickCallback, allocate, childFocus, computeBounds, computeExpand, computePoint, computeTransform, contains, createPangoContext, createPangoLayout, createPangoLayout, disposeTemplate, dragCheckThreshold, errorBell, getAllocatedBaseline, getAllocatedHeight, getAllocatedWidth, getAllocation, getAncestor, getBaseline, getCanFocus, getCanTarget, getChildVisible, getClipboard, getColor, getCssClasses, getCssName, getCursor, getDefaultDirection, getDirection, getDisplay, getFirstChild, getFocusable, getFocusChild, getFocusOnClick, getFontMap, getFontOptions, getFrameClock, getHalign, getHasTooltip, getHeight, getHexpand, getHexpandSet, getLastChild, getLayoutManager, getLimitEvents, getMapped, getMarginBottom, getMarginEnd, getMarginStart, getMarginTop, getName, getNative, getNextSibling, getOpacity, getOverflow, getPangoContext, getParent, getPreferredSize, getPrevSibling, getPrimaryClipboard, getRealized, getReceivesDefault, getRequestMode, getRoot, getScaleFactor, getSensitive, getSettings, getSize, getSizeRequest, getStateFlags, getStyleContext, getTemplateChild, getTemplateChild, getTooltipMarkup, getTooltipText, getValign, getVexpand, getVexpandSet, getVisible, getWidth, grabFocus, hasCssClass, hasCssClass, hasDefault, hasFocus, hasVisibleFocus, hide, inDestruction, initTemplate, insertActionGroup, insertActionGroup, insertAfter, insertBefore, isAncestor, isDrawable, isFocus, isSensitive, isVisible, keynavFailed, listMnemonicLabels, map, measure, mnemonicActivate, observeChildren, observeControllers, onDestroy, onDirectionChanged, onHide, onKeynavFailed, onMap, onMnemonicActivate, onMoveFocus, onQueryTooltip, onRealize, onShow, onStateFlagsChanged, onUnmap, onUnrealize, pick, queueAllocate, queueDraw, queueResize, realize, removeController, removeCssClass, removeCssClass, removeMnemonicLabel, removeTickCallback, setCanFocus, setCanTarget, setChildVisible, setCssClasses, setCursor, setCursorFromName, setCursorFromName, setDefaultDirection, setDirection, setFocusable, setFocusChild, setFocusOnClick, setFontMap, setFontOptions, setHalign, setHasTooltip, setHexpand, setHexpandSet, setLayoutManager, setLimitEvents, setMarginBottom, setMarginEnd, setMarginStart, setMarginTop, setName, setName, setOpacity, setOverflow, setParent, setReceivesDefault, setSensitive, setSizeRequest, setStateFlags, setTooltipMarkup, setTooltipMarkup, setTooltipText, setTooltipText, setValign, setVexpand, setVexpandSet, setVisible, shouldLayout, show, sizeAllocate, snapshotChild, triggerTooltipQuery, unmap, unparent, unrealize, unsetStateFlags
Von Klasse geerbte Methoden ch.bailu.gtk.type.PropertyHolder
getBooleanProperty, getIntProperty, getObjectProperty, getStringProperty, getStrProperty, setBooleanProperty, setIntProperty, setObjectProperty, setStringProperty, setStrProperty
Von Klasse geerbte Methoden ch.bailu.gtk.gobject.Object
addToggleRef, bindProperty, bindProperty, bindPropertyFull, bindPropertyFull, bindPropertyWithClosures, bindPropertyWithClosures, compatControl, connect, connect, disconnect, disconnect, dupData, dupData, dupQdata, forceFloating, freezeNotify, get, get, getData, getData, getProperty, getProperty, getQdata, interfaceFindProperty, interfaceInstallProperty, isFloating, notify, notify, notifyByPspec, onNotify, ref, refSink, removeToggleRef, replaceData, replaceData, replaceQdata, runDispose, set, set, setData, setData, setDataFull, setDataFull, setProperty, setProperty, setQdata, setQdataFull, stealData, stealData, stealQdata, takeRef, thawNotify, unref, watchClosure, weakRef, weakUnref
Von Klasse geerbte Methoden ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Von Klasse geerbte Methoden ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Von Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Felddetails
-
SIGNAL_ON_CREATE_TAB
- Siehe auch:
-
SIGNAL_ON_EXTRA_DRAG_DROP
- Siehe auch:
-
SIGNAL_ON_EXTRA_DRAG_VALUE
- Siehe auch:
-
-
Konstruktordetails
-
TabOverview
-
TabOverview
public TabOverview()Creates a new `AdwTabOverview`.
-
-
Methodendetails
-
getClassHandler
-
getChild
Gets the child widget of @self.- Gibt zurück:
- the child widget of @self
-
getEnableNewTab
public boolean getEnableNewTab()Gets whether to new tab button is enabled for @self.- Gibt zurück:
- whether new tab button is enabled
-
getEnableSearch
public boolean getEnableSearch()Gets whether search in tabs is enabled for @self.- Gibt zurück:
- whether search is enabled
-
getExtraDragPreferredAction
public int getExtraDragPreferredAction()Gets the current action during a drop on the extra_drop_target.- Gibt zurück:
- the drag action of the current drop.
-
getExtraDragPreload
public boolean getExtraDragPreload()Gets whether drop data should be preloaded on hover.- Gibt zurück:
- whether drop data should be preloaded on hover
-
getInverted
public boolean getInverted()Gets whether thumbnails use inverted layout.- Gibt zurück:
- whether thumbnails use inverted layout
-
getOpen
public boolean getOpen()Gets whether @self is open.- Gibt zurück:
- whether the overview is open
-
getSearchActive
public boolean getSearchActive()Gets whether search is currently active for @self.
See [property@TabOverview:enable-search].- Gibt zurück:
- whether search is active
-
getSecondaryMenu
Gets the secondary menu model for @self.- Gibt zurück:
- the secondary menu model
-
getShowEndTitleButtons
public boolean getShowEndTitleButtons()Gets whether end title buttons are shown in @self's header bar.- Gibt zurück:
- whether end title buttons are shown
-
getShowStartTitleButtons
public boolean getShowStartTitleButtons()Gets whether start title buttons are shown in @self's header bar.- Gibt zurück:
- whether start title buttons are shown
-
getView
Gets the tab view @self controls.- Gibt zurück:
- the tab view
-
setChild
Sets the child widget of @self.- Parameter:
child
- the child widget
-
setEnableNewTab
public void setEnableNewTab(boolean enable_new_tab) Sets whether to enable new tab button for @self.
Connect to the [signal@TabOverview::create-tab] signal to use it.- Parameter:
enable_new_tab
- whether to enable new tab button
-
setEnableSearch
public void setEnableSearch(boolean enable_search) Sets whether to enable search in tabs for @self.
Search matches tab titles and tooltips, as well as keywords, set via
[property@TabPage:keyword]. Use keywords to search in e.g. page URLs in a web
browser.
During search, tab reordering and drag-n-drop are disabled.
Use [property@TabOverview:search-active] to check out if search is currently
active.- Parameter:
enable_search
- whether to enable search
-
setExtraDragPreload
public void setExtraDragPreload(boolean preload) Sets whether drop data should be preloaded on hover.
See [property@Gtk.DropTarget:preload].- Parameter:
preload
- whether to preload drop data
-
setInverted
public void setInverted(boolean inverted) Sets whether thumbnails use inverted layout.
If set to `TRUE`, thumbnails will have the close or unpin button at the
beginning and the indicator at the end rather than the other way around.- Parameter:
inverted
- whether thumbnails use inverted layout
-
setOpen
public void setOpen(boolean open) Sets whether the to open @self.- Parameter:
open
- whether the overview is open
-
setSecondaryMenu
Sets the secondary menu model for @self.
Use it to add extra actions, e.g. to open a new window or undo closed tab.- Parameter:
secondary_menu
- a menu model
-
setShowEndTitleButtons
public void setShowEndTitleButtons(boolean show_end_title_buttons) Sets whether to show end title buttons in @self's header bar.
See [property@HeaderBar:show-start-title-buttons] for the other side.- Parameter:
show_end_title_buttons
- whether to show end title buttons
-
setShowStartTitleButtons
public void setShowStartTitleButtons(boolean show_start_title_buttons) Sets whether to show start title buttons in @self's header bar.
See [property@HeaderBar:show-end-title-buttons] for the other side.- Parameter:
show_start_title_buttons
- whether to show start title buttons
-
setView
Sets the tab view to control.
The view must be inside @self, see [property@TabOverview:child].- Parameter:
view
- a tab view
-
setupExtraDropTarget
Sets the supported types for this drop target.
Sets up an extra drop target on tabs.
This allows to drag arbitrary content onto tabs, for example URLs in a web
browser.
If a tab is hovered for a certain period of time while dragging the content,
it will be automatically selected.
The [signal@TabOverview::extra-drag-drop] signal can be used to handle the
drop.- Parameter:
actions
- the supported actionstypes
- all supported `GType`s that can be droppedn_types
- number of @types
-
onCreateTab
Connect to signal "create-tab".
SeeTabOverview.OnCreateTab.onCreateTab()
for signal description.
FieldSIGNAL_ON_CREATE_TAB
contains original signal name and can be used as resource reference.- Parameter:
signal
- callback function (lambda).- Gibt zurück:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onExtraDragDrop
Connect to signal "extra-drag-drop".
SeeTabOverview.OnExtraDragDrop.onExtraDragDrop(ch.bailu.gtk.adw.TabPage, ch.bailu.gtk.gobject.Value)
for signal description.
FieldSIGNAL_ON_EXTRA_DRAG_DROP
contains original signal name and can be used as resource reference.- Parameter:
signal
- callback function (lambda).- Gibt zurück:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onExtraDragValue
Connect to signal "extra-drag-value".
SeeTabOverview.OnExtraDragValue.onExtraDragValue(ch.bailu.gtk.adw.TabPage, ch.bailu.gtk.gobject.Value)
for signal description.
FieldSIGNAL_ON_EXTRA_DRAG_VALUE
contains original signal name and can be used as resource reference.- Parameter:
signal
- callback function (lambda).- Gibt zurück:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
asAccessible
Implements interfaceAccessible
. Call this to get access to interface functions.- Setzt außer Kraft:
asAccessible
in KlasseWidget
- Gibt zurück:
Accessible
-
asBuildable
Implements interfaceBuildable
. Call this to get access to interface functions.- Setzt außer Kraft:
asBuildable
in KlasseWidget
- Gibt zurück:
Buildable
-
asConstraintTarget
Implements interfaceConstraintTarget
. Call this to get access to interface functions.- Setzt außer Kraft:
asConstraintTarget
in KlasseWidget
- Gibt zurück:
ConstraintTarget
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-