Public Member Functions | Public Attributes | List of all members
ImDrawList Struct Reference

#include <imgui.h>

Public Member Functions

IMGUI_API void AddBezierCurve (const ImVec2 &p1, const ImVec2 &p2, const ImVec2 &p3, const ImVec2 &p4, ImU32 col, float thickness, int num_segments=0)
 
IMGUI_API void AddCallback (ImDrawCallback callback, void *callback_data)
 
IMGUI_API void AddCircle (const ImVec2 &center, float radius, ImU32 col, int num_segments=12, float thickness=1.0f)
 
IMGUI_API void AddCircleFilled (const ImVec2 &center, float radius, ImU32 col, int num_segments=12)
 
IMGUI_API void AddConvexPolyFilled (const ImVec2 *points, int num_points, ImU32 col)
 
IMGUI_API void AddDrawCmd ()
 
IMGUI_API void AddImage (ImTextureID user_texture_id, const ImVec2 &p_min, const ImVec2 &p_max, const ImVec2 &uv_min=ImVec2(0, 0), const ImVec2 &uv_max=ImVec2(1, 1), ImU32 col=IM_COL32_WHITE)
 
IMGUI_API void AddImageQuad (ImTextureID user_texture_id, const ImVec2 &p1, const ImVec2 &p2, const ImVec2 &p3, const ImVec2 &p4, const ImVec2 &uv1=ImVec2(0, 0), const ImVec2 &uv2=ImVec2(1, 0), const ImVec2 &uv3=ImVec2(1, 1), const ImVec2 &uv4=ImVec2(0, 1), ImU32 col=IM_COL32_WHITE)
 
IMGUI_API void AddImageRounded (ImTextureID user_texture_id, const ImVec2 &p_min, const ImVec2 &p_max, const ImVec2 &uv_min, const ImVec2 &uv_max, ImU32 col, float rounding, ImDrawCornerFlags rounding_corners=ImDrawCornerFlags_All)
 
IMGUI_API void AddLine (const ImVec2 &p1, const ImVec2 &p2, ImU32 col, float thickness=1.0f)
 
IMGUI_API void AddNgon (const ImVec2 &center, float radius, ImU32 col, int num_segments, float thickness=1.0f)
 
IMGUI_API void AddNgonFilled (const ImVec2 &center, float radius, ImU32 col, int num_segments)
 
IMGUI_API void AddPolyline (const ImVec2 *points, int num_points, ImU32 col, bool closed, float thickness)
 
IMGUI_API void AddQuad (const ImVec2 &p1, const ImVec2 &p2, const ImVec2 &p3, const ImVec2 &p4, ImU32 col, float thickness=1.0f)
 
IMGUI_API void AddQuadFilled (const ImVec2 &p1, const ImVec2 &p2, const ImVec2 &p3, const ImVec2 &p4, ImU32 col)
 
IMGUI_API void AddRect (const ImVec2 &p_min, const ImVec2 &p_max, ImU32 col, float rounding=0.0f, ImDrawCornerFlags rounding_corners=ImDrawCornerFlags_All, float thickness=1.0f)
 
IMGUI_API void AddRectFilled (const ImVec2 &p_min, const ImVec2 &p_max, ImU32 col, float rounding=0.0f, ImDrawCornerFlags rounding_corners=ImDrawCornerFlags_All)
 
IMGUI_API void AddRectFilledMultiColor (const ImVec2 &p_min, const ImVec2 &p_max, ImU32 col_upr_left, ImU32 col_upr_right, ImU32 col_bot_right, ImU32 col_bot_left)
 
IMGUI_API void AddText (const ImFont *font, float font_size, const ImVec2 &pos, ImU32 col, const char *text_begin, const char *text_end=NULL, float wrap_width=0.0f, const ImVec4 *cpu_fine_clip_rect=NULL)
 
IMGUI_API void AddText (const ImVec2 &pos, ImU32 col, const char *text_begin, const char *text_end=NULL)
 
IMGUI_API void AddTriangle (const ImVec2 &p1, const ImVec2 &p2, const ImVec2 &p3, ImU32 col, float thickness=1.0f)
 
IMGUI_API void AddTriangleFilled (const ImVec2 &p1, const ImVec2 &p2, const ImVec2 &p3, ImU32 col)
 
void ChannelsMerge ()
 
void ChannelsSetCurrent (int n)
 
void ChannelsSplit (int count)
 
IMGUI_API void Clear ()
 
IMGUI_API void ClearFreeMemory ()
 
IMGUI_API ImDrawListCloneOutput () const
 
ImVec2 GetClipRectMax () const
 
ImVec2 GetClipRectMin () const
 
 ImDrawList (const ImDrawListSharedData *shared_data)
 
IMGUI_API void PathArcTo (const ImVec2 &center, float radius, float a_min, float a_max, int num_segments=10)
 
IMGUI_API void PathArcToFast (const ImVec2 &center, float radius, int a_min_of_12, int a_max_of_12)
 
IMGUI_API void PathBezierCurveTo (const ImVec2 &p2, const ImVec2 &p3, const ImVec2 &p4, int num_segments=0)
 
void PathClear ()
 
void PathFillConvex (ImU32 col)
 
void PathLineTo (const ImVec2 &pos)
 
void PathLineToMergeDuplicate (const ImVec2 &pos)
 
IMGUI_API void PathRect (const ImVec2 &rect_min, const ImVec2 &rect_max, float rounding=0.0f, ImDrawCornerFlags rounding_corners=ImDrawCornerFlags_All)
 
void PathStroke (ImU32 col, bool closed, float thickness=1.0f)
 
IMGUI_API void PopClipRect ()
 
IMGUI_API void PopTextureID ()
 
IMGUI_API void PrimQuadUV (const ImVec2 &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, ImU32 col)
 
IMGUI_API void PrimRect (const ImVec2 &a, const ImVec2 &b, ImU32 col)
 
IMGUI_API void PrimRectUV (const ImVec2 &a, const ImVec2 &b, const ImVec2 &uv_a, const ImVec2 &uv_b, ImU32 col)
 
IMGUI_API void PrimReserve (int idx_count, int vtx_count)
 
IMGUI_API void PrimUnreserve (int idx_count, int vtx_count)
 
void PrimVtx (const ImVec2 &pos, const ImVec2 &uv, ImU32 col)
 
void PrimWriteIdx (ImDrawIdx idx)
 
void PrimWriteVtx (const ImVec2 &pos, const ImVec2 &uv, ImU32 col)
 
IMGUI_API void PushClipRect (ImVec2 clip_rect_min, ImVec2 clip_rect_max, bool intersect_with_current_clip_rect=false)
 
IMGUI_API void PushClipRectFullScreen ()
 
IMGUI_API void PushTextureID (ImTextureID texture_id)
 
IMGUI_API void UpdateClipRect ()
 
IMGUI_API void UpdateTextureID ()
 
 ~ImDrawList ()
 

Public Attributes

ImVector< ImVec4_ClipRectStack
 
const ImDrawListSharedData_Data
 
ImDrawIdx_IdxWritePtr
 
const char * _OwnerName
 
ImVector< ImVec2_Path
 
ImDrawListSplitter _Splitter
 
ImVector< ImTextureID_TextureIdStack
 
unsigned int _VtxCurrentIdx
 
unsigned int _VtxCurrentOffset
 
ImDrawVert_VtxWritePtr
 
ImVector< ImDrawCmdCmdBuffer
 
ImDrawListFlags Flags
 
ImVector< ImDrawIdxIdxBuffer
 
ImVector< ImDrawVertVtxBuffer
 

Detailed Description

Definition at line 1961 of file imgui.h.

Constructor & Destructor Documentation

◆ ImDrawList()

ImDrawList::ImDrawList ( const ImDrawListSharedData shared_data)
inline

Definition at line 1982 of file imgui.h.

◆ ~ImDrawList()

ImDrawList::~ImDrawList ( )
inline

Definition at line 1983 of file imgui.h.

Member Function Documentation

◆ AddBezierCurve()

void ImDrawList::AddBezierCurve ( const ImVec2 p1,
const ImVec2 p2,
const ImVec2 p3,
const ImVec2 p4,
ImU32  col,
float  thickness,
int  num_segments = 0 
)

Definition at line 1196 of file imgui_draw.cpp.

◆ AddCallback()

void ImDrawList::AddCallback ( ImDrawCallback  callback,
void callback_data 
)

Definition at line 435 of file imgui_draw.cpp.

◆ AddCircle()

void ImDrawList::AddCircle ( const ImVec2 center,
float  radius,
ImU32  col,
int  num_segments = 12,
float  thickness = 1.0f 
)

Definition at line 1111 of file imgui_draw.cpp.

◆ AddCircleFilled()

void ImDrawList::AddCircleFilled ( const ImVec2 center,
float  radius,
ImU32  col,
int  num_segments = 12 
)

Definition at line 1141 of file imgui_draw.cpp.

◆ AddConvexPolyFilled()

void ImDrawList::AddConvexPolyFilled ( const ImVec2 points,
int  num_points,
ImU32  col 
)

Definition at line 813 of file imgui_draw.cpp.

◆ AddDrawCmd()

void ImDrawList::AddDrawCmd ( )

Definition at line 423 of file imgui_draw.cpp.

◆ AddImage()

void ImDrawList::AddImage ( ImTextureID  user_texture_id,
const ImVec2 p_min,
const ImVec2 p_max,
const ImVec2 uv_min = ImVec2(0, 0),
const ImVec2 uv_max = ImVec2(1, 1),
ImU32  col = IM_COL32_WHITE 
)

Definition at line 1240 of file imgui_draw.cpp.

◆ AddImageQuad()

void ImDrawList::AddImageQuad ( ImTextureID  user_texture_id,
const ImVec2 p1,
const ImVec2 p2,
const ImVec2 p3,
const ImVec2 p4,
const ImVec2 uv1 = ImVec2(0, 0),
const ImVec2 uv2 = ImVec2(1, 0),
const ImVec2 uv3 = ImVec2(1, 1),
const ImVec2 uv4 = ImVec2(0, 1),
ImU32  col = IM_COL32_WHITE 
)

Definition at line 1256 of file imgui_draw.cpp.

◆ AddImageRounded()

void ImDrawList::AddImageRounded ( ImTextureID  user_texture_id,
const ImVec2 p_min,
const ImVec2 p_max,
const ImVec2 uv_min,
const ImVec2 uv_max,
ImU32  col,
float  rounding,
ImDrawCornerFlags  rounding_corners = ImDrawCornerFlags_All 
)

Definition at line 1272 of file imgui_draw.cpp.

◆ AddLine()

void ImDrawList::AddLine ( const ImVec2 p1,
const ImVec2 p2,
ImU32  col,
float  thickness = 1.0f 
)

Definition at line 1011 of file imgui_draw.cpp.

◆ AddNgon()

void ImDrawList::AddNgon ( const ImVec2 center,
float  radius,
ImU32  col,
int  num_segments,
float  thickness = 1.0f 
)

Definition at line 1172 of file imgui_draw.cpp.

◆ AddNgonFilled()

void ImDrawList::AddNgonFilled ( const ImVec2 center,
float  radius,
ImU32  col,
int  num_segments 
)

Definition at line 1184 of file imgui_draw.cpp.

◆ AddPolyline()

void ImDrawList::AddPolyline ( const ImVec2 points,
int  num_points,
ImU32  col,
bool  closed,
float  thickness 
)

Definition at line 625 of file imgui_draw.cpp.

◆ AddQuad()

void ImDrawList::AddQuad ( const ImVec2 p1,
const ImVec2 p2,
const ImVec2 p3,
const ImVec2 p4,
ImU32  col,
float  thickness = 1.0f 
)

Definition at line 1065 of file imgui_draw.cpp.

◆ AddQuadFilled()

void ImDrawList::AddQuadFilled ( const ImVec2 p1,
const ImVec2 p2,
const ImVec2 p3,
const ImVec2 p4,
ImU32  col 
)

Definition at line 1077 of file imgui_draw.cpp.

◆ AddRect()

void ImDrawList::AddRect ( const ImVec2 p_min,
const ImVec2 p_max,
ImU32  col,
float  rounding = 0.0f,
ImDrawCornerFlags  rounding_corners = ImDrawCornerFlags_All,
float  thickness = 1.0f 
)

Definition at line 1022 of file imgui_draw.cpp.

◆ AddRectFilled()

void ImDrawList::AddRectFilled ( const ImVec2 p_min,
const ImVec2 p_max,
ImU32  col,
float  rounding = 0.0f,
ImDrawCornerFlags  rounding_corners = ImDrawCornerFlags_All 
)

Definition at line 1033 of file imgui_draw.cpp.

◆ AddRectFilledMultiColor()

void ImDrawList::AddRectFilledMultiColor ( const ImVec2 p_min,
const ImVec2 p_max,
ImU32  col_upr_left,
ImU32  col_upr_right,
ImU32  col_bot_right,
ImU32  col_bot_left 
)

Definition at line 1050 of file imgui_draw.cpp.

◆ AddText() [1/2]

void ImDrawList::AddText ( const ImFont font,
float  font_size,
const ImVec2 pos,
ImU32  col,
const char *  text_begin,
const char *  text_end = NULL,
float  wrap_width = 0.0f,
const ImVec4 cpu_fine_clip_rect = NULL 
)

Definition at line 1206 of file imgui_draw.cpp.

◆ AddText() [2/2]

void ImDrawList::AddText ( const ImVec2 pos,
ImU32  col,
const char *  text_begin,
const char *  text_end = NULL 
)

Definition at line 1235 of file imgui_draw.cpp.

◆ AddTriangle()

void ImDrawList::AddTriangle ( const ImVec2 p1,
const ImVec2 p2,
const ImVec2 p3,
ImU32  col,
float  thickness = 1.0f 
)

Definition at line 1089 of file imgui_draw.cpp.

◆ AddTriangleFilled()

void ImDrawList::AddTriangleFilled ( const ImVec2 p1,
const ImVec2 p2,
const ImVec2 p3,
ImU32  col 
)

Definition at line 1100 of file imgui_draw.cpp.

◆ ChannelsMerge()

void ImDrawList::ChannelsMerge ( )
inline

Definition at line 2046 of file imgui.h.

◆ ChannelsSetCurrent()

void ImDrawList::ChannelsSetCurrent ( int  n)
inline

Definition at line 2047 of file imgui.h.

◆ ChannelsSplit()

void ImDrawList::ChannelsSplit ( int  count)
inline

Definition at line 2045 of file imgui.h.

◆ Clear()

void ImDrawList::Clear ( )

Definition at line 379 of file imgui_draw.cpp.

◆ ClearFreeMemory()

void ImDrawList::ClearFreeMemory ( )

Definition at line 395 of file imgui_draw.cpp.

◆ CloneOutput()

ImDrawList * ImDrawList::CloneOutput ( ) const

Definition at line 409 of file imgui_draw.cpp.

◆ GetClipRectMax()

ImVec2 ImDrawList::GetClipRectMax ( ) const
inline

Definition at line 1990 of file imgui.h.

◆ GetClipRectMin()

ImVec2 ImDrawList::GetClipRectMin ( ) const
inline

Definition at line 1989 of file imgui.h.

◆ PathArcTo()

void ImDrawList::PathArcTo ( const ImVec2 center,
float  radius,
float  a_min,
float  a_max,
int  num_segments = 10 
)

Definition at line 917 of file imgui_draw.cpp.

◆ PathArcToFast()

void ImDrawList::PathArcToFast ( const ImVec2 center,
float  radius,
int  a_min_of_12,
int  a_max_of_12 
)

Definition at line 894 of file imgui_draw.cpp.

◆ PathBezierCurveTo()

void ImDrawList::PathBezierCurveTo ( const ImVec2 p2,
const ImVec2 p3,
const ImVec2 p4,
int  num_segments = 0 
)

Definition at line 971 of file imgui_draw.cpp.

◆ PathClear()

void ImDrawList::PathClear ( )
inline

Definition at line 2024 of file imgui.h.

◆ PathFillConvex()

void ImDrawList::PathFillConvex ( ImU32  col)
inline

Definition at line 2027 of file imgui.h.

◆ PathLineTo()

void ImDrawList::PathLineTo ( const ImVec2 pos)
inline

Definition at line 2025 of file imgui.h.

◆ PathLineToMergeDuplicate()

void ImDrawList::PathLineToMergeDuplicate ( const ImVec2 pos)
inline

Definition at line 2026 of file imgui.h.

◆ PathRect()

void ImDrawList::PathRect ( const ImVec2 rect_min,
const ImVec2 rect_max,
float  rounding = 0.0f,
ImDrawCornerFlags  rounding_corners = ImDrawCornerFlags_All 
)

Definition at line 986 of file imgui_draw.cpp.

◆ PathStroke()

void ImDrawList::PathStroke ( ImU32  col,
bool  closed,
float  thickness = 1.0f 
)
inline

Definition at line 2028 of file imgui.h.

◆ PopClipRect()

void ImDrawList::PopClipRect ( )

Definition at line 516 of file imgui_draw.cpp.

◆ PopTextureID()

void ImDrawList::PopTextureID ( )

Definition at line 529 of file imgui_draw.cpp.

◆ PrimQuadUV()

void ImDrawList::PrimQuadUV ( const ImVec2 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,
ImU32  col 
)

Definition at line 604 of file imgui_draw.cpp.

◆ PrimRect()

void ImDrawList::PrimRect ( const ImVec2 a,
const ImVec2 b,
ImU32  col 
)

Definition at line 574 of file imgui_draw.cpp.

◆ PrimRectUV()

void ImDrawList::PrimRectUV ( const ImVec2 a,
const ImVec2 b,
const ImVec2 uv_a,
const ImVec2 uv_b,
ImU32  col 
)

Definition at line 589 of file imgui_draw.cpp.

◆ PrimReserve()

void ImDrawList::PrimReserve ( int  idx_count,
int  vtx_count 
)

Definition at line 539 of file imgui_draw.cpp.

◆ PrimUnreserve()

void ImDrawList::PrimUnreserve ( int  idx_count,
int  vtx_count 
)

Definition at line 563 of file imgui_draw.cpp.

◆ PrimVtx()

void ImDrawList::PrimVtx ( const ImVec2 pos,
const ImVec2 uv,
ImU32  col 
)
inline

Definition at line 2060 of file imgui.h.

◆ PrimWriteIdx()

void ImDrawList::PrimWriteIdx ( ImDrawIdx  idx)
inline

Definition at line 2059 of file imgui.h.

◆ PrimWriteVtx()

void ImDrawList::PrimWriteVtx ( const ImVec2 pos,
const ImVec2 uv,
ImU32  col 
)
inline

Definition at line 2058 of file imgui.h.

◆ PushClipRect()

void ImDrawList::PushClipRect ( ImVec2  clip_rect_min,
ImVec2  clip_rect_max,
bool  intersect_with_current_clip_rect = false 
)

Definition at line 493 of file imgui_draw.cpp.

◆ PushClipRectFullScreen()

void ImDrawList::PushClipRectFullScreen ( )

Definition at line 511 of file imgui_draw.cpp.

◆ PushTextureID()

void ImDrawList::PushTextureID ( ImTextureID  texture_id)

Definition at line 523 of file imgui_draw.cpp.

◆ UpdateClipRect()

void ImDrawList::UpdateClipRect ( )

Definition at line 451 of file imgui_draw.cpp.

◆ UpdateTextureID()

void ImDrawList::UpdateTextureID ( )

Definition at line 470 of file imgui_draw.cpp.

Member Data Documentation

◆ _ClipRectStack

ImVector<ImVec4> ImDrawList::_ClipRectStack

Definition at line 1976 of file imgui.h.

◆ _Data

const ImDrawListSharedData* ImDrawList::_Data

Definition at line 1970 of file imgui.h.

◆ _IdxWritePtr

ImDrawIdx* ImDrawList::_IdxWritePtr

Definition at line 1975 of file imgui.h.

◆ _OwnerName

const char* ImDrawList::_OwnerName

Definition at line 1971 of file imgui.h.

◆ _Path

ImVector<ImVec2> ImDrawList::_Path

Definition at line 1978 of file imgui.h.

◆ _Splitter

ImDrawListSplitter ImDrawList::_Splitter

Definition at line 1979 of file imgui.h.

◆ _TextureIdStack

ImVector<ImTextureID> ImDrawList::_TextureIdStack

Definition at line 1977 of file imgui.h.

◆ _VtxCurrentIdx

unsigned int ImDrawList::_VtxCurrentIdx

Definition at line 1973 of file imgui.h.

◆ _VtxCurrentOffset

unsigned int ImDrawList::_VtxCurrentOffset

Definition at line 1972 of file imgui.h.

◆ _VtxWritePtr

ImDrawVert* ImDrawList::_VtxWritePtr

Definition at line 1974 of file imgui.h.

◆ CmdBuffer

ImVector<ImDrawCmd> ImDrawList::CmdBuffer

Definition at line 1964 of file imgui.h.

◆ Flags

ImDrawListFlags ImDrawList::Flags

Definition at line 1967 of file imgui.h.

◆ IdxBuffer

ImVector<ImDrawIdx> ImDrawList::IdxBuffer

Definition at line 1965 of file imgui.h.

◆ VtxBuffer

ImVector<ImDrawVert> ImDrawList::VtxBuffer

Definition at line 1966 of file imgui.h.


The documentation for this struct was generated from the following files:


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:06