Struct nannou::ui::widget::CommonStyle [−][src]
pub struct CommonStyle { pub maybe_x_dimension: Option<Dimension>, pub maybe_y_dimension: Option<Dimension>, pub maybe_x_position: Option<Position>, pub maybe_y_position: Option<Position>, pub maybe_depth: Option<f32>, }
Expand description
Styling and positioning data that is common between all widget types.
Fields
maybe_x_dimension: Option<Dimension>
The width of a Widget.
maybe_y_dimension: Option<Dimension>
The height of a Widget.
maybe_x_position: Option<Position>
The position of a Widget along the x axis.
maybe_y_position: Option<Position>
The position of a Widget along the y axis.
maybe_depth: Option<f32>
The rendering Depth of the Widget.
Trait Implementations
Returns the “default value” for a type. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for CommonStyle
impl Send for CommonStyle
impl Sync for CommonStyle
impl Unpin for CommonStyle
impl UnwindSafe for CommonStyle
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