[][src]Struct conrod_core::widget::collapsible_area::CollapsibleArea

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

A vertically collapsible area.

When "open" this widget returns a canvas upon which other widgets can be placed.

Implementations

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

pub fn new(is_open: bool, text: &'a str) -> Self[src]

Begin building the CollapsibleArea widget.

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

Specify the color of the CollapsibleArea's label.

pub fn label_font_size(self, font_size: FontSize) -> Self[src]

Specify the font size for the CollapsibleArea's label.

pub fn label_font_id(self, font_id: Id) -> Self[src]

Specify the font for the CollapsibleArea's label.

Trait Implementations

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

impl<'a> Clone for CollapsibleArea<'a>[src]

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

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

impl<'a> Copy for CollapsibleArea<'a>[src]

impl<'a> Debug for CollapsibleArea<'a>[src]

impl<'a> Widget for CollapsibleArea<'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 = (Option<Area>, Option<Event>)

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

Auto Trait Implementations

impl<'a> RefUnwindSafe for CollapsibleArea<'a>

impl<'a> Send for CollapsibleArea<'a>

impl<'a> Sync for CollapsibleArea<'a>

impl<'a> Unpin for CollapsibleArea<'a>

impl<'a> UnwindSafe for CollapsibleArea<'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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.