@@ -1837,6 +1837,7 @@ struct ImDrawListSplitter
1837
1837
1838
1838
enum ImDrawCornerFlags_
1839
1839
{
1840
+ ImDrawCornerFlags_None = 0 ,
1840
1841
ImDrawCornerFlags_TopLeft = 1 << 0 , // 0x1
1841
1842
ImDrawCornerFlags_TopRight = 1 << 1 , // 0x2
1842
1843
ImDrawCornerFlags_BotLeft = 1 << 2 , // 0x4
@@ -1897,8 +1898,8 @@ struct ImDrawList
1897
1898
1898
1899
// Primitives
1899
1900
IMGUI_API void AddLine (const ImVec2& a, const ImVec2& b, ImU32 col, float thickness = 1 .0f );
1900
- IMGUI_API void AddRect (const ImVec2& a, const ImVec2& b, ImU32 col, float rounding = 0 .0f , int rounding_corners_flags = ImDrawCornerFlags_All, float thickness = 1 .0f ); // a: upper-left, b: lower-right (== upper-left + size), rounding_corners_flags: 4-bits corresponding to which corner to round
1901
- IMGUI_API void AddRectFilled (const ImVec2& a, const ImVec2& b, ImU32 col, float rounding = 0 .0f , int rounding_corners_flags = ImDrawCornerFlags_All); // a: upper-left, b: lower-right (== upper-left + size)
1901
+ IMGUI_API void AddRect (const ImVec2& a, const ImVec2& b, ImU32 col, float rounding = 0 .0f , ImDrawCornerFlags rounding_corners = ImDrawCornerFlags_All, float thickness = 1 .0f ); // a: upper-left, b: lower-right (== upper-left + size), rounding_corners_flags: 4-bits corresponding to which corner to round
1902
+ IMGUI_API void AddRectFilled (const ImVec2& a, const ImVec2& b, ImU32 col, float rounding = 0 .0f , ImDrawCornerFlags rounding_corners = ImDrawCornerFlags_All); // a: upper-left, b: lower-right (== upper-left + size)
1902
1903
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);
1903
1904
IMGUI_API void AddQuad (const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& d, ImU32 col, float thickness = 1 .0f );
1904
1905
IMGUI_API void AddQuadFilled (const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& d, ImU32 col);
@@ -1910,7 +1911,7 @@ struct ImDrawList
1910
1911
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 );
1911
1912
IMGUI_API void AddImage (ImTextureID user_texture_id, const ImVec2& a, const ImVec2& b, const ImVec2& uv_a = ImVec2(0 ,0 ), const ImVec2& uv_b = ImVec2(1 ,1 ), ImU32 col = IM_COL32_WHITE);
1912
1913
IMGUI_API void AddImageQuad (ImTextureID user_texture_id, const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& d, const ImVec2& uv_a = ImVec2(0 ,0 ), const ImVec2& uv_b = ImVec2(1 ,0 ), const ImVec2& uv_c = ImVec2(1 ,1 ), const ImVec2& uv_d = ImVec2(0 ,1 ), ImU32 col = IM_COL32_WHITE);
1913
- IMGUI_API void AddImageRounded (ImTextureID user_texture_id, const ImVec2& a, const ImVec2& b, const ImVec2& uv_a, const ImVec2& uv_b, ImU32 col, float rounding, int rounding_corners = ImDrawCornerFlags_All);
1914
+ IMGUI_API void AddImageRounded (ImTextureID user_texture_id, const ImVec2& a, const ImVec2& b, const ImVec2& uv_a, const ImVec2& uv_b, ImU32 col, float rounding, ImDrawCornerFlags rounding_corners = ImDrawCornerFlags_All);
1914
1915
IMGUI_API void AddPolyline (const ImVec2* points, int num_points, ImU32 col, bool closed, float thickness);
1915
1916
IMGUI_API void AddConvexPolyFilled (const ImVec2* points, int num_points, ImU32 col); // Note: Anti-aliased filling requires points to be in clockwise order.
1916
1917
IMGUI_API void AddBezierCurve (const ImVec2& pos0, const ImVec2& cp0, const ImVec2& cp1, const ImVec2& pos1, ImU32 col, float thickness, int num_segments = 0 );
@@ -1924,7 +1925,7 @@ struct ImDrawList
1924
1925
IMGUI_API void PathArcTo (const ImVec2& centre, float radius, float a_min, float a_max, int num_segments = 10 );
1925
1926
IMGUI_API void PathArcToFast (const ImVec2& centre, float radius, int a_min_of_12, int a_max_of_12); // Use precomputed angles for a 12 steps circle
1926
1927
IMGUI_API void PathBezierCurveTo (const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, int num_segments = 0 );
1927
- IMGUI_API void PathRect (const ImVec2& rect_min, const ImVec2& rect_max, float rounding = 0 .0f , int rounding_corners_flags = ImDrawCornerFlags_All);
1928
+ IMGUI_API void PathRect (const ImVec2& rect_min, const ImVec2& rect_max, float rounding = 0 .0f , ImDrawCornerFlags rounding_corners = ImDrawCornerFlags_All);
1928
1929
1929
1930
// Advanced
1930
1931
IMGUI_API void AddCallback (ImDrawCallback callback, void * callback_data); // Your rendering function must check for 'UserCallback' in ImDrawCmd and call the function instead of rendering triangles.
0 commit comments