[−][src]Struct neutrino::widgets::tabs::TabsState
The state of a Tabs
Fields
titles: Vec<String>
children: Vec<Box<dyn Widget>>
selected: u32
direction: Direction
stretched: bool
style: String
Methods
impl TabsState
[src]
pub fn titles(&self) -> &Vec<String>
[src]
Get the titles
pub fn children(&self) -> &Vec<Box<dyn Widget>>
[src]
Get the children
pub fn selected(&self) -> u32
[src]
Get the selected index
pub fn direction(&self) -> &Direction
[src]
Get the direction
pub fn stretched(&self) -> bool
[src]
Get the stretched flag
pub fn style(&self) -> &str
[src]
Get the style
pub fn set_titles(&mut self, titles: Vec<&str>)
[src]
Set the titles
pub fn set_children(&mut self, children: Vec<Box<dyn Widget>>)
[src]
Set the children
pub fn set_selected(&mut self, selected: u32)
[src]
Set the selected index
pub fn set_direction(&mut self, direction: Direction)
[src]
Set the direction
pub fn set_stretched(&mut self, stretched: bool)
[src]
Set the stretched flag
pub fn set_style(&mut self, style: &str)
[src]
Set the style
Auto Trait Implementations
impl !Send for TabsState
impl Unpin for TabsState
impl !Sync for TabsState
impl !UnwindSafe for TabsState
impl !RefUnwindSafe for TabsState
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,