pub enum DrawCmd {
FillRect {
rect: Rect,
color: Color,
},
StrokeRect {
rect: Rect,
color: Color,
width: f32,
},
RoundedRect {
rect: Rect,
radius: f32,
color: Color,
},
RoundedRectStroke {
rect: Rect,
radius: f32,
color: Color,
width: f32,
},
Text {
text: String,
x: f32,
y: f32,
font_size: f32,
color: Color,
clip: Option<Rect>,
},
Line {
x0: f32,
y0: f32,
x1: f32,
y1: f32,
color: Color,
width: f32,
},
Circle {
cx: f32,
cy: f32,
radius: f32,
color: Color,
},
CircleStroke {
cx: f32,
cy: f32,
radius: f32,
color: Color,
width: f32,
},
Scissor(Rect),
PopScissor,
Image {
id: u64,
rect: Rect,
tint: Color,
},
}Variants§
FillRect
StrokeRect
RoundedRect
RoundedRectStroke
Text
Line
Circle
CircleStroke
Scissor(Rect)
PopScissor
Image
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DrawCmd
impl RefUnwindSafe for DrawCmd
impl Send for DrawCmd
impl Sync for DrawCmd
impl Unpin for DrawCmd
impl UnsafeUnpin for DrawCmd
impl UnwindSafe for DrawCmd
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