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) -> Self
pub fn rounding(self, rounding: f32) -> Self
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) -> Self
pub fn round_top_left(self, value: bool) -> Self
Set flag to indicate if rectangle’s top-left corner will be rounded.
sourcepub fn round_top_right(self, value: bool) -> Self
pub fn round_top_right(self, value: bool) -> Self
Set flag to indicate if rectangle’s top-right corner will be rounded.
sourcepub fn round_bot_left(self, value: bool) -> Self
pub fn round_bot_left(self, value: bool) -> Self
Set flag to indicate if rectangle’s bottom-left corner will be rounded.
sourcepub fn round_bot_right(self, value: bool) -> Self
pub fn round_bot_right(self, value: bool) -> Self
Set flag to indicate if rectangle’s bottom-right corner will be rounded.
sourcepub fn thickness(self, thickness: f32) -> Self
pub fn thickness(self, thickness: f32) -> Self
Set rectangle’s thickness (default to 1.0 pixel).