Struct easy_imgui_sys::ImDrawList

source ·
#[repr(C)]
pub struct ImDrawList {
Show 15 fields pub CmdBuffer: ImVector<ImDrawCmd>, pub IdxBuffer: ImVector<ImDrawIdx>, pub VtxBuffer: ImVector<ImDrawVert>, pub Flags: ImDrawListFlags, pub _VtxCurrentIdx: c_uint, pub _Data: *mut ImDrawListSharedData, pub _VtxWritePtr: *mut ImDrawVert, pub _IdxWritePtr: *mut ImDrawIdx, pub _Path: ImVector<ImVec2>, pub _CmdHeader: ImDrawCmdHeader, pub _Splitter: ImDrawListSplitter, pub _ClipRectStack: ImVector<ImVec4>, pub _TextureIdStack: ImVector<ImTextureID>, pub _FringeScale: f32, pub _OwnerName: *const c_char,
}

Fields§

§CmdBuffer: ImVector<ImDrawCmd>§IdxBuffer: ImVector<ImDrawIdx>§VtxBuffer: ImVector<ImDrawVert>§Flags: ImDrawListFlags§_VtxCurrentIdx: c_uint§_Data: *mut ImDrawListSharedData§_VtxWritePtr: *mut ImDrawVert§_IdxWritePtr: *mut ImDrawIdx§_Path: ImVector<ImVec2>§_CmdHeader: ImDrawCmdHeader§_Splitter: ImDrawListSplitter§_ClipRectStack: ImVector<ImVec4>§_TextureIdStack: ImVector<ImTextureID>§_FringeScale: f32§_OwnerName: *const c_char

Implementations§

source§

impl ImDrawList

source

pub unsafe fn PushClipRect( &mut self, clip_rect_min: *const ImVec2, clip_rect_max: *const ImVec2, intersect_with_current_clip_rect: bool, )

source

pub unsafe fn PushClipRectFullScreen(&mut self)

source

pub unsafe fn PopClipRect(&mut self)

source

pub unsafe fn PushTextureID(&mut self, texture_id: ImTextureID)

source

pub unsafe fn PopTextureID(&mut self)

source

pub unsafe fn AddLine( &mut self, p1: *const ImVec2, p2: *const ImVec2, col: ImU32, thickness: f32, )

source

pub unsafe fn AddRect( &mut self, p_min: *const ImVec2, p_max: *const ImVec2, col: ImU32, rounding: f32, flags: ImDrawFlags, thickness: f32, )

source

pub unsafe fn AddRectFilled( &mut self, p_min: *const ImVec2, p_max: *const ImVec2, col: ImU32, rounding: f32, flags: ImDrawFlags, )

source

pub unsafe fn AddRectFilledMultiColor( &mut self, p_min: *const ImVec2, p_max: *const ImVec2, col_upr_left: ImU32, col_upr_right: ImU32, col_bot_right: ImU32, col_bot_left: ImU32, )

source

pub unsafe fn AddQuad( &mut self, p1: *const ImVec2, p2: *const ImVec2, p3: *const ImVec2, p4: *const ImVec2, col: ImU32, thickness: f32, )

source

pub unsafe fn AddQuadFilled( &mut self, p1: *const ImVec2, p2: *const ImVec2, p3: *const ImVec2, p4: *const ImVec2, col: ImU32, )

source

pub unsafe fn AddTriangle( &mut self, p1: *const ImVec2, p2: *const ImVec2, p3: *const ImVec2, col: ImU32, thickness: f32, )

source

pub unsafe fn AddTriangleFilled( &mut self, p1: *const ImVec2, p2: *const ImVec2, p3: *const ImVec2, col: ImU32, )

source

pub unsafe fn AddCircle( &mut self, center: *const ImVec2, radius: f32, col: ImU32, num_segments: c_int, thickness: f32, )

source

pub unsafe fn AddCircleFilled( &mut self, center: *const ImVec2, radius: f32, col: ImU32, num_segments: c_int, )

source

pub unsafe fn AddNgon( &mut self, center: *const ImVec2, radius: f32, col: ImU32, num_segments: c_int, thickness: f32, )

source

pub unsafe fn AddNgonFilled( &mut self, center: *const ImVec2, radius: f32, col: ImU32, num_segments: c_int, )

source

pub unsafe fn AddEllipse( &mut self, center: *const ImVec2, radius: *const ImVec2, col: ImU32, rot: f32, num_segments: c_int, thickness: f32, )

source

pub unsafe fn AddEllipseFilled( &mut self, center: *const ImVec2, radius: *const ImVec2, col: ImU32, rot: f32, num_segments: c_int, )

source

pub unsafe fn AddText( &mut self, pos: *const ImVec2, col: ImU32, text_begin: *const c_char, text_end: *const c_char, )

source

pub unsafe fn AddText1( &mut self, font: *const ImFont, font_size: f32, pos: *const ImVec2, col: ImU32, text_begin: *const c_char, text_end: *const c_char, wrap_width: f32, cpu_fine_clip_rect: *const ImVec4, )

source

pub unsafe fn AddBezierCubic( &mut self, p1: *const ImVec2, p2: *const ImVec2, p3: *const ImVec2, p4: *const ImVec2, col: ImU32, thickness: f32, num_segments: c_int, )

source

pub unsafe fn AddBezierQuadratic( &mut self, p1: *const ImVec2, p2: *const ImVec2, p3: *const ImVec2, col: ImU32, thickness: f32, num_segments: c_int, )

source

pub unsafe fn AddPolyline( &mut self, points: *const ImVec2, num_points: c_int, col: ImU32, flags: ImDrawFlags, thickness: f32, )

source

pub unsafe fn AddConvexPolyFilled( &mut self, points: *const ImVec2, num_points: c_int, col: ImU32, )

source

pub unsafe fn AddConcavePolyFilled( &mut self, points: *const ImVec2, num_points: c_int, col: ImU32, )

source

pub unsafe fn AddImage( &mut self, user_texture_id: ImTextureID, p_min: *const ImVec2, p_max: *const ImVec2, uv_min: *const ImVec2, uv_max: *const ImVec2, col: ImU32, )

source

pub unsafe fn AddImageQuad( &mut self, user_texture_id: ImTextureID, p1: *const ImVec2, p2: *const ImVec2, p3: *const ImVec2, p4: *const ImVec2, uv1: *const ImVec2, uv2: *const ImVec2, uv3: *const ImVec2, uv4: *const ImVec2, col: ImU32, )

source

pub unsafe fn AddImageRounded( &mut self, user_texture_id: ImTextureID, p_min: *const ImVec2, p_max: *const ImVec2, uv_min: *const ImVec2, uv_max: *const ImVec2, col: ImU32, rounding: f32, flags: ImDrawFlags, )

source

pub unsafe fn PathArcTo( &mut self, center: *const ImVec2, radius: f32, a_min: f32, a_max: f32, num_segments: c_int, )

source

pub unsafe fn PathArcToFast( &mut self, center: *const ImVec2, radius: f32, a_min_of_12: c_int, a_max_of_12: c_int, )

source

pub unsafe fn PathEllipticalArcTo( &mut self, center: *const ImVec2, radius: *const ImVec2, rot: f32, a_min: f32, a_max: f32, num_segments: c_int, )

source

pub unsafe fn PathBezierCubicCurveTo( &mut self, p2: *const ImVec2, p3: *const ImVec2, p4: *const ImVec2, num_segments: c_int, )

source

pub unsafe fn PathBezierQuadraticCurveTo( &mut self, p2: *const ImVec2, p3: *const ImVec2, num_segments: c_int, )

source

pub unsafe fn PathRect( &mut self, rect_min: *const ImVec2, rect_max: *const ImVec2, rounding: f32, flags: ImDrawFlags, )

source

pub unsafe fn AddCallback( &mut self, callback: ImDrawCallback, callback_data: *mut c_void, )

source

pub unsafe fn AddDrawCmd(&mut self)

source

pub unsafe fn CloneOutput(&self) -> *mut ImDrawList

source

pub unsafe fn PrimReserve(&mut self, idx_count: c_int, vtx_count: c_int)

source

pub unsafe fn PrimUnreserve(&mut self, idx_count: c_int, vtx_count: c_int)

source

pub unsafe fn PrimRect( &mut self, a: *const ImVec2, b: *const ImVec2, col: ImU32, )

source

pub unsafe fn PrimRectUV( &mut self, a: *const ImVec2, b: *const ImVec2, uv_a: *const ImVec2, uv_b: *const ImVec2, col: ImU32, )

source

pub unsafe fn PrimQuadUV( &mut self, a: *const ImVec2, b: *const ImVec2, c: *const ImVec2, d: *const ImVec2, uv_a: *const ImVec2, uv_b: *const ImVec2, uv_c: *const ImVec2, uv_d: *const ImVec2, col: ImU32, )

source

pub unsafe fn _ResetForNewFrame(&mut self)

source

pub unsafe fn _ClearFreeMemory(&mut self)

source

pub unsafe fn _PopUnusedDrawCmd(&mut self)

source

pub unsafe fn _TryMergeDrawCmds(&mut self)

source

pub unsafe fn _OnChangedClipRect(&mut self)

source

pub unsafe fn _OnChangedTextureID(&mut self)

source

pub unsafe fn _OnChangedVtxOffset(&mut self)

source

pub unsafe fn _CalcCircleAutoSegmentCount(&self, radius: f32) -> c_int

source

pub unsafe fn _PathArcToFastEx( &mut self, center: *const ImVec2, radius: f32, a_min_sample: c_int, a_max_sample: c_int, a_step: c_int, )

source

pub unsafe fn _PathArcToN( &mut self, center: *const ImVec2, radius: f32, a_min: f32, a_max: f32, num_segments: c_int, )

Trait Implementations§

source§

impl Debug for ImDrawList

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.