Skip to main content

TheTabLayoutTrait

Trait TheTabLayoutTrait 

Source
pub trait TheTabLayoutTrait: TheLayout {
    // Required methods
    fn clear(&mut self);
    fn add_canvas(&mut self, name: String, canvas: TheCanvas);
    fn index(&self) -> usize;
    fn set_index(&mut self, index: usize);
}
Expand description

TheTabLayoutTrait specific functions.

Required Methods§

Source

fn clear(&mut self)

Clear the canvas.

Source

fn add_canvas(&mut self, name: String, canvas: TheCanvas)

Add a canvas to the stack.

Source

fn index(&self) -> usize

Returns the index of the current canvas.

Source

fn set_index(&mut self, index: usize)

Set the index of the current canvas.

Implementors§