pub struct DrawList {
pub commands: Vec<DrawCommand>,
pub layers: Vec<Vec<DrawCommand>>,
}Expand description
Output draw list for one frame of UI.
Fields§
§commands: Vec<DrawCommand>§layers: Vec<Vec<DrawCommand>>Implementations§
Source§impl DrawList
impl DrawList
pub fn new() -> Self
pub fn push(&mut self, cmd: DrawCommand)
pub fn begin_layer(&mut self)
pub fn push_to_layer(&mut self, cmd: DrawCommand)
pub fn end_layer(&mut self)
pub fn total_commands(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DrawList
impl RefUnwindSafe for DrawList
impl Send for DrawList
impl Sync for DrawList
impl Unpin for DrawList
impl UnsafeUnpin for DrawList
impl UnwindSafe for DrawList
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