[][src]Struct neutrino::widgets::tabs::TabsState

pub struct TabsState { /* fields omitted */ }

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]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,