[][src]Struct nannou::ui::prelude::widget::Tabs

pub struct Tabs<'a> { /* fields omitted */ }

A wrapper around a list of Canvasses that displays them as a list of selectable tabs.

Methods

impl<'a> Tabs<'a>[src]

pub fn new(tabs: &'a [(NodeIndex<u32>, &'a str)]) -> Tabs<'a>[src]

Construct some new Canvas Tabs.

pub fn starting_canvas(self, canvas_id: NodeIndex<u32>) -> Tabs<'a>[src]

Set the initially selected tab with a Canvas via its widget::Id.

pub fn pad(self, pad: f64) -> Tabs<'a>[src]

Set the padding for all edges.

pub fn layout_horizontally(self) -> Tabs<'a>[src]

Layout the tabs horizontally.

pub fn layout_vertically(self) -> Tabs<'a>[src]

Layout the tabs vertically.

pub fn canvas_style(self, style: Style) -> Tabs<'a>[src]

Build the Tabs widget with the given styling for its Canvasses.

pub fn pad_left(self, pad: f64) -> Tabs<'a>[src]

If the Tabs has some widget::canvas::Style, assign the left padding.

pub fn pad_right(self, pad: f64) -> Tabs<'a>[src]

If the Tabs has some widget::canvas::Style, assign the left padding.

pub fn pad_bottom(self, pad: f64) -> Tabs<'a>[src]

If the Tabs has some widget::canvas::Style, assign the left padding.

pub fn pad_top(self, pad: f64) -> Tabs<'a>[src]

If the Tabs has some widget::canvas::Style, assign the left padding.

pub fn bar_thickness(self, thickness: f64) -> Tabs<'a>[src]

The width of a vertical Tabs selection bar, or the height of a horizontal one.

pub fn starting_tab_idx(self, starting_tab_idx: usize) -> Tabs<'a>[src]

Build the type's self.$($assignee).+ with the given $Type.

pub fn label_color(self, label_color: Color) -> Tabs<'a>[src]

Build the type's self.$($assignee).+ with the given $Type.

pub fn label_font_size(self, label_font_size: u32) -> Tabs<'a>[src]

Build the type's self.$($assignee).+ with the given $Type.

Trait Implementations

impl<'a> Borderable for Tabs<'a>[src]

impl<'a> Colorable for Tabs<'a>[src]

impl<'a> Common for Tabs<'a>[src]

impl<'a> Widget for Tabs<'a>[src]

type State = State

State to be stored within the Uis widget cache. Read more

type Style = Style

Every widget is required to have its own associated Style type. This type is intended to contain high-level styling information for the widget that can be optionally specified by a user of the widget. Read more

type Event = ()

The type of event yielded by the widget, returned via the Widget::set function. Read more

fn kid_area(&self, args: KidAreaArgs<Tabs<'a>>) -> KidArea[src]

The area on which child widgets will be placed when using the Place Positionable methods.

fn update(self, args: UpdateArgs<Tabs<'a>>)[src]

Update the state of the Tabs.

Auto Trait Implementations

impl<'a> RefUnwindSafe for Tabs<'a>

impl<'a> Send for Tabs<'a>

impl<'a> Sync for Tabs<'a>

impl<'a> Unpin for Tabs<'a>

impl<'a> UnwindSafe for Tabs<'a>

Blanket Implementations

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    D: AdaptFrom<S, Swp, Dwp, T>,
    Dwp: WhitePoint,
    Swp: WhitePoint,
    T: Component + Float
[src]

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

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

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

impl<T, U> ConvertInto<U> for T where
    U: ConvertFrom<T>, 
[src]

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

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

impl<W> Positionable for W where
    W: Widget
[src]

impl<T> SetParameter for T

impl<T> SetParameter for T

impl<W> Sizeable for W where
    W: Widget
[src]

fn get_x_dimension(&self, ui: &Ui) -> Dimension[src]

We attempt to retrieve the x Dimension for the widget via the following:

  • Check for specified value at maybe_x_dimension
  • Otherwise, use the default returned by Widget::default_x_dimension.

fn get_y_dimension(&self, ui: &Ui) -> Dimension[src]

We attempt to retrieve the y Dimension for the widget via the following:

  • Check for specified value at maybe_y_dimension
  • Otherwise, use the default returned by Widget::default_y_dimension.

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<V, T> VZip<V> for T where
    V: MultiLane<T>,