Struct arcdps_imgui::draw_list::ImageRounded
source · pub struct ImageRounded<'ui> { /* private fields */ }
Expand description
Represents a image about to be drawn. Similar to Image
but
with corners rounded with a given radius
Implementations§
source§impl<'ui> ImageRounded<'ui>
impl<'ui> ImageRounded<'ui>
sourcepub fn new(
draw_list: &'ui DrawListMut<'_>,
texture_id: TextureId,
p_min: [f32; 2],
p_max: [f32; 2],
rounding: f32
) -> Self
pub fn new( draw_list: &'ui DrawListMut<'_>, texture_id: TextureId, p_min: [f32; 2], p_max: [f32; 2], rounding: f32 ) -> Self
Typically constructed by DrawListMut::add_image_rounded
sourcepub fn col<C>(self, col: C) -> Self
pub fn col<C>(self, col: C) -> Self
Set color tint (default: no tint/white [1.0, 1.0, 1.0, 1.0]
)
sourcepub fn round_top_left(self, value: bool) -> Self
pub fn round_top_left(self, value: bool) -> Self
Set flag to indicate if image’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 image’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 image’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 image’s bottom-right corner will be rounded.
Auto Trait Implementations§
impl<'ui> Freeze for ImageRounded<'ui>
impl<'ui> !RefUnwindSafe for ImageRounded<'ui>
impl<'ui> !Send for ImageRounded<'ui>
impl<'ui> !Sync for ImageRounded<'ui>
impl<'ui> Unpin for ImageRounded<'ui>
impl<'ui> !UnwindSafe for ImageRounded<'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