pub struct Rectangle { /* private fields */ }Implementations§
Source§impl Rectangle
impl Rectangle
pub fn new() -> Self
pub fn fill(self, value: impl Into<Brush>) -> Self
pub fn fill_optional<T>(self, value: Option<T>) -> Self
pub fn stroke(self, value: impl Into<Brush>) -> Self
pub fn stroke_optional<T>(self, value: Option<T>) -> Self
pub fn stroke_thickness(self, value: impl Into<Option<f64>>) -> Self
pub fn radius_x(self, value: impl Into<Option<f64>>) -> Self
pub fn radius_y(self, value: impl Into<Option<f64>>) -> Self
Trait Implementations§
Source§impl LayoutControl for Rectangle
impl LayoutControl for Rectangle
fn width(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn height(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn min_width(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn max_width(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn min_height(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn max_height(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn opacity(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn horizontal_alignment(
self,
value: impl Into<Option<HorizontalAlignment>>,
) -> Selfwhere
Self: Sized,
fn vertical_alignment(self, value: impl Into<Option<VerticalAlignment>>) -> Selfwhere
Self: Sized,
fn margin(self, value: impl Into<Thickness>) -> Selfwhere
Self: Sized,
fn margin_optional<T>(self, value: Option<T>) -> Self
fn exit_transition(self, transition: ExitTransition) -> Selfwhere
Self: Sized,
impl StructuralPartialEq for Rectangle
Auto Trait Implementations§
impl !Send for Rectangle
impl !Sync for Rectangle
impl Freeze for Rectangle
impl RefUnwindSafe for Rectangle
impl Unpin for Rectangle
impl UnsafeUnpin for Rectangle
impl UnwindSafe for Rectangle
Blanket Implementations§
Source§impl<T> AutomationExt for Twhere
T: LayoutControl,
impl<T> AutomationExt for Twhere
T: LayoutControl,
fn automation_name(self, value: impl Into<String>) -> Self
fn automation_id(self, value: impl Into<String>) -> Self
fn automation_heading_level(self, value: AutomationHeadingLevel) -> Self
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