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: impl Into<Vector2<f32>>,
p2: impl Into<Vector2<f32>>,
p3: impl Into<Vector2<f32>>,
p4: impl Into<Vector2<f32>>
) -> Self
pub fn new( draw_list: &'ui DrawListMut<'_>, texture_id: TextureId, p1: impl Into<Vector2<f32>>, p2: impl Into<Vector2<f32>>, p3: impl Into<Vector2<f32>>, p4: impl Into<Vector2<f32>> ) -> Self
Typically constructed by DrawListMut::add_image_quad
sourcepub fn uv(
self,
uv1: impl Into<Vector2<f32>>,
uv2: impl Into<Vector2<f32>>,
uv3: impl Into<Vector2<f32>>,
uv4: impl Into<Vector2<f32>>
) -> Self
pub fn uv( self, uv1: impl Into<Vector2<f32>>, uv2: impl Into<Vector2<f32>>, uv3: impl Into<Vector2<f32>>, uv4: impl Into<Vector2<f32>> ) -> 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],