|
1 |
| -// dear imgui, v1.91.3 WIP |
| 1 | +// dear imgui, v1.91.3 |
2 | 2 | // (headers)
|
3 | 3 |
|
4 | 4 | // Help:
|
|
28 | 28 |
|
29 | 29 | // Library Version
|
30 | 30 | // (Integer encoded as XYYZZ for use in #if preprocessor conditionals, e.g. '#if IMGUI_VERSION_NUM >= 12345')
|
31 |
| -#define IMGUI_VERSION "1.91.3 WIP" |
32 |
| -#define IMGUI_VERSION_NUM 19124 |
| 31 | +#define IMGUI_VERSION "1.91.3" |
| 32 | +#define IMGUI_VERSION_NUM 19130 |
33 | 33 | #define IMGUI_HAS_TABLE
|
34 | 34 | #define IMGUI_HAS_VIEWPORT // Viewport WIP branch
|
35 | 35 | #define IMGUI_HAS_DOCK // Docking WIP branch
|
@@ -1865,19 +1865,18 @@ enum ImGuiColorEditFlags_
|
1865 | 1865 |
|
1866 | 1866 | // Flags for DragFloat(), DragInt(), SliderFloat(), SliderInt() etc.
|
1867 | 1867 | // We use the same sets of flags for DragXXX() and SliderXXX() functions as the features are the same and it makes it easier to swap them.
|
1868 |
| -// (Those are per-item flags. There are shared flags in ImGuiIO: io.ConfigDragClickToInputText) |
| 1868 | +// (Those are per-item flags. There is shared behavior flag too: ImGuiIO: io.ConfigDragClickToInputText) |
1869 | 1869 | enum ImGuiSliderFlags_
|
1870 | 1870 | {
|
1871 |
| - ImGuiSliderFlags_None = 0, |
1872 |
| - ImGuiSliderFlags_AlwaysClamp = 1 << 4, // Clamp value to min/max bounds when input manually with CTRL+Click. By default CTRL+Click allows going out of bounds. |
1873 |
| - ImGuiSliderFlags_Logarithmic = 1 << 5, // Make the widget logarithmic (linear otherwise). Consider using ImGuiSliderFlags_NoRoundToFormat with this if using a format-string with small amount of digits. |
1874 |
| - ImGuiSliderFlags_NoRoundToFormat = 1 << 6, // Disable rounding underlying value to match precision of the display format string (e.g. %.3f values are rounded to those 3 digits). |
1875 |
| - ImGuiSliderFlags_NoInput = 1 << 7, // Disable CTRL+Click or Enter key allowing to input text directly into the widget. |
1876 |
| - ImGuiSliderFlags_WrapAround = 1 << 8, // Enable wrapping around from max to min and from min to max (only supported by DragXXX() functions for now. |
1877 |
| - ImGuiSliderFlags_InvalidMask_ = 0x7000000F, // [Internal] We treat using those bits as being potentially a 'float power' argument from the previous API that has got miscast to this enum, and will trigger an assert if needed. |
1878 |
| - |
1879 |
| - // Obsolete names |
1880 |
| - //ImGuiSliderFlags_ClampOnInput = ImGuiSliderFlags_AlwaysClamp, // [renamed in 1.79] |
| 1871 | + ImGuiSliderFlags_None = 0, |
| 1872 | + ImGuiSliderFlags_Logarithmic = 1 << 5, // Make the widget logarithmic (linear otherwise). Consider using ImGuiSliderFlags_NoRoundToFormat with this if using a format-string with small amount of digits. |
| 1873 | + ImGuiSliderFlags_NoRoundToFormat = 1 << 6, // Disable rounding underlying value to match precision of the display format string (e.g. %.3f values are rounded to those 3 digits). |
| 1874 | + ImGuiSliderFlags_NoInput = 1 << 7, // Disable CTRL+Click or Enter key allowing to input text directly into the widget. |
| 1875 | + ImGuiSliderFlags_WrapAround = 1 << 8, // Enable wrapping around from max to min and from min to max. Only supported by DragXXX() functions for now. |
| 1876 | + ImGuiSliderFlags_ClampOnInput = 1 << 9, // Clamp value to min/max bounds when input manually with CTRL+Click. By default CTRL+Click allows going out of bounds. |
| 1877 | + ImGuiSliderFlags_ClampZeroRange = 1 << 10, // Clamp even if min==max==0.0f. Otherwise due to legacy reason DragXXX functions don't clamp with those values. When your clamping limits are dynamic you almost always want to use it. |
| 1878 | + ImGuiSliderFlags_AlwaysClamp = ImGuiSliderFlags_ClampOnInput | ImGuiSliderFlags_ClampZeroRange, |
| 1879 | + ImGuiSliderFlags_InvalidMask_ = 0x7000000F, // [Internal] We treat using those bits as being potentially a 'float power' argument from the previous API that has got miscast to this enum, and will trigger an assert if needed. |
1881 | 1880 | };
|
1882 | 1881 |
|
1883 | 1882 | // Identify a mouse button.
|
@@ -3285,8 +3284,8 @@ struct ImDrawList
|
3285 | 3284 | //inline void AddEllipse(const ImVec2& center, float radius_x, float radius_y, ImU32 col, float rot = 0.0f, int num_segments = 0, float thickness = 1.0f) { AddEllipse(center, ImVec2(radius_x, radius_y), col, rot, num_segments, thickness); } // OBSOLETED in 1.90.5 (Mar 2024)
|
3286 | 3285 | //inline void AddEllipseFilled(const ImVec2& center, float radius_x, float radius_y, ImU32 col, float rot = 0.0f, int num_segments = 0) { AddEllipseFilled(center, ImVec2(radius_x, radius_y), col, rot, num_segments); } // OBSOLETED in 1.90.5 (Mar 2024)
|
3287 | 3286 | //inline void PathEllipticalArcTo(const ImVec2& center, float radius_x, float radius_y, float rot, float a_min, float a_max, int num_segments = 0) { PathEllipticalArcTo(center, ImVec2(radius_x, radius_y), rot, a_min, a_max, num_segments); } // OBSOLETED in 1.90.5 (Mar 2024)
|
3288 |
| - //inline void AddBezierCurve(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, ImU32 col, float thickness, int num_segments = 0) { AddBezierCubic(p1, p2, p3, p4, col, thickness, num_segments); } // OBSOLETED in 1.80 (Jan 2021) |
3289 |
| - //inline void PathBezierCurveTo(const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, int num_segments = 0) { PathBezierCubicCurveTo(p2, p3, p4, num_segments); } // OBSOLETED in 1.80 (Jan 2021) |
| 3287 | + //inline void AddBezierCurve(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, ImU32 col, float thickness, int num_segments = 0) { AddBezierCubic(p1, p2, p3, p4, col, thickness, num_segments); } // OBSOLETED in 1.80 (Jan 2021) |
| 3288 | + //inline void PathBezierCurveTo(const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, int num_segments = 0) { PathBezierCubicCurveTo(p2, p3, p4, num_segments); } // OBSOLETED in 1.80 (Jan 2021) |
3290 | 3289 |
|
3291 | 3290 | // [Internal helpers]
|
3292 | 3291 | IMGUI_API void _ResetForNewFrame();
|
|
0 commit comments