Struct nannou::ui::widget::CollapsibleArea[][src]

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) -> CollapsibleArea<'a>[src]

Begin building the CollapsibleArea widget.

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

Specify the color of the CollapsibleArea’s label.

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

Specify the font size for the CollapsibleArea’s label.

pub fn label_font_id(self, font_id: Id) -> CollapsibleArea<'a>[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<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    T: Component + Float,
    D: AdaptFrom<S, Swp, Dwp, T>,
    Swp: WhitePoint,
    Dwp: WhitePoint
[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> Downcast<T> for T

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

impl<T> Instrument for T[src]

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

impl<T> Pointable for T

type Init = T

The type for initializers.

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

impl<T> SetParameter for T

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

pub 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.

pub 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> 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.

impl<T> Upcast<T> for T

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