pub struct DrawScope {
pub commands: Vec<DrawCommand>,
pub size: Size,
}Fields§
§commands: Vec<DrawCommand>§size: SizeImplementations§
Source§impl DrawScope
impl DrawScope
pub fn draw_rect(&mut self, rect: Rect, color: Color, radius: f32)
pub fn draw_rect_stroke( &mut self, rect: Rect, color: Color, radius: f32, width: f32, )
pub fn draw_ellipse(&mut self, center: Vec2, rx: f32, ry: f32, color: Color)
pub fn draw_ellipse_stroke( &mut self, center: Vec2, rx: f32, ry: f32, color: Color, width: f32, )
pub fn draw_circle(&mut self, center: Vec2, radius: f32, color: Color)
pub fn draw_circle_stroke( &mut self, center: Vec2, radius: f32, color: Color, width: f32, )
pub fn draw_text( &mut self, text: impl Into<String>, pos: Vec2, color: Color, size: f32, )
Auto Trait Implementations§
impl Freeze for DrawScope
impl RefUnwindSafe for DrawScope
impl Send for DrawScope
impl Sync for DrawScope
impl Unpin for DrawScope
impl UnsafeUnpin for DrawScope
impl UnwindSafe for DrawScope
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