pub enum DrawOp {
FillRect {
rect: Rect,
radius: Corners<f32>,
color: Color,
},
Border {
rect: Rect,
widths: Sides<f32>,
colors: Sides<Color>,
radius: Corners<f32>,
},
Text {
text: String,
font: FontSpec,
top_left: Point,
color: Color,
},
PushClip(Rect),
PopClip,
PushOpacity(f32),
PopOpacity,
}Expand description
One drawing call, as recorded by RecordingRenderer.
Variants§
Trait Implementations§
impl StructuralPartialEq for DrawOp
Auto Trait Implementations§
impl Freeze for DrawOp
impl RefUnwindSafe for DrawOp
impl Send for DrawOp
impl Sync for DrawOp
impl Unpin for DrawOp
impl UnsafeUnpin for DrawOp
impl UnwindSafe for DrawOp
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