Struct mltg::DrawCommand
source · pub struct DrawCommand { /* private fields */ }
Implementations§
source§impl DrawCommand
impl DrawCommand
pub fn clear(&self, color: impl Into<Rgba<f32>>)
pub fn fill(&self, object: &impl Fill, brush: &Brush)
pub fn stroke( &self, object: &impl Stroke, brush: &Brush, width: f32, stroke_style: Option<&StrokeStyle> )
pub fn draw_image( &self, image: &Image, dest_rect: impl Into<Rect<f32>>, src_rect: Option<Rect<f32>>, interpolation: Interpolation )
pub fn push_clip(&self, rect: impl Into<Rect<f32>>)
pub fn pop_clip(&self)
pub fn clip<F, R>(&self, rect: impl Into<Rect<f32>>, f: F) -> Rwhere F: FnOnce(&Self) -> R,
Auto Trait Implementations§
impl RefUnwindSafe for DrawCommand
impl Send for DrawCommand
impl Sync for DrawCommand
impl Unpin for DrawCommand
impl UnwindSafe for DrawCommand
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