|
@@ -1,4 +1,4 @@
|
|
|
-// dear imgui, v1.63
|
|
|
|
|
|
|
+// dear imgui, v1.65 WIP
|
|
|
// (internal structures/api)
|
|
// (internal structures/api)
|
|
|
|
|
|
|
|
// You may use this file to debug, understand or extend ImGui features but we don't provide any guarantee of forward compatibility!
|
|
// You may use this file to debug, understand or extend ImGui features but we don't provide any guarantee of forward compatibility!
|
|
@@ -1137,8 +1137,9 @@ namespace ImGui
|
|
|
// Settings
|
|
// Settings
|
|
|
IMGUI_API void MarkIniSettingsDirty();
|
|
IMGUI_API void MarkIniSettingsDirty();
|
|
|
IMGUI_API void MarkIniSettingsDirty(ImGuiWindow* window);
|
|
IMGUI_API void MarkIniSettingsDirty(ImGuiWindow* window);
|
|
|
- IMGUI_API ImGuiSettingsHandler* FindSettingsHandler(const char* type_name);
|
|
|
|
|
|
|
+ IMGUI_API ImGuiWindowSettings* CreateNewWindowSettings(const char* name);
|
|
|
IMGUI_API ImGuiWindowSettings* FindWindowSettings(ImGuiID id);
|
|
IMGUI_API ImGuiWindowSettings* FindWindowSettings(ImGuiID id);
|
|
|
|
|
+ IMGUI_API ImGuiSettingsHandler* FindSettingsHandler(const char* type_name);
|
|
|
|
|
|
|
|
// Basic Accessors
|
|
// Basic Accessors
|
|
|
inline ImGuiID GetItemID() { ImGuiContext& g = *GImGui; return g.CurrentWindow->DC.LastItemId; }
|
|
inline ImGuiID GetItemID() { ImGuiContext& g = *GImGui; return g.CurrentWindow->DC.LastItemId; }
|
|
@@ -1245,13 +1246,24 @@ namespace ImGui
|
|
|
IMGUI_API bool TreeNodeBehaviorIsOpen(ImGuiID id, ImGuiTreeNodeFlags flags = 0); // Consume previous SetNextTreeNodeOpened() data, if any. May return true when logging
|
|
IMGUI_API bool TreeNodeBehaviorIsOpen(ImGuiID id, ImGuiTreeNodeFlags flags = 0); // Consume previous SetNextTreeNodeOpened() data, if any. May return true when logging
|
|
|
IMGUI_API void TreePushRawID(ImGuiID id);
|
|
IMGUI_API void TreePushRawID(ImGuiID id);
|
|
|
|
|
|
|
|
|
|
+ // Template functions are instantiated in imgui_widgets.cpp for a finite number of types.
|
|
|
|
|
+ // To use them externally (for custom widget) you may need an "extern template" statement in your code in order to link to existing instances and silence Clang warnings (see #2036).
|
|
|
|
|
+ // e.g. " extern template IMGUI_API float RoundScalarWithFormatT<float, float>(const char* format, ImGuiDataType data_type, float v); "
|
|
|
|
|
+ template<typename T, typename SIGNED_T, typename FLOAT_T> IMGUI_API bool DragBehaviorT(ImGuiDataType data_type, T* v, float v_speed, const T v_min, const T v_max, const char* format, float power);
|
|
|
|
|
+ template<typename T, typename SIGNED_T, typename FLOAT_T> IMGUI_API bool SliderBehaviorT(const ImRect& bb, ImGuiID id, ImGuiDataType data_type, T* v, const T v_min, const T v_max, const char* format, float power, ImGuiSliderFlags flags, ImRect* out_grab_bb);
|
|
|
|
|
+ template<typename T, typename FLOAT_T> IMGUI_API float SliderCalcRatioFromValueT(ImGuiDataType data_type, T v, T v_min, T v_max, float power, float linear_zero_pos);
|
|
|
|
|
+ template<typename T, typename SIGNED_T> IMGUI_API T RoundScalarWithFormatT(const char* format, ImGuiDataType data_type, T v);
|
|
|
|
|
+
|
|
|
|
|
+ // InputText
|
|
|
IMGUI_API bool InputTextEx(const char* label, char* buf, int buf_size, const ImVec2& size_arg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback = NULL, void* user_data = NULL);
|
|
IMGUI_API bool InputTextEx(const char* label, char* buf, int buf_size, const ImVec2& size_arg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback = NULL, void* user_data = NULL);
|
|
|
IMGUI_API bool InputScalarAsWidgetReplacement(const ImRect& bb, ImGuiID id, const char* label, ImGuiDataType data_type, void* data_ptr, const char* format);
|
|
IMGUI_API bool InputScalarAsWidgetReplacement(const ImRect& bb, ImGuiID id, const char* label, ImGuiDataType data_type, void* data_ptr, const char* format);
|
|
|
|
|
|
|
|
|
|
+ // Color
|
|
|
IMGUI_API void ColorTooltip(const char* text, const float* col, ImGuiColorEditFlags flags);
|
|
IMGUI_API void ColorTooltip(const char* text, const float* col, ImGuiColorEditFlags flags);
|
|
|
IMGUI_API void ColorEditOptionsPopup(const float* col, ImGuiColorEditFlags flags);
|
|
IMGUI_API void ColorEditOptionsPopup(const float* col, ImGuiColorEditFlags flags);
|
|
|
IMGUI_API void ColorPickerOptionsPopup(const float* ref_col, ImGuiColorEditFlags flags);
|
|
IMGUI_API void ColorPickerOptionsPopup(const float* ref_col, ImGuiColorEditFlags flags);
|
|
|
|
|
|
|
|
|
|
+ // Plot
|
|
|
IMGUI_API void PlotEx(ImGuiPlotType plot_type, const char* label, float (*values_getter)(void* data, int idx), void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size);
|
|
IMGUI_API void PlotEx(ImGuiPlotType plot_type, const char* label, float (*values_getter)(void* data, int idx), void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size);
|
|
|
|
|
|
|
|
// Shade functions (write over already created vertices)
|
|
// Shade functions (write over already created vertices)
|