pub struct DrawList(/* private fields */);
Expand description
Draw command list
Implementations§
Source§impl DrawList
impl DrawList
pub fn idx_buffer(&self) -> &[u16]
pub fn vtx_buffer(&self) -> &[DrawVert]
Sourcepub unsafe fn transmute_vtx_buffer<VTy>(&self) -> &[VTy]where
VTy: Copy,
pub unsafe fn transmute_vtx_buffer<VTy>(&self) -> &[VTy]where
VTy: Copy,
§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
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more