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
Provided Methods§
sourcefn tab_position(&self, tab: &impl IsA<Tab>) -> i32
fn tab_position(&self, tab: &impl IsA<Tab>) -> i32
sourcefn insert_tab(&self, tab: &impl IsA<Tab>, index: i32) -> u32
fn insert_tab(&self, tab: &impl IsA<Tab>, index: i32) -> u32
sourcefn remove_tab(&self, tab: &impl IsA<Tab>)
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 actions(&self) -> SimpleActionGroup
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
Object Safety§
This trait is not object safe.