Trait libhelium::prelude::TabSwitcherExt

source ·
pub trait TabSwitcherExt: IsA<TabSwitcher> + Sealed + 'static {
Show 39 methods // Provided methods fn tab_position(&self, tab: &impl IsA<Tab>) -> i32 { ... } fn insert_tab(&self, tab: &impl IsA<Tab>, index: i32) -> u32 { ... } fn remove_tab(&self, tab: &impl IsA<Tab>) { ... } fn n_tabs(&self) -> i32 { ... } fn tabs(&self) -> Vec<Tab> { ... } fn tab_bar_behavior(&self) -> TabSwitcherTabBarBehavior { ... } fn set_tab_bar_behavior(&self, value: TabSwitcherTabBarBehavior) { ... } fn allows_duplicate_tabs(&self) -> bool { ... } fn set_allow_duplicate_tabs(&self, value: bool) { ... } fn allows_drag(&self) -> bool { ... } fn set_allow_drag(&self, value: bool) { ... } fn allows_pinning(&self) -> bool { ... } fn set_allow_pinning(&self, value: bool) { ... } fn allows_closing(&self) -> bool { ... } fn set_allow_closing(&self, value: bool) { ... } fn allows_new_window(&self) -> bool { ... } fn set_allow_new_window(&self, value: bool) { ... } fn current(&self) -> Tab { ... } fn set_current(&self, value: &impl IsA<Tab>) { ... } fn menu(&self) -> Menu { ... } fn actions(&self) -> SimpleActionGroup { ... } fn set_menu(&self, menu: Option<&Menu>) { ... } fn connect_tab_added<F: Fn(&Self, &Tab) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_tab_removed<F: Fn(&Self, &Tab) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_tab_switched<F: Fn(&Self, Option<&Tab>, &Tab) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_tab_moved<F: Fn(&Self, &Tab) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_tab_duplicated<F: Fn(&Self, &Tab) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_new_tab_requested<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_close_tab_requested<F: Fn(&Self, &Tab) -> bool + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_n_tabs_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_tabs_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_tab_bar_behavior_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_allow_duplicate_tabs_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_allow_drag_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_allow_pinning_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_allow_closing_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_allow_new_window_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_current_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_menu_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... }
}
Expand description

Trait containing all TabSwitcher methods.

§Implementors

TabSwitcher

Provided Methods§

source

fn tab_position(&self, tab: &impl IsA<Tab>) -> i32

The position in the switcher of the tab

source

fn insert_tab(&self, tab: &impl IsA<Tab>, index: i32) -> u32

Insert a new tab into the TabSwitcher. To append a tab, you may use -1 as the index.

source

fn remove_tab(&self, tab: &impl IsA<Tab>)

Removes a tab from the TabSwitcher.

source

fn n_tabs(&self) -> i32

source

fn tabs(&self) -> Vec<Tab>

source

fn tab_bar_behavior(&self) -> TabSwitcherTabBarBehavior

source

fn set_tab_bar_behavior(&self, value: TabSwitcherTabBarBehavior)

source

fn allows_duplicate_tabs(&self) -> bool

source

fn set_allow_duplicate_tabs(&self, value: bool)

source

fn allows_drag(&self) -> bool

source

fn set_allow_drag(&self, value: bool)

source

fn allows_pinning(&self) -> bool

source

fn set_allow_pinning(&self, value: bool)

source

fn allows_closing(&self) -> bool

source

fn set_allow_closing(&self, value: bool)

source

fn allows_new_window(&self) -> bool

source

fn set_allow_new_window(&self, value: bool)

source

fn current(&self) -> Tab

source

fn set_current(&self, value: &impl IsA<Tab>)

source

fn menu(&self) -> Menu

source

fn actions(&self) -> SimpleActionGroup

source

fn set_menu(&self, menu: Option<&Menu>)

The menu appearing when the tab bar is clicked on a blank space

source

fn connect_tab_added<F: Fn(&Self, &Tab) + 'static>( &self, f: F, ) -> SignalHandlerId

source

fn connect_tab_removed<F: Fn(&Self, &Tab) + 'static>( &self, f: F, ) -> SignalHandlerId

source

fn connect_tab_switched<F: Fn(&Self, Option<&Tab>, &Tab) + 'static>( &self, f: F, ) -> SignalHandlerId

source

fn connect_tab_moved<F: Fn(&Self, &Tab) + 'static>( &self, f: F, ) -> SignalHandlerId

source

fn connect_tab_duplicated<F: Fn(&Self, &Tab) + 'static>( &self, f: F, ) -> SignalHandlerId

source

fn connect_new_tab_requested<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

source

fn connect_close_tab_requested<F: Fn(&Self, &Tab) -> bool + 'static>( &self, f: F, ) -> SignalHandlerId

source

fn connect_n_tabs_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

source

fn connect_tabs_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

source

fn connect_tab_bar_behavior_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

source

fn connect_allow_duplicate_tabs_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

source

fn connect_allow_drag_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

source

fn connect_allow_pinning_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

source

fn connect_allow_closing_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

source

fn connect_allow_new_window_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

source

fn connect_current_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

source

fn connect_menu_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

Object Safety§

This trait is not object safe.

Implementors§