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

Public Member Functions

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 PopClipRect ()
 
IMGUI_API void PushTextureID (const ImTextureID &texture_id)
 
IMGUI_API void PopTextureID ()
 
IMGUI_API void AddLine (const ImVec2 &a, const ImVec2 &b, ImU32 col, float thickness=1.0f)
 
IMGUI_API void AddRect (const ImVec2 &a, const ImVec2 &b, ImU32 col, float rounding=0.0f, int rounding_corners=0x0F, float thickness=1.0f)
 
IMGUI_API void AddRectFilled (const ImVec2 &a, const ImVec2 &b, ImU32 col, float rounding=0.0f, int rounding_corners=0x0F)
 
IMGUI_API void AddRectFilledMultiColor (const ImVec2 &a, const ImVec2 &b, ImU32 col_upr_left, ImU32 col_upr_right, ImU32 col_bot_right, ImU32 col_bot_left)
 
IMGUI_API void AddQuad (const ImVec2 &a, const ImVec2 &b, const ImVec2 &c, const ImVec2 &d, ImU32 col, float thickness=1.0f)
 
IMGUI_API void AddQuadFilled (const ImVec2 &a, const ImVec2 &b, const ImVec2 &c, const ImVec2 &d, ImU32 col)
 
IMGUI_API void AddTriangle (const ImVec2 &a, const ImVec2 &b, const ImVec2 &c, ImU32 col, float thickness=1.0f)
 
IMGUI_API void AddTriangleFilled (const ImVec2 &a, const ImVec2 &b, const ImVec2 &c, ImU32 col)
 
IMGUI_API void AddCircle (const ImVec2 &centre, float radius, ImU32 col, int num_segments=12, float thickness=1.0f)
 
IMGUI_API void AddCircleFilled (const ImVec2 &centre, float radius, ImU32 col, int num_segments=12)
 
IMGUI_API void AddText (const ImVec2 &pos, ImU32 col, const char *text_begin, const char *text_end=NULL)
 
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 AddImage (ImTextureID user_texture_id, const ImVec2 &a, const ImVec2 &b, const ImVec2 &uv0=ImVec2(0, 0), const ImVec2 &uv1=ImVec2(1, 1), ImU32 col=0xFFFFFFFF)
 
IMGUI_API void AddPolyline (const ImVec2 *points, const int num_points, ImU32 col, bool closed, float thickness, bool anti_aliased)
 
IMGUI_API void AddConvexPolyFilled (const ImVec2 *points, const int num_points, ImU32 col, bool anti_aliased)
 
IMGUI_API void AddBezierCurve (const ImVec2 &pos0, const ImVec2 &cp0, const ImVec2 &cp1, const ImVec2 &pos1, ImU32 col, float thickness, int num_segments=0)
 
void PathClear ()
 
void PathLineTo (const ImVec2 &pos)
 
void PathLineToMergeDuplicate (const ImVec2 &pos)
 
void PathFill (ImU32 col)
 
void PathStroke (ImU32 col, bool closed, float thickness=1.0f)
 
IMGUI_API void PathArcTo (const ImVec2 &centre, float radius, float a_min, float a_max, int num_segments=10)
 
IMGUI_API void PathArcToFast (const ImVec2 &centre, float radius, int a_min_of_12, int a_max_of_12)
 
IMGUI_API void PathBezierCurveTo (const ImVec2 &p1, const ImVec2 &p2, const ImVec2 &p3, int num_segments=0)
 
IMGUI_API void PathRect (const ImVec2 &rect_min, const ImVec2 &rect_max, float rounding=0.0f, int rounding_corners=0x0F)
 
IMGUI_API void ChannelsSplit (int channels_count)
 
IMGUI_API void ChannelsMerge ()
 
IMGUI_API void ChannelsSetCurrent (int channel_index)
 
IMGUI_API void AddCallback (ImDrawCallback callback, void *callback_data)
 
IMGUI_API void AddDrawCmd ()
 
IMGUI_API void Clear ()
 
IMGUI_API void ClearFreeMemory ()
 
IMGUI_API void PrimReserve (int idx_count, int vtx_count)
 
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 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)
 
void PrimWriteVtx (const ImVec2 &pos, const ImVec2 &uv, ImU32 col)
 
void PrimWriteIdx (ImDrawIdx idx)
 
void PrimVtx (const ImVec2 &pos, const ImVec2 &uv, ImU32 col)
 
IMGUI_API void UpdateClipRect ()
 
IMGUI_API void UpdateTextureID ()
 

Public Attributes

ImVector< ImDrawCmdCmdBuffer
 
ImVector< ImDrawIdx > IdxBuffer
 
ImVector< ImDrawVertVtxBuffer
 
const char * _OwnerName
 
unsigned int _VtxCurrentIdx
 
ImDrawVert_VtxWritePtr
 
ImDrawIdx * _IdxWritePtr
 
ImVector< ImVec4_ClipRectStack
 
ImVector< ImTextureID > _TextureIdStack
 
ImVector< ImVec2_Path
 
int _ChannelsCurrent
 
int _ChannelsCount
 
ImVector< ImDrawChannel_Channels
 

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