pub struct Rect<'ui> { /* private fields */ }
Expand description
Represents a rectangle about to be drawn
Implementations§
Source§impl<'ui> Rect<'ui>
impl<'ui> Rect<'ui>
Sourcepub fn rounding(self, rounding: f32) -> Rect<'ui>
pub fn rounding(self, rounding: f32) -> Rect<'ui>
Set rectangle’s corner rounding (default to 0.0: no rounding). By default all corners are rounded if this value is set.
Sourcepub fn round_top_left(self, value: bool) -> Rect<'ui>
pub fn round_top_left(self, value: bool) -> Rect<'ui>
Set flag to indicate if rectangle’s top-left corner will be rounded.
Sourcepub fn round_top_right(self, value: bool) -> Rect<'ui>
pub fn round_top_right(self, value: bool) -> Rect<'ui>
Set flag to indicate if rectangle’s top-right corner will be rounded.
Sourcepub fn round_bot_left(self, value: bool) -> Rect<'ui>
pub fn round_bot_left(self, value: bool) -> Rect<'ui>
Set flag to indicate if rectangle’s bottom-left corner will be rounded.
Sourcepub fn round_bot_right(self, value: bool) -> Rect<'ui>
pub fn round_bot_right(self, value: bool) -> Rect<'ui>
Set flag to indicate if rectangle’s bottom-right corner will be rounded.
Sourcepub fn thickness(self, thickness: f32) -> Rect<'ui>
pub fn thickness(self, thickness: f32) -> Rect<'ui>
Set rectangle’s thickness (default to 1.0 pixel).
Auto Trait Implementations§
impl<'ui> Freeze for Rect<'ui>
impl<'ui> !RefUnwindSafe for Rect<'ui>
impl<'ui> !Send for Rect<'ui>
impl<'ui> !Sync for Rect<'ui>
impl<'ui> Unpin for Rect<'ui>
impl<'ui> !UnwindSafe for Rect<'ui>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more