object: TabInformation
On this page
TabInformation#
The TabInformation struct describes a tab. TabInformation is purely a
snapshot of some of the key characteristics of the tab, intended for use in
synchronous, fast, event callbacks that format GUI elements such as the window
and tab title bars.
The TabInformation struct contains the following fields:
tab_id- the identifier for the tabtab_index- the logical tab position within its containing window, with 0 indicating the leftmost tabis_active- is true if this tab is the active tabis_last_active- is true if this tab is the previously active tab.active_pane- the PaneInformation for the active pane in this tab, ornilif unavailablewindow_id- the ID of the window that contains this tabwindow_title- the title of the window that contains this tabtab_title- the displayed title of the tab. This may include a transient text badge.effective_title- the tab title without transient badges. Automatic collision suffixes remain present. If no tab title is set, this uses the active pane title when available.assigned_color- the generated background color assigned to this tab by the built-in tab color system, ornilif no generated color is assigned. This is useful informat-tab-titlecallbacks if you want to consume the built-in assignment while still customizing the tab contents.