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<Depth>,
}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<Depth>The rendering Depth of the Widget.
Trait Implementations§
Source§impl Clone for CommonStyle
impl Clone for CommonStyle
Source§fn clone(&self) -> CommonStyle
fn clone(&self) -> CommonStyle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CommonStyle
Source§impl Debug for CommonStyle
impl Debug for CommonStyle
Source§impl Default for CommonStyle
impl Default for CommonStyle
Source§fn default() -> CommonStyle
fn default() -> CommonStyle
Returns the “default value” for a type. Read more
Source§impl PartialEq for CommonStyle
impl PartialEq for CommonStyle
impl StructuralPartialEq for CommonStyle
Auto Trait Implementations§
impl Freeze for CommonStyle
impl RefUnwindSafe for CommonStyle
impl Send for CommonStyle
impl Sync for CommonStyle
impl Unpin for CommonStyle
impl UnsafeUnpin for CommonStyle
impl UnwindSafe for CommonStyle
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more