[][src]Struct conrod_core::widget::tabs::Tabs

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

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

Implementations

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

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

Construct some new Canvas Tabs.

pub fn starting_canvas(self, canvas_id: Id) -> Self[src]

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

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

Set the padding for all edges.

pub fn layout_horizontally(self) -> Self[src]

Layout the tabs horizontally.

pub fn layout_vertically(self) -> Self[src]

Layout the tabs vertically.

pub fn canvas_style(self, style: Style) -> Self[src]

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

pub fn pad_left(self, pad: Scalar) -> Self[src]

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

pub fn pad_right(self, pad: Scalar) -> Self[src]

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

pub fn pad_bottom(self, pad: Scalar) -> Self[src]

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

pub fn pad_top(self, pad: Scalar) -> Self[src]

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

pub fn bar_thickness(self, thickness: Scalar) -> Self[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) -> Self[src]

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

pub fn label_color(self, label_color: Color) -> Self[src]

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

pub fn label_font_size(self, label_font_size: FontSize) -> Self[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<'_, Self>) -> KidArea[src]

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

fn update(self, args: UpdateArgs<'_, '_, '_, '_, Self>)[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<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> 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<W> Sizeable for W where
    W: Widget
[src]

fn get_x_dimension(&Self, &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) -> 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.