pub struct DrawList(/* private fields */);Expand description
Draw command list
Implementations§
Source§impl DrawList
impl DrawList
Sourcepub fn commands(&self) -> DrawCmdIterator<'_> ⓘ
pub fn commands(&self) -> DrawCmdIterator<'_> ⓘ
Returns an iterator over the draw commands in this draw list
Sourcepub fn vtx_buffer(&self) -> &[DrawVert]
pub fn vtx_buffer(&self) -> &[DrawVert]
Get vertex buffer as slice
Sourcepub fn idx_buffer(&self) -> &[DrawIdx] ⓘ
pub fn idx_buffer(&self) -> &[DrawIdx] ⓘ
Get index buffer as slice
Trait Implementations§
Source§impl RawWrapper for DrawList
impl RawWrapper for DrawList
Source§type Raw = ImDrawList
type Raw = ImDrawList
Wrapped raw type
Source§unsafe fn raw(&self) -> &ImDrawList
unsafe fn raw(&self) -> &ImDrawList
Returns an immutable reference to the wrapped raw value Read more
Source§unsafe fn raw_mut(&mut self) -> &mut ImDrawList
unsafe fn raw_mut(&mut self) -> &mut ImDrawList
Returns a mutable reference to the wrapped raw value Read more
Auto Trait Implementations§
impl Freeze for DrawList
impl RefUnwindSafe for DrawList
impl !Send for DrawList
impl !Sync for DrawList
impl Unpin 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