pub struct DrawList(/* private fields */);
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
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