ScummVM API documentation
ImDrawList Struct Reference

Public Member Functions

 ImDrawList (ImDrawListSharedData *shared_data)
 
void PushClipRect (const ImVec2 &clip_rect_min, const ImVec2 &clip_rect_max, bool intersect_with_current_clip_rect=false)
 
void PushClipRectFullScreen ()
 
void PopClipRect ()
 
void PushTextureID (ImTextureID texture_id)
 
void PopTextureID ()
 
ImVec2 GetClipRectMin () const
 
ImVec2 GetClipRectMax () const
 
void AddLine (const ImVec2 &p1, const ImVec2 &p2, ImU32 col, float thickness=1.0f)
 
void AddRect (const ImVec2 &p_min, const ImVec2 &p_max, ImU32 col, float rounding=0.0f, ImDrawFlags flags=0, float thickness=1.0f)
 
void AddRectFilled (const ImVec2 &p_min, const ImVec2 &p_max, ImU32 col, float rounding=0.0f, ImDrawFlags flags=0)
 
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)
 
void AddQuad (const ImVec2 &p1, const ImVec2 &p2, const ImVec2 &p3, const ImVec2 &p4, ImU32 col, float thickness=1.0f)
 
void AddQuadFilled (const ImVec2 &p1, const ImVec2 &p2, const ImVec2 &p3, const ImVec2 &p4, ImU32 col)
 
void AddTriangle (const ImVec2 &p1, const ImVec2 &p2, const ImVec2 &p3, ImU32 col, float thickness=1.0f)
 
void AddTriangleFilled (const ImVec2 &p1, const ImVec2 &p2, const ImVec2 &p3, ImU32 col)
 
void AddCircle (const ImVec2 &center, float radius, ImU32 col, int num_segments=0, float thickness=1.0f)
 
void AddCircleFilled (const ImVec2 &center, float radius, ImU32 col, int num_segments=0)
 
void AddNgon (const ImVec2 &center, float radius, ImU32 col, int num_segments, float thickness=1.0f)
 
void AddNgonFilled (const ImVec2 &center, float radius, ImU32 col, int num_segments)
 
void AddEllipse (const ImVec2 &center, const ImVec2 &radius, ImU32 col, float rot=0.0f, int num_segments=0, float thickness=1.0f)
 
void AddEllipseFilled (const ImVec2 &center, const ImVec2 &radius, ImU32 col, float rot=0.0f, int num_segments=0)
 
void AddText (const ImVec2 &pos, ImU32 col, const char *text_begin, const char *text_end=NULL)
 
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)
 
void AddBezierCubic (const ImVec2 &p1, const ImVec2 &p2, const ImVec2 &p3, const ImVec2 &p4, ImU32 col, float thickness, int num_segments=0)
 
void AddBezierQuadratic (const ImVec2 &p1, const ImVec2 &p2, const ImVec2 &p3, ImU32 col, float thickness, int num_segments=0)
 
void AddPolyline (const ImVec2 *points, int num_points, ImU32 col, ImDrawFlags flags, float thickness)
 
void AddConvexPolyFilled (const ImVec2 *points, int num_points, ImU32 col)
 
void AddConcavePolyFilled (const ImVec2 *points, int num_points, ImU32 col)
 
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=(((ImU32)(255)<< 24)|((ImU32)(255)<< 16)|((ImU32)(255)<< 8)|((ImU32)(255)<< 0)))
 
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=(((ImU32)(255)<< 24)|((ImU32)(255)<< 16)|((ImU32)(255)<< 8)|((ImU32)(255)<< 0)))
 
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, ImDrawFlags flags=0)
 
void PathClear ()
 
void PathLineTo (const ImVec2 &pos)
 
void PathLineToMergeDuplicate (const ImVec2 &pos)
 
void PathFillConvex (ImU32 col)
 
void PathFillConcave (ImU32 col)
 
void PathStroke (ImU32 col, ImDrawFlags flags=0, float thickness=1.0f)
 
void PathArcTo (const ImVec2 &center, float radius, float a_min, float a_max, int num_segments=0)
 
void PathArcToFast (const ImVec2 &center, float radius, int a_min_of_12, int a_max_of_12)
 
void PathEllipticalArcTo (const ImVec2 &center, const ImVec2 &radius, float rot, float a_min, float a_max, int num_segments=0)
 
void PathBezierCubicCurveTo (const ImVec2 &p2, const ImVec2 &p3, const ImVec2 &p4, int num_segments=0)
 
void PathBezierQuadraticCurveTo (const ImVec2 &p2, const ImVec2 &p3, int num_segments=0)
 
void PathRect (const ImVec2 &rect_min, const ImVec2 &rect_max, float rounding=0.0f, ImDrawFlags flags=0)
 
void AddCallback (ImDrawCallback callback, void *callback_data)
 
void AddDrawCmd ()
 
ImDrawListCloneOutput () const
 
void ChannelsSplit (int count)
 
void ChannelsMerge ()
 
void ChannelsSetCurrent (int n)
 
void PrimReserve (int idx_count, int vtx_count)
 
void PrimUnreserve (int idx_count, int vtx_count)
 
void PrimRect (const ImVec2 &a, const ImVec2 &b, ImU32 col)
 
void PrimRectUV (const ImVec2 &a, const ImVec2 &b, const ImVec2 &uv_a, const ImVec2 &uv_b, ImU32 col)
 
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)
 
void _ResetForNewFrame ()
 
void _ClearFreeMemory ()
 
void _PopUnusedDrawCmd ()
 
void _TryMergeDrawCmds ()
 
void _OnChangedClipRect ()
 
void _OnChangedTextureID ()
 
void _OnChangedVtxOffset ()
 
void _SetTextureID (ImTextureID texture_id)
 
int _CalcCircleAutoSegmentCount (float radius) const
 
void _PathArcToFastEx (const ImVec2 &center, float radius, int a_min_sample, int a_max_sample, int a_step)
 
void _PathArcToN (const ImVec2 &center, float radius, float a_min, float a_max, int num_segments)
 

Public Attributes

ImVector< ImDrawCmdCmdBuffer
 
ImVector< ImDrawIdx > IdxBuffer
 
ImVector< ImDrawVertVtxBuffer
 
ImDrawListFlags Flags
 
unsigned int _VtxCurrentIdx
 
ImDrawListSharedData_Data
 
ImDrawVert_VtxWritePtr
 
ImDrawIdx * _IdxWritePtr
 
ImVector< ImVec2_Path
 
ImDrawCmdHeader _CmdHeader
 
ImDrawListSplitter _Splitter
 
ImVector< ImVec4_ClipRectStack
 
ImVector< ImTextureID > _TextureIdStack
 
float _FringeScale
 
const char * _OwnerName
 

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