Struct arcdps_imgui::draw_list::Rect
source · 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).
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