#[repr(transparent)]pub struct DrawList(_);
Expand description
Draw command list
Implementations§
source§impl DrawList
impl DrawList
pub fn idx_buffer(&self) -> &[DrawIdx]
pub fn vtx_buffer(&self) -> &[DrawVert]
sourcepub unsafe fn transmute_vtx_buffer<VTy: Copy>(&self) -> &[VTy]
pub unsafe fn transmute_vtx_buffer<VTy: Copy>(&self) -> &[VTy]
Safety
This is equivalent to transmute(self.vtx_buffer())
with a little more
checking, and thus inherits the safety considerations of transmute
ing
slices.
pub fn commands(&self) -> DrawCmdIterator<'_> ⓘ
Trait Implementations§
source§impl RawWrapper for DrawList
impl RawWrapper for DrawList
§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