Struct arcdps_imgui::draw_list::ImageQuad
source · pub struct ImageQuad<'ui> { /* private fields */ }
Expand description
Represents a image about to be drawn
Implementations§
source§impl<'ui> ImageQuad<'ui>
impl<'ui> ImageQuad<'ui>
sourcepub fn new(
draw_list: &'ui DrawListMut<'_>,
texture_id: TextureId,
p1: [f32; 2],
p2: [f32; 2],
p3: [f32; 2],
p4: [f32; 2],
) -> Self
pub fn new( draw_list: &'ui DrawListMut<'_>, texture_id: TextureId, p1: [f32; 2], p2: [f32; 2], p3: [f32; 2], p4: [f32; 2], ) -> Self
Typically constructed by DrawListMut::add_image_quad
sourcepub fn uv(
self,
uv1: [f32; 2],
uv2: [f32; 2],
uv3: [f32; 2],
uv4: [f32; 2],
) -> Self
pub fn uv( self, uv1: [f32; 2], uv2: [f32; 2], uv3: [f32; 2], uv4: [f32; 2], ) -> Self
Set uv coordinates of each point of the quad. If not called, defaults are:
uv1: [0.0, 0.0],
uv2: [1, 0],
uv3: [1, 1],
uv4: [0, 1],
Auto Trait Implementations§
impl<'ui> Freeze for ImageQuad<'ui>
impl<'ui> !RefUnwindSafe for ImageQuad<'ui>
impl<'ui> !Send for ImageQuad<'ui>
impl<'ui> !Sync for ImageQuad<'ui>
impl<'ui> Unpin for ImageQuad<'ui>
impl<'ui> !UnwindSafe for ImageQuad<'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