Struct nannou::ui::widget::KidAreaArgs [−][src]
pub struct KidAreaArgs<'a, W> where
W: Widget, { pub rect: Rect, pub style: &'a <W as Widget>::Style, pub theme: &'a Theme, pub fonts: &'a Map, }
Expand description
Arguments to the Widget::kid_area method in a struct to simplify the method signature.
Fields
rect: Rect
The Rect describing the Widget’s position and dimensions.
style: &'a <W as Widget>::Style
Current Widget::Style of the Widget.
theme: &'a Theme
The active Theme within the Ui.
fonts: &'a Map
The Font (for determining text width).
Auto Trait Implementations
impl<'a, W> !RefUnwindSafe for KidAreaArgs<'a, W>
impl<'a, W> !Send for KidAreaArgs<'a, W>
impl<'a, W> !Sync for KidAreaArgs<'a, W>
impl<'a, W> Unpin for KidAreaArgs<'a, W>
impl<'a, W> !UnwindSafe for KidAreaArgs<'a, W>
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,
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,
Mutably borrows from an owned value. Read more
Convert into T with values clamped to the color defined bounds Read more
Convert into T. The resulting color might be invalid in its color space Read more
Convert into T, returning ok if the color is inside of its defined range,
otherwise an OutOfBounds
error is returned which contains the unclamped color. Read more
pub fn vzip(self) -> V