mirror of
https://github.com/cimgui/cimgui.git
synced 2025-08-14 13:38:31 +01:00
Compare commits
25 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
dbbac62a84 | ||
![]() |
389c1f1ad1 | ||
![]() |
76001ce58c | ||
![]() |
38c89cf203 | ||
![]() |
c888da1c96 | ||
![]() |
2195a6f0dd | ||
![]() |
13ce2e0abc | ||
![]() |
64d2efaf70 | ||
![]() |
169eab1128 | ||
![]() |
51002084f8 | ||
![]() |
c7fcdace6c | ||
![]() |
98f480cc28 | ||
![]() |
09a51f162e | ||
![]() |
366754fc57 | ||
![]() |
fb044c4b6a | ||
![]() |
ffc80c11c7 | ||
![]() |
8591a0be77 | ||
![]() |
9274ef995f | ||
![]() |
3a215a0268 | ||
![]() |
b99ed85fb9 | ||
![]() |
b647142cf5 | ||
![]() |
00a9d14f34 | ||
![]() |
f4c0403f12 | ||
![]() |
1a57048f62 | ||
![]() |
9a7e7a2d28 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -35,3 +35,4 @@ cimgui/Release/
|
|||||||
CMakeLists.txt
|
CMakeLists.txt
|
||||||
cimgui/.vs/
|
cimgui/.vs/
|
||||||
cimgui/cimgui.vcxproj.user
|
cimgui/cimgui.vcxproj.user
|
||||||
|
cimgui/x64/
|
||||||
|
11
README.md
11
README.md
@@ -1,13 +1,13 @@
|
|||||||
# cimgui [](https://travis-ci.org/Extrawurst/cimgui)
|
# cimgui [](https://travis-ci.org/Extrawurst/cimgui)
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
This is a thin c-api wrapper for the excellent C++ intermediate gui [imgui](https://github.com/ocornut/imgui).
|
This is a thin c-api wrapper for the excellent C++ intermediate gui [imgui](https://github.com/ocornut/imgui).
|
||||||
Most of the functions have wrapper counterparts now, missing stuff is added on a as-needed basis (PR welcome).
|
Most of the functions have wrapper counterparts now, missing stuff is added on a as-needed basis (PR welcome).
|
||||||
This library is intended as a intermediate layer to be able to use imgui from other languages that can interface with C (like D - see [D-binding](https://github.com/Extrawurst/DerelictImgui))
|
This library is intended as a intermediate layer to be able to use imgui from other languages that can interface with C (like D - see [D-binding](https://github.com/Extrawurst/DerelictImgui))
|
||||||
|
|
||||||
Notes:
|
Notes:
|
||||||
* currently this wrapper is based on version [1.47 of imgui](https://github.com/ocornut/imgui/releases/tag/v1.47)
|
* currently this wrapper is based on version [1.50 of imgui](https://github.com/ocornut/imgui/releases/tag/v1.50)
|
||||||
* does not compile with pure C compiler yet (for writing bindings in languages that are able to use C-ABI it is enough though, see D-bindings)
|
* does not compile with pure C compiler yet (for writing bindings in languages that are able to use C-ABI it is enough though, see D-bindings)
|
||||||
|
|
||||||
# usage
|
# usage
|
||||||
@@ -16,3 +16,10 @@ Notes:
|
|||||||
* make using makefile on linux/osx
|
* make using makefile on linux/osx
|
||||||
* use whatever method is in ImGui c++ namespace in the original [imgui.h](https://github.com/ocornut/imgui/blob/master/imgui.h) by prepending `ig`
|
* use whatever method is in ImGui c++ namespace in the original [imgui.h](https://github.com/ocornut/imgui/blob/master/imgui.h) by prepending `ig`
|
||||||
* methods have the same parameter list and return values (where possible)
|
* methods have the same parameter list and return values (where possible)
|
||||||
|
|
||||||
|
# example bindings based on cimgui
|
||||||
|
|
||||||
|
* [DerelictImgui](https://github.com/Extrawurst/DerelictImgui)
|
||||||
|
* [ImGui.NET](https://github.com/mellinoe/ImGui.NET)
|
||||||
|
* [imgui-rs](https://github.com/Gekkio/imgui-rs)
|
||||||
|
* [imgui-pas](https://github.com/dpethes/imgui-pas)
|
4
cimgui/.vscode/settings.json
vendored
Normal file
4
cimgui/.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
// Place your settings in this file to overwrite default and user settings.
|
||||||
|
{
|
||||||
|
"editor.formatOnSave": false,
|
||||||
|
}
|
@@ -5,6 +5,7 @@
|
|||||||
OBJS = cimgui.o
|
OBJS = cimgui.o
|
||||||
OBJS += fontAtlas.o
|
OBJS += fontAtlas.o
|
||||||
OBJS += drawList.o
|
OBJS += drawList.o
|
||||||
|
OBJS += listClipper.o
|
||||||
#OBJS += test.o
|
#OBJS += test.o
|
||||||
OBJS += ../imgui/imgui.o
|
OBJS += ../imgui/imgui.o
|
||||||
OBJS += ../imgui/imgui_draw.o
|
OBJS += ../imgui/imgui_draw.o
|
||||||
@@ -32,6 +33,17 @@ ifeq ($(UNAME_S), Darwin) #APPLE
|
|||||||
CFLAGS = $(CXXFLAGS)
|
CFLAGS = $(CXXFLAGS)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(OS), Windows_NT)
|
||||||
|
ECHO_MESSAGE = "Windows"
|
||||||
|
|
||||||
|
OUTPUTNAME = cimgui.dll
|
||||||
|
CXXFLAGS = -I../../
|
||||||
|
CXXFLAGS += -Wall
|
||||||
|
CXXFLAGS += -shared
|
||||||
|
LINKFLAGS = -limm32
|
||||||
|
CFLAGS = $(CXXFLAGS)
|
||||||
|
endif
|
||||||
|
|
||||||
.cpp.o:
|
.cpp.o:
|
||||||
$(CXX) $(CXXFLAGS) -c -o $@ $<
|
$(CXX) $(CXXFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
|
@@ -164,6 +164,11 @@ CIMGUI_API void igSetNextWindowSize(CONST ImVec2 size, ImGuiSetCond cond)
|
|||||||
ImGui::SetNextWindowSize(size, cond);
|
ImGui::SetNextWindowSize(size, cond);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CIMGUI_API void igSetNextWindowSizeConstraints(CONST struct ImVec2 size_min, CONST struct ImVec2 size_max, ImGuiSizeConstraintCallback custom_callback, void* custom_callback_data)
|
||||||
|
{
|
||||||
|
ImGui::SetNextWindowSizeConstraints(size_min, size_max, custom_callback, custom_callback_data);
|
||||||
|
}
|
||||||
|
|
||||||
CIMGUI_API void igSetNextWindowContentSize(CONST ImVec2 size)
|
CIMGUI_API void igSetNextWindowContentSize(CONST ImVec2 size)
|
||||||
{
|
{
|
||||||
ImGui::SetNextWindowContentSize(size);
|
ImGui::SetNextWindowContentSize(size);
|
||||||
@@ -421,9 +426,9 @@ CIMGUI_API bool igBeginPopup(CONST char* str_id)
|
|||||||
return ImGui::BeginPopup(str_id);
|
return ImGui::BeginPopup(str_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
CIMGUI_API bool igBeginPopupModal(CONST char* name, bool* p_opened, ImGuiWindowFlags extra_flags)
|
CIMGUI_API bool igBeginPopupModal(CONST char* name, bool* p_open, ImGuiWindowFlags extra_flags)
|
||||||
{
|
{
|
||||||
return ImGui::BeginPopupModal(name, p_opened, extra_flags);
|
return ImGui::BeginPopupModal(name, p_open, extra_flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
CIMGUI_API bool igBeginPopupContextItem(CONST char* str_id, int mouse_button)
|
CIMGUI_API bool igBeginPopupContextItem(CONST char* str_id, int mouse_button)
|
||||||
@@ -452,15 +457,6 @@ CIMGUI_API void igCloseCurrentPopup()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Layout
|
// Layout
|
||||||
CIMGUI_API void igBeginGroup()
|
|
||||||
{
|
|
||||||
return ImGui::BeginGroup();
|
|
||||||
}
|
|
||||||
|
|
||||||
CIMGUI_API void igEndGroup()
|
|
||||||
{
|
|
||||||
return ImGui::EndGroup();
|
|
||||||
}
|
|
||||||
|
|
||||||
CIMGUI_API void igSeparator()
|
CIMGUI_API void igSeparator()
|
||||||
{
|
{
|
||||||
@@ -472,6 +468,11 @@ CIMGUI_API void igSameLine(float pos_x, float spacing_w)
|
|||||||
return ImGui::SameLine(pos_x, spacing_w);
|
return ImGui::SameLine(pos_x, spacing_w);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CIMGUI_API void igNewLine()
|
||||||
|
{
|
||||||
|
return ImGui::NewLine();
|
||||||
|
}
|
||||||
|
|
||||||
CIMGUI_API void igSpacing()
|
CIMGUI_API void igSpacing()
|
||||||
{
|
{
|
||||||
return ImGui::Spacing();
|
return ImGui::Spacing();
|
||||||
@@ -482,14 +483,24 @@ CIMGUI_API void igDummy(CONST ImVec2* size)
|
|||||||
return ImGui::Dummy(*size);
|
return ImGui::Dummy(*size);
|
||||||
}
|
}
|
||||||
|
|
||||||
CIMGUI_API void igIndent()
|
CIMGUI_API void igIndent(float indent_w)
|
||||||
{
|
{
|
||||||
return ImGui::Indent();
|
return ImGui::Indent(indent_w);
|
||||||
}
|
}
|
||||||
|
|
||||||
CIMGUI_API void igUnindent()
|
CIMGUI_API void igUnindent(float indent_w)
|
||||||
{
|
{
|
||||||
return ImGui::Unindent();
|
return ImGui::Unindent(indent_w);
|
||||||
|
}
|
||||||
|
|
||||||
|
CIMGUI_API void igBeginGroup()
|
||||||
|
{
|
||||||
|
return ImGui::BeginGroup();
|
||||||
|
}
|
||||||
|
|
||||||
|
CIMGUI_API void igEndGroup()
|
||||||
|
{
|
||||||
|
return ImGui::EndGroup();
|
||||||
}
|
}
|
||||||
|
|
||||||
CIMGUI_API void igGetCursorPos(ImVec2* pOut)
|
CIMGUI_API void igGetCursorPos(ImVec2* pOut)
|
||||||
@@ -752,11 +763,6 @@ CIMGUI_API bool igImageButton(ImTextureID user_texture_id, CONST ImVec2 size, CO
|
|||||||
return ImGui::ImageButton(user_texture_id, size, uv0, uv1, frame_padding, bg_col, tint_col);
|
return ImGui::ImageButton(user_texture_id, size, uv0, uv1, frame_padding, bg_col, tint_col);
|
||||||
}
|
}
|
||||||
|
|
||||||
CIMGUI_API bool igCollapsingHeader(CONST char* label, CONST char* str_id, bool display_frame, bool default_open)
|
|
||||||
{
|
|
||||||
return ImGui::CollapsingHeader(label, str_id, display_frame, default_open);
|
|
||||||
}
|
|
||||||
|
|
||||||
CIMGUI_API bool igCheckbox(CONST char* label, bool* v)
|
CIMGUI_API bool igCheckbox(CONST char* label, bool* v)
|
||||||
{
|
{
|
||||||
return ImGui::Checkbox(label, v);
|
return ImGui::Checkbox(label, v);
|
||||||
@@ -777,7 +783,7 @@ CIMGUI_API bool igRadioButton(CONST char* label, int* v, int v_button)
|
|||||||
return ImGui::RadioButton(label, v, v_button);
|
return ImGui::RadioButton(label, v, v_button);
|
||||||
}
|
}
|
||||||
|
|
||||||
CIMGUI_API bool igCombo(CONST char* label, int* current_item, CONST char** items, int items_count, int height_in_items)
|
CIMGUI_API bool igCombo(CONST char* label, int* current_item, CONST char* CONST* items, int items_count, int height_in_items)
|
||||||
{
|
{
|
||||||
return ImGui::Combo(label, current_item, items, items_count, height_in_items);
|
return ImGui::Combo(label, current_item, items, items_count, height_in_items);
|
||||||
}
|
}
|
||||||
@@ -845,7 +851,7 @@ CIMGUI_API bool igSliderFloat(CONST char* label, float* v, float v_min, float v_
|
|||||||
|
|
||||||
CIMGUI_API bool igSliderFloat2(CONST char* label, float v[2], float v_min, float v_max, CONST char* display_format, float power)
|
CIMGUI_API bool igSliderFloat2(CONST char* label, float v[2], float v_min, float v_max, CONST char* display_format, float power)
|
||||||
{
|
{
|
||||||
return ImGui::SliderFloat(label, v, v_min, v_max, display_format, power);
|
return ImGui::SliderFloat2(label, v, v_min, v_max, display_format, power);
|
||||||
}
|
}
|
||||||
|
|
||||||
CIMGUI_API bool igSliderFloat3(CONST char* label, float v[3], float v_min, float v_max, CONST char* display_format, float power)
|
CIMGUI_API bool igSliderFloat3(CONST char* label, float v[3], float v_min, float v_max, CONST char* display_format, float power)
|
||||||
@@ -997,9 +1003,9 @@ CIMGUI_API bool igInputInt4(CONST char* label, int v[4], ImGuiInputTextFlags ext
|
|||||||
|
|
||||||
|
|
||||||
// Widgets: Trees
|
// Widgets: Trees
|
||||||
CIMGUI_API bool igTreeNode(CONST char* str_label_id)
|
CIMGUI_API bool igTreeNode(CONST char* label)
|
||||||
{
|
{
|
||||||
return ImGui::TreeNode(str_label_id);
|
return ImGui::TreeNode(label);
|
||||||
}
|
}
|
||||||
|
|
||||||
CIMGUI_API bool igTreeNodeStr(CONST char* str_id, CONST char* fmt, ...)
|
CIMGUI_API bool igTreeNodeStr(CONST char* str_id, CONST char* fmt, ...)
|
||||||
@@ -1032,6 +1038,41 @@ CIMGUI_API bool igTreeNodePtrV(CONST void* ptr_id, CONST char* fmt, va_list args
|
|||||||
return ImGui::TreeNodeV(ptr_id, fmt, args);
|
return ImGui::TreeNodeV(ptr_id, fmt, args);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CIMGUI_API bool igTreeNodeEx(CONST char* label, ImGuiTreeNodeFlags flags)
|
||||||
|
{
|
||||||
|
return ImGui::TreeNodeEx(label, flags);
|
||||||
|
}
|
||||||
|
|
||||||
|
CIMGUI_API bool igTreeNodeExStr(CONST char* str_id, ImGuiTreeNodeFlags flags, CONST char* fmt, ...)
|
||||||
|
{
|
||||||
|
va_list args;
|
||||||
|
va_start(args, fmt);
|
||||||
|
bool res = ImGui::TreeNodeExV(str_id, flags, fmt, args);
|
||||||
|
va_end(args);
|
||||||
|
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
|
||||||
|
CIMGUI_API bool igTreeNodeExPtr(CONST void* ptr_id, ImGuiTreeNodeFlags flags, CONST char* fmt, ...)
|
||||||
|
{
|
||||||
|
va_list args;
|
||||||
|
va_start(args, fmt);
|
||||||
|
bool res = ImGui::TreeNodeExV(ptr_id, flags, fmt, args);
|
||||||
|
va_end(args);
|
||||||
|
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
|
||||||
|
CIMGUI_API bool igTreeNodeExV(CONST char* str_id, ImGuiTreeNodeFlags flags, CONST char* fmt, va_list args)
|
||||||
|
{
|
||||||
|
return ImGui::TreeNodeExV(str_id,flags,fmt,args);
|
||||||
|
}
|
||||||
|
|
||||||
|
CIMGUI_API bool igTreeNodeExVPtr(CONST void* ptr_id, ImGuiTreeNodeFlags flags, CONST char* fmt, va_list args)
|
||||||
|
{
|
||||||
|
return ImGui::TreeNodeExV(ptr_id,flags,fmt,args);
|
||||||
|
}
|
||||||
|
|
||||||
CIMGUI_API void igTreePushStr(CONST char* str_id)
|
CIMGUI_API void igTreePushStr(CONST char* str_id)
|
||||||
{
|
{
|
||||||
return ImGui::TreePush(str_id);
|
return ImGui::TreePush(str_id);
|
||||||
@@ -1047,9 +1088,29 @@ CIMGUI_API void igTreePop()
|
|||||||
return ImGui::TreePop();
|
return ImGui::TreePop();
|
||||||
}
|
}
|
||||||
|
|
||||||
CIMGUI_API void igSetNextTreeNodeOpened(bool opened, ImGuiSetCond cond)
|
CIMGUI_API void igTreeAdvanceToLabelPos()
|
||||||
{
|
{
|
||||||
return ImGui::SetNextTreeNodeOpened(opened, cond);
|
return ImGui::TreeAdvanceToLabelPos();
|
||||||
|
}
|
||||||
|
|
||||||
|
CIMGUI_API float igGetTreeNodeToLabelSpacing()
|
||||||
|
{
|
||||||
|
return ImGui::GetTreeNodeToLabelSpacing();
|
||||||
|
}
|
||||||
|
|
||||||
|
CIMGUI_API void igSetNextTreeNodeOpen(bool opened, ImGuiSetCond cond)
|
||||||
|
{
|
||||||
|
return ImGui::SetNextTreeNodeOpen(opened, cond);
|
||||||
|
}
|
||||||
|
|
||||||
|
CIMGUI_API bool igCollapsingHeader(CONST char* label, ImGuiTreeNodeFlags flags)
|
||||||
|
{
|
||||||
|
return ImGui::CollapsingHeader(label, flags);
|
||||||
|
}
|
||||||
|
|
||||||
|
CIMGUI_API bool igCollapsingHeaderEx(CONST char* label, bool* p_open, ImGuiTreeNodeFlags flags)
|
||||||
|
{
|
||||||
|
return ImGui::CollapsingHeader(label,p_open,flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Widgets: Selectable / Lists
|
// Widgets: Selectable / Lists
|
||||||
@@ -1063,7 +1124,7 @@ CIMGUI_API bool igSelectableEx(CONST char* label, bool* p_selected, ImGuiSelecta
|
|||||||
return ImGui::Selectable(label, p_selected, flags, size);
|
return ImGui::Selectable(label, p_selected, flags, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
CIMGUI_API bool igListBox(CONST char* label, int* current_item, CONST char** items, int items_count, int height_in_items)
|
CIMGUI_API bool igListBox(CONST char* label, int* current_item, CONST char* CONST* items, int items_count, int height_in_items)
|
||||||
{
|
{
|
||||||
return ImGui::ListBox(label, current_item, items, items_count, height_in_items);
|
return ImGui::ListBox(label, current_item, items, items_count, height_in_items);
|
||||||
}
|
}
|
||||||
@@ -1154,7 +1215,7 @@ CIMGUI_API void igValueColor(CONST char* prefix, CONST ImVec4 v)
|
|||||||
ImGui::ValueColor(prefix,v);
|
ImGui::ValueColor(prefix,v);
|
||||||
}
|
}
|
||||||
|
|
||||||
CIMGUI_API void igValueColor2(CONST char* prefix, unsigned int v)
|
CIMGUI_API void igValueColor2(CONST char* prefix, ImU32 v)
|
||||||
{
|
{
|
||||||
ImGui::ValueColor(prefix,v);
|
ImGui::ValueColor(prefix,v);
|
||||||
}
|
}
|
||||||
@@ -1196,6 +1257,16 @@ CIMGUI_API void igLogText(CONST char* fmt, ...)
|
|||||||
ImGui::LogText("%s",buffer);
|
ImGui::LogText("%s",buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CIMGUI_API void igPushClipRect(CONST struct ImVec2 clip_rect_min, CONST struct ImVec2 clip_rect_max, bool intersect_with_current_clip_rect)
|
||||||
|
{
|
||||||
|
return ImGui::PushClipRect(clip_rect_min, clip_rect_max, intersect_with_current_clip_rect);
|
||||||
|
}
|
||||||
|
|
||||||
|
CIMGUI_API void igPopClipRect()
|
||||||
|
{
|
||||||
|
return ImGui::PopClipRect();
|
||||||
|
}
|
||||||
|
|
||||||
// Utilities
|
// Utilities
|
||||||
CIMGUI_API bool igIsItemHovered()
|
CIMGUI_API bool igIsItemHovered()
|
||||||
{
|
{
|
||||||
@@ -1212,6 +1283,11 @@ CIMGUI_API bool igIsItemActive()
|
|||||||
return ImGui::IsItemActive();
|
return ImGui::IsItemActive();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CIMGUI_API bool igIsItemClicked(int mouse_button)
|
||||||
|
{
|
||||||
|
return ImGui::IsItemClicked(mouse_button);
|
||||||
|
}
|
||||||
|
|
||||||
CIMGUI_API bool igIsItemVisible()
|
CIMGUI_API bool igIsItemVisible()
|
||||||
{
|
{
|
||||||
return ImGui::IsItemVisible();
|
return ImGui::IsItemVisible();
|
||||||
@@ -1267,29 +1343,39 @@ CIMGUI_API bool igIsRootWindowOrAnyChildFocused()
|
|||||||
return ImGui::IsRootWindowOrAnyChildFocused();
|
return ImGui::IsRootWindowOrAnyChildFocused();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CIMGUI_API bool igIsRootWindowOrAnyChildHovered()
|
||||||
|
{
|
||||||
|
return ImGui::IsRootWindowOrAnyChildHovered();
|
||||||
|
}
|
||||||
|
|
||||||
CIMGUI_API bool igIsRectVisible(CONST ImVec2 item_size)
|
CIMGUI_API bool igIsRectVisible(CONST ImVec2 item_size)
|
||||||
{
|
{
|
||||||
return ImGui::IsRectVisible(item_size);
|
return ImGui::IsRectVisible(item_size);
|
||||||
}
|
}
|
||||||
|
|
||||||
CIMGUI_API int igGetKeyIndex(ImGuiKey key)
|
CIMGUI_API bool igIsRectVisible2(CONST struct ImVec2* rect_min, CONST struct ImVec2* rect_max)
|
||||||
{
|
{
|
||||||
return ImGui::GetKeyIndex(key);
|
return ImGui::IsRectVisible(*rect_min, *rect_max);
|
||||||
}
|
}
|
||||||
|
|
||||||
CIMGUI_API bool igIsKeyDown(int key_index)
|
CIMGUI_API int igGetKeyIndex(ImGuiKey imgui_key)
|
||||||
{
|
{
|
||||||
return ImGui::IsKeyDown(key_index);
|
return ImGui::GetKeyIndex(imgui_key);
|
||||||
}
|
}
|
||||||
|
|
||||||
CIMGUI_API bool igIsKeyPressed(int key_index, bool repeat)
|
CIMGUI_API bool igIsKeyDown(int user_key_index)
|
||||||
{
|
{
|
||||||
return ImGui::IsKeyPressed(key_index,repeat);
|
return ImGui::IsKeyDown(user_key_index);
|
||||||
}
|
}
|
||||||
|
|
||||||
CIMGUI_API bool igIsKeyReleased(int key_index)
|
CIMGUI_API bool igIsKeyPressed(int user_key_index, bool repeat)
|
||||||
{
|
{
|
||||||
return ImGui::IsKeyReleased(key_index);
|
return ImGui::IsKeyPressed(user_key_index,repeat);
|
||||||
|
}
|
||||||
|
|
||||||
|
CIMGUI_API bool igIsKeyReleased(int user_key_index)
|
||||||
|
{
|
||||||
|
return ImGui::IsKeyReleased(user_key_index);
|
||||||
}
|
}
|
||||||
|
|
||||||
CIMGUI_API bool igIsMouseDown(int button)
|
CIMGUI_API bool igIsMouseDown(int button)
|
||||||
@@ -1461,19 +1547,24 @@ CIMGUI_API CONST char* igGetVersion()
|
|||||||
return ImGui::GetVersion();
|
return ImGui::GetVersion();
|
||||||
}
|
}
|
||||||
|
|
||||||
CIMGUI_API void* igGetInternalState()
|
CIMGUI_API ImGuiContext* igCreateContext(void* (*malloc_fn)(size_t), void (*free_fn)(void*))
|
||||||
{
|
{
|
||||||
return ImGui::GetInternalState();
|
return ImGui::CreateContext(malloc_fn,free_fn);
|
||||||
}
|
}
|
||||||
|
|
||||||
CIMGUI_API size_t igGetInternalStateSize()
|
CIMGUI_API void igDestroyContext(ImGuiContext* ctx)
|
||||||
{
|
{
|
||||||
return ImGui::GetInternalStateSize();
|
return ImGui::DestroyContext(ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
CIMGUI_API void igSetInternalState(void* state, bool construct)
|
CIMGUI_API ImGuiContext* igGetCurrentContext()
|
||||||
{
|
{
|
||||||
ImGui::SetInternalState(state, construct);
|
return ImGui::GetCurrentContext();
|
||||||
|
}
|
||||||
|
|
||||||
|
CIMGUI_API void igSetCurrentContext(ImGuiContext* ctx)
|
||||||
|
{
|
||||||
|
return ImGui::SetCurrentContext(ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
CIMGUI_API void ImGuiIO_AddInputCharacter(unsigned short c)
|
CIMGUI_API void ImGuiIO_AddInputCharacter(unsigned short c)
|
||||||
@@ -1490,3 +1581,122 @@ CIMGUI_API void ImGuiIO_ClearInputCharacters()
|
|||||||
{
|
{
|
||||||
return ImGui::GetIO().ClearInputCharacters();
|
return ImGui::GetIO().ClearInputCharacters();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CIMGUI_API void ImGuiTextFilter_Init(struct ImGuiTextFilter* filter, const char* default_filter)
|
||||||
|
{
|
||||||
|
*filter = ImGuiTextFilter(default_filter);
|
||||||
|
}
|
||||||
|
|
||||||
|
CIMGUI_API void ImGuiTextFilter_Clear(struct ImGuiTextFilter* filter)
|
||||||
|
{
|
||||||
|
filter->Clear();
|
||||||
|
}
|
||||||
|
|
||||||
|
CIMGUI_API bool ImGuiTextFilter_Draw(struct ImGuiTextFilter* filter, const char* label, float width)
|
||||||
|
{
|
||||||
|
return filter->Draw(label, width);
|
||||||
|
}
|
||||||
|
|
||||||
|
CIMGUI_API bool ImGuiTextFilter_PassFilter(struct ImGuiTextFilter* filter, const char* text, const char* text_end)
|
||||||
|
{
|
||||||
|
return filter->PassFilter(text, text_end);
|
||||||
|
}
|
||||||
|
|
||||||
|
CIMGUI_API bool ImGuiTextFilter_IsActive(struct ImGuiTextFilter* filter)
|
||||||
|
{
|
||||||
|
return filter->IsActive();
|
||||||
|
}
|
||||||
|
CIMGUI_API void ImGuiTextFilter_Build(struct ImGuiTextFilter* filter)
|
||||||
|
{
|
||||||
|
filter->Build();
|
||||||
|
}
|
||||||
|
|
||||||
|
CIMGUI_API void ImGuiTextEditCallbackData_DeleteChars(struct ImGuiTextEditCallbackData* data, int pos, int bytes_count)
|
||||||
|
{
|
||||||
|
data->DeleteChars(pos, bytes_count);
|
||||||
|
}
|
||||||
|
|
||||||
|
CIMGUI_API void ImGuiTextEditCallbackData_InsertChars(struct ImGuiTextEditCallbackData* data, int pos, const char* text, const char* text_end)
|
||||||
|
{
|
||||||
|
data->InsertChars(pos, text, text_end);
|
||||||
|
}
|
||||||
|
|
||||||
|
CIMGUI_API bool ImGuiTextEditCallbackData_HasSelection(struct ImGuiTextEditCallbackData* data)
|
||||||
|
{
|
||||||
|
return data->HasSelection();
|
||||||
|
}
|
||||||
|
|
||||||
|
CIMGUI_API void ImGuiStorage_Init(struct ImGuiStorage* storage)
|
||||||
|
{
|
||||||
|
*storage = ImGuiStorage();
|
||||||
|
}
|
||||||
|
|
||||||
|
CIMGUI_API void ImGuiStorage_Clear(struct ImGuiStorage* storage)
|
||||||
|
{
|
||||||
|
storage->Clear();
|
||||||
|
}
|
||||||
|
|
||||||
|
CIMGUI_API int ImGuiStorage_GetInt(struct ImGuiStorage* storage, ImGuiID key, int default_val)
|
||||||
|
{
|
||||||
|
return storage->GetInt(key, default_val);
|
||||||
|
}
|
||||||
|
|
||||||
|
CIMGUI_API void ImGuiStorage_SetInt(struct ImGuiStorage* storage, ImGuiID key, int val)
|
||||||
|
{
|
||||||
|
storage->SetInt(key, val);
|
||||||
|
}
|
||||||
|
|
||||||
|
CIMGUI_API bool ImGuiStorage_GetBool(struct ImGuiStorage* storage, ImGuiID key, bool default_val)
|
||||||
|
{
|
||||||
|
return storage->GetBool(key, default_val);
|
||||||
|
}
|
||||||
|
|
||||||
|
CIMGUI_API void ImGuiStorage_SetBool(struct ImGuiStorage* storage, ImGuiID key, bool val)
|
||||||
|
{
|
||||||
|
storage->SetBool(key, val);
|
||||||
|
}
|
||||||
|
|
||||||
|
CIMGUI_API float ImGuiStorage_GetFloat(struct ImGuiStorage* storage, ImGuiID key, float default_val)
|
||||||
|
{
|
||||||
|
return storage->GetFloat(key, default_val);
|
||||||
|
}
|
||||||
|
|
||||||
|
CIMGUI_API void ImGuiStorage_SetFloat(struct ImGuiStorage* storage, ImGuiID key, float val)
|
||||||
|
{
|
||||||
|
storage->SetFloat(key, val);
|
||||||
|
}
|
||||||
|
|
||||||
|
CIMGUI_API void* ImGuiStorage_GetVoidPtr(struct ImGuiStorage* storage, ImGuiID key)
|
||||||
|
{
|
||||||
|
return storage->GetVoidPtr(key);
|
||||||
|
}
|
||||||
|
|
||||||
|
CIMGUI_API void ImGuiStorage_SetVoidPtr(struct ImGuiStorage* storage, ImGuiID key, void* val)
|
||||||
|
{
|
||||||
|
storage->SetVoidPtr(key, val);
|
||||||
|
}
|
||||||
|
|
||||||
|
CIMGUI_API int* ImGuiStorage_GetIntRef(struct ImGuiStorage* storage, ImGuiID key, int default_val)
|
||||||
|
{
|
||||||
|
return storage->GetIntRef(key, default_val);
|
||||||
|
}
|
||||||
|
|
||||||
|
CIMGUI_API bool* ImGuiStorage_GetBoolRef(struct ImGuiStorage* storage, ImGuiID key, bool default_val)
|
||||||
|
{
|
||||||
|
return storage->GetBoolRef(key, default_val);
|
||||||
|
}
|
||||||
|
|
||||||
|
CIMGUI_API float* ImGuiStorage_GetFloatRef(struct ImGuiStorage* storage, ImGuiID key, float default_val)
|
||||||
|
{
|
||||||
|
return storage->GetFloatRef(key, default_val);
|
||||||
|
}
|
||||||
|
|
||||||
|
CIMGUI_API void** ImGuiStorage_GetVoidPtrRef(struct ImGuiStorage* storage, ImGuiID key, void* default_val)
|
||||||
|
{
|
||||||
|
return storage->GetVoidPtrRef(key, default_val);
|
||||||
|
}
|
||||||
|
|
||||||
|
CIMGUI_API void ImGuiStorage_SetAllInt(struct ImGuiStorage* storage, int val)
|
||||||
|
{
|
||||||
|
storage->SetAllInt(val);
|
||||||
|
}
|
652
cimgui/cimgui.h
652
cimgui/cimgui.h
@@ -3,7 +3,9 @@
|
|||||||
|
|
||||||
#if defined _WIN32 || defined __CYGWIN__
|
#if defined _WIN32 || defined __CYGWIN__
|
||||||
#define API __declspec(dllexport)
|
#define API __declspec(dllexport)
|
||||||
|
#ifndef __GNUC__
|
||||||
#define snprintf sprintf_s
|
#define snprintf sprintf_s
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
#define API
|
#define API
|
||||||
#endif
|
#endif
|
||||||
@@ -19,24 +21,395 @@
|
|||||||
#define CIMGUI_API EXTERN API
|
#define CIMGUI_API EXTERN API
|
||||||
#define CONST const
|
#define CONST const
|
||||||
|
|
||||||
|
struct ImGuiIO;
|
||||||
|
struct ImGuiStyle;
|
||||||
|
struct ImDrawData;
|
||||||
|
struct ImVec2;
|
||||||
|
struct ImVec4;
|
||||||
|
struct ImGuiTextEditCallbackData;
|
||||||
|
struct ImGuiSizeConstraintCallbackData;
|
||||||
|
struct ImDrawList;
|
||||||
|
struct ImGuiStorage;
|
||||||
|
struct ImFont;
|
||||||
|
struct ImFontConfig;
|
||||||
|
struct ImFontAtlas;
|
||||||
|
struct ImDrawCmd;
|
||||||
|
struct ImGuiListClipper;
|
||||||
|
struct ImGuiTextFilter;
|
||||||
|
|
||||||
|
typedef unsigned short ImDrawIdx;
|
||||||
|
typedef unsigned int ImU32;
|
||||||
|
typedef unsigned short ImWchar;
|
||||||
|
typedef void* ImTextureID;
|
||||||
|
typedef ImU32 ImGuiID;
|
||||||
|
typedef int ImGuiCol;
|
||||||
|
typedef int ImGuiStyleVar;
|
||||||
|
typedef int ImGuiKey;
|
||||||
|
typedef int ImGuiColorEditMode;
|
||||||
|
typedef int ImGuiMouseCursor;
|
||||||
typedef int ImGuiWindowFlags;
|
typedef int ImGuiWindowFlags;
|
||||||
typedef int ImGuiSetCond;
|
typedef int ImGuiSetCond;
|
||||||
typedef int ImGuiColorEditMode;
|
typedef int ImGuiInputTextFlags;
|
||||||
|
typedef int ImGuiSelectableFlags;
|
||||||
|
typedef int ImGuiTreeNodeFlags;
|
||||||
|
typedef int (*ImGuiTextEditCallback)(struct ImGuiTextEditCallbackData *data);
|
||||||
|
typedef void (*ImGuiSizeConstraintCallback)(struct ImGuiSizeConstraintCallbackData* data);
|
||||||
|
typedef void (*ImDrawCallback)(CONST struct ImDrawList* parent_list, CONST struct ImDrawCmd* cmd);
|
||||||
|
|
||||||
CIMGUI_API ImGuiIO* igGetIO();
|
#ifdef CIMGUI_DEFINE_ENUMS_AND_STRUCTS
|
||||||
CIMGUI_API ImGuiStyle* igGetStyle();
|
struct ImVec2 {
|
||||||
CIMGUI_API ImDrawData* igGetDrawData();
|
float x, y;
|
||||||
|
};
|
||||||
|
|
||||||
|
struct ImVec4 {
|
||||||
|
float x, y, z, w;
|
||||||
|
};
|
||||||
|
|
||||||
|
enum {
|
||||||
|
ImGuiWindowFlags_NoTitleBar = 1 << 0,
|
||||||
|
ImGuiWindowFlags_NoResize = 1 << 1,
|
||||||
|
ImGuiWindowFlags_NoMove = 1 << 2,
|
||||||
|
ImGuiWindowFlags_NoScrollbar = 1 << 3,
|
||||||
|
ImGuiWindowFlags_NoScrollWithMouse = 1 << 4,
|
||||||
|
ImGuiWindowFlags_NoCollapse = 1 << 5,
|
||||||
|
ImGuiWindowFlags_AlwaysAutoResize = 1 << 6,
|
||||||
|
ImGuiWindowFlags_ShowBorders = 1 << 7,
|
||||||
|
ImGuiWindowFlags_NoSavedSettings = 1 << 8,
|
||||||
|
ImGuiWindowFlags_NoInputs = 1 << 9,
|
||||||
|
ImGuiWindowFlags_MenuBar = 1 << 10,
|
||||||
|
ImGuiWindowFlags_HorizontalScrollbar = 1 << 11,
|
||||||
|
ImGuiWindowFlags_NoFocusOnAppearing = 1 << 12,
|
||||||
|
ImGuiWindowFlags_NoBringToFrontOnFocus = 1 << 13,
|
||||||
|
ImGuiWindowFlags_AlwaysVerticalScrollbar = 1 << 14,
|
||||||
|
ImGuiWindowFlags_AlwaysHorizontalScrollbar = 1 << 15,
|
||||||
|
ImGuiWindowFlags_AlwaysUseWindowPadding = 1 << 16
|
||||||
|
};
|
||||||
|
|
||||||
|
enum {
|
||||||
|
ImGuiInputTextFlags_CharsDecimal = 1 << 0,
|
||||||
|
ImGuiInputTextFlags_CharsHexadecimal = 1 << 1,
|
||||||
|
ImGuiInputTextFlags_CharsUppercase = 1 << 2,
|
||||||
|
ImGuiInputTextFlags_CharsNoBlank = 1 << 3,
|
||||||
|
ImGuiInputTextFlags_AutoSelectAll = 1 << 4,
|
||||||
|
ImGuiInputTextFlags_EnterReturnsTrue = 1 << 5,
|
||||||
|
ImGuiInputTextFlags_CallbackCompletion = 1 << 6,
|
||||||
|
ImGuiInputTextFlags_CallbackHistory = 1 << 7,
|
||||||
|
ImGuiInputTextFlags_CallbackAlways = 1 << 8,
|
||||||
|
ImGuiInputTextFlags_CallbackCharFilter = 1 << 9,
|
||||||
|
ImGuiInputTextFlags_AllowTabInput = 1 << 10,
|
||||||
|
ImGuiInputTextFlags_CtrlEnterForNewLine = 1 << 11,
|
||||||
|
ImGuiInputTextFlags_NoHorizontalScroll = 1 << 12,
|
||||||
|
ImGuiInputTextFlags_AlwaysInsertMode = 1 << 13,
|
||||||
|
ImGuiInputTextFlags_ReadOnly = 1 << 14,
|
||||||
|
ImGuiInputTextFlags_Password = 1 << 15
|
||||||
|
};
|
||||||
|
|
||||||
|
enum {
|
||||||
|
ImGuiTreeNodeFlags_Selected = 1 << 0,
|
||||||
|
ImGuiTreeNodeFlags_Framed = 1 << 1,
|
||||||
|
ImGuiTreeNodeFlags_AllowOverlapMode = 1 << 2,
|
||||||
|
ImGuiTreeNodeFlags_NoTreePushOnOpen = 1 << 3,
|
||||||
|
ImGuiTreeNodeFlags_NoAutoOpenOnLog = 1 << 4,
|
||||||
|
ImGuiTreeNodeFlags_DefaultOpen = 1 << 5,
|
||||||
|
ImGuiTreeNodeFlags_OpenOnDoubleClick = 1 << 6,
|
||||||
|
ImGuiTreeNodeFlags_OpenOnArrow = 1 << 7,
|
||||||
|
ImGuiTreeNodeFlags_Leaf = 1 << 8,
|
||||||
|
ImGuiTreeNodeFlags_Bullet = 1 << 9,
|
||||||
|
ImGuiTreeNodeFlags_CollapsingHeader = ImGuiTreeNodeFlags_Framed | ImGuiTreeNodeFlags_NoAutoOpenOnLog
|
||||||
|
};
|
||||||
|
|
||||||
|
enum {
|
||||||
|
ImGuiSelectableFlags_DontClosePopups = 1 << 0,
|
||||||
|
ImGuiSelectableFlags_SpanAllColumns = 1 << 1,
|
||||||
|
ImGuiSelectableFlags_AllowDoubleClick = 1 << 2
|
||||||
|
};
|
||||||
|
|
||||||
|
enum {
|
||||||
|
ImGuiKey_Tab,
|
||||||
|
ImGuiKey_LeftArrow,
|
||||||
|
ImGuiKey_RightArrow,
|
||||||
|
ImGuiKey_UpArrow,
|
||||||
|
ImGuiKey_DownArrow,
|
||||||
|
ImGuiKey_PageUp,
|
||||||
|
ImGuiKey_PageDown,
|
||||||
|
ImGuiKey_Home,
|
||||||
|
ImGuiKey_End,
|
||||||
|
ImGuiKey_Delete,
|
||||||
|
ImGuiKey_Backspace,
|
||||||
|
ImGuiKey_Enter,
|
||||||
|
ImGuiKey_Escape,
|
||||||
|
ImGuiKey_A,
|
||||||
|
ImGuiKey_C,
|
||||||
|
ImGuiKey_V,
|
||||||
|
ImGuiKey_X,
|
||||||
|
ImGuiKey_Y,
|
||||||
|
ImGuiKey_Z,
|
||||||
|
ImGuiKey_COUNT
|
||||||
|
};
|
||||||
|
|
||||||
|
enum {
|
||||||
|
ImGuiCol_Text,
|
||||||
|
ImGuiCol_TextDisabled,
|
||||||
|
ImGuiCol_WindowBg,
|
||||||
|
ImGuiCol_ChildWindowBg,
|
||||||
|
ImGuiCol_PopupBg,
|
||||||
|
ImGuiCol_Border,
|
||||||
|
ImGuiCol_BorderShadow,
|
||||||
|
ImGuiCol_FrameBg,
|
||||||
|
ImGuiCol_FrameBgHovered,
|
||||||
|
ImGuiCol_FrameBgActive,
|
||||||
|
ImGuiCol_TitleBg,
|
||||||
|
ImGuiCol_TitleBgCollapsed,
|
||||||
|
ImGuiCol_TitleBgActive,
|
||||||
|
ImGuiCol_MenuBarBg,
|
||||||
|
ImGuiCol_ScrollbarBg,
|
||||||
|
ImGuiCol_ScrollbarGrab,
|
||||||
|
ImGuiCol_ScrollbarGrabHovered,
|
||||||
|
ImGuiCol_ScrollbarGrabActive,
|
||||||
|
ImGuiCol_ComboBg,
|
||||||
|
ImGuiCol_CheckMark,
|
||||||
|
ImGuiCol_SliderGrab,
|
||||||
|
ImGuiCol_SliderGrabActive,
|
||||||
|
ImGuiCol_Button,
|
||||||
|
ImGuiCol_ButtonHovered,
|
||||||
|
ImGuiCol_ButtonActive,
|
||||||
|
ImGuiCol_Header,
|
||||||
|
ImGuiCol_HeaderHovered,
|
||||||
|
ImGuiCol_HeaderActive,
|
||||||
|
ImGuiCol_Column,
|
||||||
|
ImGuiCol_ColumnHovered,
|
||||||
|
ImGuiCol_ColumnActive,
|
||||||
|
ImGuiCol_ResizeGrip,
|
||||||
|
ImGuiCol_ResizeGripHovered,
|
||||||
|
ImGuiCol_ResizeGripActive,
|
||||||
|
ImGuiCol_CloseButton,
|
||||||
|
ImGuiCol_CloseButtonHovered,
|
||||||
|
ImGuiCol_CloseButtonActive,
|
||||||
|
ImGuiCol_PlotLines,
|
||||||
|
ImGuiCol_PlotLinesHovered,
|
||||||
|
ImGuiCol_PlotHistogram,
|
||||||
|
ImGuiCol_PlotHistogramHovered,
|
||||||
|
ImGuiCol_TextSelectedBg,
|
||||||
|
ImGuiCol_ModalWindowDarkening,
|
||||||
|
ImGuiCol_COUNT
|
||||||
|
};
|
||||||
|
|
||||||
|
enum {
|
||||||
|
ImGuiStyleVar_Alpha,
|
||||||
|
ImGuiStyleVar_WindowPadding,
|
||||||
|
ImGuiStyleVar_WindowRounding,
|
||||||
|
ImGuiStyleVar_WindowMinSize,
|
||||||
|
ImGuiStyleVar_ChildWindowRounding,
|
||||||
|
ImGuiStyleVar_FramePadding,
|
||||||
|
ImGuiStyleVar_FrameRounding,
|
||||||
|
ImGuiStyleVar_ItemSpacing,
|
||||||
|
ImGuiStyleVar_ItemInnerSpacing,
|
||||||
|
ImGuiStyleVar_IndentSpacing,
|
||||||
|
ImGuiStyleVar_GrabMinSize,
|
||||||
|
ImGuiStyleVar_ButtonTextAlign,
|
||||||
|
ImGuiStyleVar_Count_
|
||||||
|
};
|
||||||
|
|
||||||
|
enum {
|
||||||
|
ImGuiColorEditMode_UserSelect = -2,
|
||||||
|
ImGuiColorEditMode_UserSelectShowButton = -1,
|
||||||
|
ImGuiColorEditMode_RGB = 0,
|
||||||
|
ImGuiColorEditMode_HSV = 1,
|
||||||
|
ImGuiColorEditMode_HEX = 2
|
||||||
|
};
|
||||||
|
|
||||||
|
enum {
|
||||||
|
ImGuiMouseCursor_None = -1,
|
||||||
|
ImGuiMouseCursor_Arrow = 0,
|
||||||
|
ImGuiMouseCursor_TextInput,
|
||||||
|
ImGuiMouseCursor_Move,
|
||||||
|
ImGuiMouseCursor_ResizeNS,
|
||||||
|
ImGuiMouseCursor_ResizeEW,
|
||||||
|
ImGuiMouseCursor_ResizeNESW,
|
||||||
|
ImGuiMouseCursor_ResizeNWSE,
|
||||||
|
ImGuiMouseCursor_Count_
|
||||||
|
};
|
||||||
|
|
||||||
|
enum {
|
||||||
|
ImGuiSetCond_Always = 1 << 0,
|
||||||
|
ImGuiSetCond_Once = 1 << 1,
|
||||||
|
ImGuiSetCond_FirstUseEver = 1 << 2,
|
||||||
|
ImGuiSetCond_Appearing = 1 << 3
|
||||||
|
};
|
||||||
|
|
||||||
|
struct ImGuiStyle {
|
||||||
|
float Alpha;
|
||||||
|
struct ImVec2 WindowPadding;
|
||||||
|
struct ImVec2 WindowMinSize;
|
||||||
|
float WindowRounding;
|
||||||
|
struct ImVec2 WindowTitleAlign;
|
||||||
|
float ChildWindowRounding;
|
||||||
|
struct ImVec2 FramePadding;
|
||||||
|
float FrameRounding;
|
||||||
|
struct ImVec2 ItemSpacing;
|
||||||
|
struct ImVec2 ItemInnerSpacing;
|
||||||
|
struct ImVec2 TouchExtraPadding;
|
||||||
|
float IndentSpacing;
|
||||||
|
float ColumnsMinSpacing;
|
||||||
|
float ScrollbarSize;
|
||||||
|
float ScrollbarRounding;
|
||||||
|
float GrabMinSize;
|
||||||
|
float GrabRounding;
|
||||||
|
struct ImVec2 ButtonTextAlign;
|
||||||
|
struct ImVec2 DisplayWindowPadding;
|
||||||
|
struct ImVec2 DisplaySafeAreaPadding;
|
||||||
|
bool AntiAliasedLines;
|
||||||
|
bool AntiAliasedShapes;
|
||||||
|
float CurveTessellationTol;
|
||||||
|
struct ImVec4 Colors[ImGuiCol_COUNT];
|
||||||
|
};
|
||||||
|
|
||||||
|
struct ImGuiIO {
|
||||||
|
struct ImVec2 DisplaySize;
|
||||||
|
float DeltaTime;
|
||||||
|
float IniSavingRate;
|
||||||
|
const char* IniFilename;
|
||||||
|
const char* LogFilename;
|
||||||
|
float MouseDoubleClickTime;
|
||||||
|
float MouseDoubleClickMaxDist;
|
||||||
|
float MouseDragThreshold;
|
||||||
|
int KeyMap[ImGuiKey_COUNT];
|
||||||
|
float KeyRepeatDelay;
|
||||||
|
float KeyRepeatRate;
|
||||||
|
void* UserData;
|
||||||
|
struct ImFontAtlas* Fonts;
|
||||||
|
float FontGlobalScale;
|
||||||
|
bool FontAllowUserScaling;
|
||||||
|
struct ImFont* FontDefault;
|
||||||
|
struct ImVec2 DisplayFramebufferScale;
|
||||||
|
struct ImVec2 DisplayVisibleMin;
|
||||||
|
struct ImVec2 DisplayVisibleMax;
|
||||||
|
bool OSXBehaviors;
|
||||||
|
void (*RenderDrawListsFn)(struct ImDrawData* data);
|
||||||
|
const char* (*GetClipboardTextFn)(void* user_data);
|
||||||
|
void (*SetClipboardTextFn)(void* user_data, const char* text);
|
||||||
|
void* ClipboardUserData;
|
||||||
|
void* (*MemAllocFn)(size_t sz);
|
||||||
|
void (*MemFreeFn)(void* ptr);
|
||||||
|
void (*ImeSetInputScreenPosFn)(int x, int y);
|
||||||
|
void* ImeWindowHandle;
|
||||||
|
struct ImVec2 MousePos;
|
||||||
|
bool MouseDown[5];
|
||||||
|
float MouseWheel;
|
||||||
|
bool MouseDrawCursor;
|
||||||
|
bool KeyCtrl;
|
||||||
|
bool KeyShift;
|
||||||
|
bool KeyAlt;
|
||||||
|
bool KeySuper;
|
||||||
|
bool KeysDown[512];
|
||||||
|
ImWchar InputCharacters[16 + 1];
|
||||||
|
bool WantCaptureMouse;
|
||||||
|
bool WantCaptureKeyboard;
|
||||||
|
bool WantTextInput;
|
||||||
|
float Framerate;
|
||||||
|
int MetricsAllocs;
|
||||||
|
int MetricsRenderVertices;
|
||||||
|
int MetricsRenderIndices;
|
||||||
|
int MetricsActiveWindows;
|
||||||
|
struct ImVec2 MouseDelta;
|
||||||
|
struct ImVec2 MousePosPrev;
|
||||||
|
bool MouseClicked[5];
|
||||||
|
struct ImVec2 MouseClickedPos[5];
|
||||||
|
float MouseClickedTime[5];
|
||||||
|
bool MouseDoubleClicked[5];
|
||||||
|
bool MouseReleased[5];
|
||||||
|
bool MouseDownOwned[5];
|
||||||
|
float MouseDownDuration[5];
|
||||||
|
float MouseDownDurationPrev[5];
|
||||||
|
float MouseDragMaxDistanceSqr[5];
|
||||||
|
float KeysDownDuration[512];
|
||||||
|
float KeysDownDurationPrev[512];
|
||||||
|
};
|
||||||
|
|
||||||
|
struct ImGuiTextEditCallbackData {
|
||||||
|
ImGuiInputTextFlags EventFlag;
|
||||||
|
ImGuiInputTextFlags Flags;
|
||||||
|
void* UserData;
|
||||||
|
bool ReadOnly;
|
||||||
|
ImWchar EventChar;
|
||||||
|
ImGuiKey EventKey;
|
||||||
|
char* Buf;
|
||||||
|
int BufTextLen;
|
||||||
|
int BufSize;
|
||||||
|
bool BufDirty;
|
||||||
|
int CursorPos;
|
||||||
|
int SelectionStart;
|
||||||
|
int SelectionEnd;
|
||||||
|
};
|
||||||
|
|
||||||
|
struct ImGuiSizeConstraintCallbackData {
|
||||||
|
void* UserData;
|
||||||
|
struct ImVec2 Pos;
|
||||||
|
struct ImVec2 CurrentSize;
|
||||||
|
struct ImVec2 DesiredSize;
|
||||||
|
};
|
||||||
|
|
||||||
|
struct ImDrawCmd {
|
||||||
|
unsigned int ElemCount;
|
||||||
|
struct ImVec4 ClipRect;
|
||||||
|
ImTextureID TextureId;
|
||||||
|
ImDrawCallback UserCallback;
|
||||||
|
void* UserCallbackData;
|
||||||
|
};
|
||||||
|
|
||||||
|
struct ImDrawData {
|
||||||
|
bool Valid;
|
||||||
|
struct ImDrawList** CmdLists;
|
||||||
|
int CmdListsCount;
|
||||||
|
int TotalVtxCount;
|
||||||
|
int TotalIdxCount;
|
||||||
|
};
|
||||||
|
|
||||||
|
struct ImDrawVert
|
||||||
|
{
|
||||||
|
struct ImVec2 pos;
|
||||||
|
struct ImVec2 uv;
|
||||||
|
ImU32 col;
|
||||||
|
};
|
||||||
|
|
||||||
|
struct ImFontConfig {
|
||||||
|
void* FontData;
|
||||||
|
int FontDataSize;
|
||||||
|
bool FontDataOwnedByAtlas;
|
||||||
|
int FontNo;
|
||||||
|
float SizePixels;
|
||||||
|
int OversampleH, OversampleV;
|
||||||
|
bool PixelSnapH;
|
||||||
|
struct ImVec2 GlyphExtraSpacing;
|
||||||
|
struct ImVec2 GlyphOffset;
|
||||||
|
const ImWchar* GlyphRanges;
|
||||||
|
bool MergeMode;
|
||||||
|
char Name[32];
|
||||||
|
struct ImFont* DstFont;
|
||||||
|
};
|
||||||
|
|
||||||
|
struct ImGuiListClipper
|
||||||
|
{
|
||||||
|
float StartPosY;
|
||||||
|
float ItemsHeight;
|
||||||
|
int ItemsCount, StepNo, DisplayStart, DisplayEnd;
|
||||||
|
};
|
||||||
|
#endif // CIMGUI_DEFINE_ENUMS_AND_STRUCTS
|
||||||
|
|
||||||
|
CIMGUI_API struct ImGuiIO* igGetIO();
|
||||||
|
CIMGUI_API struct ImGuiStyle* igGetStyle();
|
||||||
|
CIMGUI_API struct ImDrawData* igGetDrawData();
|
||||||
CIMGUI_API void igNewFrame();
|
CIMGUI_API void igNewFrame();
|
||||||
CIMGUI_API void igRender();
|
CIMGUI_API void igRender();
|
||||||
CIMGUI_API void igShutdown();
|
CIMGUI_API void igShutdown();
|
||||||
CIMGUI_API void igShowUserGuide();
|
CIMGUI_API void igShowUserGuide();
|
||||||
CIMGUI_API void igShowStyleEditor(ImGuiStyle* ref);
|
CIMGUI_API void igShowStyleEditor(struct ImGuiStyle* ref);
|
||||||
CIMGUI_API void igShowTestWindow(bool* opened);
|
CIMGUI_API void igShowTestWindow(bool* opened);
|
||||||
CIMGUI_API void igShowMetricsWindow(bool* opened);
|
CIMGUI_API void igShowMetricsWindow(bool* opened);
|
||||||
|
|
||||||
// Window
|
// Window
|
||||||
CIMGUI_API bool igBegin(CONST char* name, bool* p_opened, ImGuiWindowFlags flags);
|
CIMGUI_API bool igBegin(CONST char* name, bool* p_open, ImGuiWindowFlags flags);
|
||||||
CIMGUI_API bool igBegin2(CONST char* name, bool* p_opened, CONST struct ImVec2 size_on_first_use, float bg_alpha, ImGuiWindowFlags flags);
|
CIMGUI_API bool igBegin2(CONST char* name, bool* p_open, CONST struct ImVec2 size_on_first_use, float bg_alpha, ImGuiWindowFlags flags);
|
||||||
CIMGUI_API void igEnd();
|
CIMGUI_API void igEnd();
|
||||||
CIMGUI_API bool igBeginChild(CONST char* str_id, CONST struct ImVec2 size, bool border, ImGuiWindowFlags extra_flags);
|
CIMGUI_API bool igBeginChild(CONST char* str_id, CONST struct ImVec2 size, bool border, ImGuiWindowFlags extra_flags);
|
||||||
CIMGUI_API bool igBeginChildEx(ImGuiID id, CONST struct ImVec2 size, bool border, ImGuiWindowFlags extra_flags);
|
CIMGUI_API bool igBeginChildEx(ImGuiID id, CONST struct ImVec2 size, bool border, ImGuiWindowFlags extra_flags);
|
||||||
@@ -47,7 +420,7 @@ CIMGUI_API float igGetContentRegionAvailWidth();
|
|||||||
CIMGUI_API void igGetWindowContentRegionMin(struct ImVec2* out);
|
CIMGUI_API void igGetWindowContentRegionMin(struct ImVec2* out);
|
||||||
CIMGUI_API void igGetWindowContentRegionMax(struct ImVec2* out);
|
CIMGUI_API void igGetWindowContentRegionMax(struct ImVec2* out);
|
||||||
CIMGUI_API float igGetWindowContentRegionWidth();
|
CIMGUI_API float igGetWindowContentRegionWidth();
|
||||||
CIMGUI_API ImDrawList* igGetWindowDrawList();
|
CIMGUI_API struct ImDrawList* igGetWindowDrawList();
|
||||||
CIMGUI_API void igGetWindowPos(struct ImVec2* out);
|
CIMGUI_API void igGetWindowPos(struct ImVec2* out);
|
||||||
CIMGUI_API void igGetWindowSize(struct ImVec2* out);
|
CIMGUI_API void igGetWindowSize(struct ImVec2* out);
|
||||||
CIMGUI_API float igGetWindowWidth();
|
CIMGUI_API float igGetWindowWidth();
|
||||||
@@ -58,7 +431,8 @@ CIMGUI_API void igSetWindowFontScale(float scale);
|
|||||||
CIMGUI_API void igSetNextWindowPos(CONST struct ImVec2 pos, ImGuiSetCond cond);
|
CIMGUI_API void igSetNextWindowPos(CONST struct ImVec2 pos, ImGuiSetCond cond);
|
||||||
CIMGUI_API void igSetNextWindowPosCenter(ImGuiSetCond cond);
|
CIMGUI_API void igSetNextWindowPosCenter(ImGuiSetCond cond);
|
||||||
CIMGUI_API void igSetNextWindowSize(CONST struct ImVec2 size, ImGuiSetCond cond);
|
CIMGUI_API void igSetNextWindowSize(CONST struct ImVec2 size, ImGuiSetCond cond);
|
||||||
CIMGUI_API void igSetNextWindowContentSize(CONST ImVec2 size);
|
CIMGUI_API void igSetNextWindowSizeConstraints(CONST struct ImVec2 size_min, CONST struct ImVec2 size_max, ImGuiSizeConstraintCallback custom_callback, void* custom_callback_data);
|
||||||
|
CIMGUI_API void igSetNextWindowContentSize(CONST struct ImVec2 size);
|
||||||
CIMGUI_API void igSetNextWindowContentWidth(float width);
|
CIMGUI_API void igSetNextWindowContentWidth(float width);
|
||||||
CIMGUI_API void igSetNextWindowCollapsed(bool collapsed, ImGuiSetCond cond);
|
CIMGUI_API void igSetNextWindowCollapsed(bool collapsed, ImGuiSetCond cond);
|
||||||
CIMGUI_API void igSetNextWindowFocus();
|
CIMGUI_API void igSetNextWindowFocus();
|
||||||
@@ -77,25 +451,25 @@ CIMGUI_API float igGetScrollMaxX();
|
|||||||
CIMGUI_API float igGetScrollMaxY();
|
CIMGUI_API float igGetScrollMaxY();
|
||||||
CIMGUI_API void igSetScrollX(float scroll_x);
|
CIMGUI_API void igSetScrollX(float scroll_x);
|
||||||
CIMGUI_API void igSetScrollY(float scroll_y);
|
CIMGUI_API void igSetScrollY(float scroll_y);
|
||||||
CIMGUI_API void igSetScrollHere(float center_y_ratio = 0.5f);
|
CIMGUI_API void igSetScrollHere(float center_y_ratio);
|
||||||
CIMGUI_API void igSetScrollFromPosY(float pos_y, float center_y_ratio = 0.5f);
|
CIMGUI_API void igSetScrollFromPosY(float pos_y, float center_y_ratio);
|
||||||
CIMGUI_API void igSetKeyboardFocusHere(int offset);
|
CIMGUI_API void igSetKeyboardFocusHere(int offset);
|
||||||
CIMGUI_API void igSetStateStorage(ImGuiStorage* tree);
|
CIMGUI_API void igSetStateStorage(struct ImGuiStorage* tree);
|
||||||
CIMGUI_API ImGuiStorage* igGetStateStorage();
|
CIMGUI_API struct ImGuiStorage* igGetStateStorage();
|
||||||
|
|
||||||
// Parameters stacks (shared)
|
// Parameters stacks (shared)
|
||||||
CIMGUI_API void igPushFont(ImFont* font);
|
CIMGUI_API void igPushFont(struct ImFont* font);
|
||||||
CIMGUI_API void igPopFont();
|
CIMGUI_API void igPopFont();
|
||||||
CIMGUI_API void igPushStyleColor(ImGuiCol idx, CONST struct ImVec4 col);
|
CIMGUI_API void igPushStyleColor(ImGuiCol idx, CONST struct ImVec4 col);
|
||||||
CIMGUI_API void igPopStyleColor(int count);
|
CIMGUI_API void igPopStyleColor(int count);
|
||||||
CIMGUI_API void igPushStyleVar(ImGuiStyleVar idx, float val);
|
CIMGUI_API void igPushStyleVar(ImGuiStyleVar idx, float val);
|
||||||
CIMGUI_API void igPushStyleVarVec(ImGuiStyleVar idx, CONST struct ImVec2 val);
|
CIMGUI_API void igPushStyleVarVec(ImGuiStyleVar idx, CONST struct ImVec2 val);
|
||||||
CIMGUI_API void igPopStyleVar(int count);
|
CIMGUI_API void igPopStyleVar(int count);
|
||||||
CIMGUI_API ImFont* igGetFont();
|
CIMGUI_API struct ImFont* igGetFont();
|
||||||
CIMGUI_API float igGetFontSize();
|
CIMGUI_API float igGetFontSize();
|
||||||
CIMGUI_API void igGetFontTexUvWhitePixel(ImVec2* pOut);
|
CIMGUI_API void igGetFontTexUvWhitePixel(struct ImVec2* pOut);
|
||||||
CIMGUI_API ImU32 igGetColorU32(ImGuiCol idx, float alpha_mul);
|
CIMGUI_API ImU32 igGetColorU32(ImGuiCol idx, float alpha_mul);
|
||||||
CIMGUI_API ImU32 igGetColorU32Vec(CONST ImVec4* col);
|
CIMGUI_API ImU32 igGetColorU32Vec(CONST struct ImVec4* col);
|
||||||
|
|
||||||
|
|
||||||
// Parameters stacks (current window)
|
// Parameters stacks (current window)
|
||||||
@@ -110,14 +484,15 @@ CIMGUI_API void igPushButtonRepeat(bool repeat);
|
|||||||
CIMGUI_API void igPopButtonRepeat();
|
CIMGUI_API void igPopButtonRepeat();
|
||||||
|
|
||||||
// Layout
|
// Layout
|
||||||
CIMGUI_API void igBeginGroup();
|
|
||||||
CIMGUI_API void igEndGroup();
|
|
||||||
CIMGUI_API void igSeparator();
|
CIMGUI_API void igSeparator();
|
||||||
CIMGUI_API void igSameLine(float pos_x, float spacing_w);
|
CIMGUI_API void igSameLine(float pos_x, float spacing_w);
|
||||||
|
CIMGUI_API void igNewLine();
|
||||||
CIMGUI_API void igSpacing();
|
CIMGUI_API void igSpacing();
|
||||||
CIMGUI_API void igDummy(CONST ImVec2* size);
|
CIMGUI_API void igDummy(CONST struct ImVec2* size);
|
||||||
CIMGUI_API void igIndent();
|
CIMGUI_API void igIndent(float indent_w);
|
||||||
CIMGUI_API void igUnindent();
|
CIMGUI_API void igUnindent(float indent_w);
|
||||||
|
CIMGUI_API void igBeginGroup();
|
||||||
|
CIMGUI_API void igEndGroup();
|
||||||
CIMGUI_API void igGetCursorPos(struct ImVec2* pOut);
|
CIMGUI_API void igGetCursorPos(struct ImVec2* pOut);
|
||||||
CIMGUI_API float igGetCursorPosX();
|
CIMGUI_API float igGetCursorPosX();
|
||||||
CIMGUI_API float igGetCursorPosY();
|
CIMGUI_API float igGetCursorPosY();
|
||||||
@@ -173,12 +548,11 @@ CIMGUI_API bool igSmallButton(CONST char* label);
|
|||||||
CIMGUI_API bool igInvisibleButton(CONST char* str_id, CONST struct ImVec2 size);
|
CIMGUI_API bool igInvisibleButton(CONST char* str_id, CONST struct ImVec2 size);
|
||||||
CIMGUI_API void igImage(ImTextureID user_texture_id, CONST struct ImVec2 size, CONST struct ImVec2 uv0, CONST struct ImVec2 uv1, CONST struct ImVec4 tint_col, CONST struct ImVec4 border_col);
|
CIMGUI_API void igImage(ImTextureID user_texture_id, CONST struct ImVec2 size, CONST struct ImVec2 uv0, CONST struct ImVec2 uv1, CONST struct ImVec4 tint_col, CONST struct ImVec4 border_col);
|
||||||
CIMGUI_API bool igImageButton(ImTextureID user_texture_id, CONST struct ImVec2 size, CONST struct ImVec2 uv0, CONST struct ImVec2 uv1, int frame_padding, CONST struct ImVec4 bg_col, CONST struct ImVec4 tint_col);
|
CIMGUI_API bool igImageButton(ImTextureID user_texture_id, CONST struct ImVec2 size, CONST struct ImVec2 uv0, CONST struct ImVec2 uv1, int frame_padding, CONST struct ImVec4 bg_col, CONST struct ImVec4 tint_col);
|
||||||
CIMGUI_API bool igCollapsingHeader(CONST char* label, CONST char* str_id, bool display_frame, bool default_open);
|
|
||||||
CIMGUI_API bool igCheckbox(CONST char* label, bool* v);
|
CIMGUI_API bool igCheckbox(CONST char* label, bool* v);
|
||||||
CIMGUI_API bool igCheckboxFlags(CONST char* label, unsigned int* flags, unsigned int flags_value);
|
CIMGUI_API bool igCheckboxFlags(CONST char* label, unsigned int* flags, unsigned int flags_value);
|
||||||
CIMGUI_API bool igRadioButtonBool(CONST char* label, bool active);
|
CIMGUI_API bool igRadioButtonBool(CONST char* label, bool active);
|
||||||
CIMGUI_API bool igRadioButton(CONST char* label, int* v, int v_button);
|
CIMGUI_API bool igRadioButton(CONST char* label, int* v, int v_button);
|
||||||
CIMGUI_API bool igCombo(CONST char* label, int* current_item, CONST char** items, int items_count, int height_in_items);
|
CIMGUI_API bool igCombo(CONST char* label, int* current_item, CONST char* CONST* items, int items_count, int height_in_items);
|
||||||
CIMGUI_API bool igCombo2(CONST char* label, int* current_item, CONST char* items_separated_by_zeros, int height_in_items);
|
CIMGUI_API bool igCombo2(CONST char* label, int* current_item, CONST char* items_separated_by_zeros, int height_in_items);
|
||||||
CIMGUI_API bool igCombo3(CONST char* label, int* current_item, bool(*items_getter)(void* data, int idx, CONST char** out_text), void* data, int items_count, int height_in_items);
|
CIMGUI_API bool igCombo3(CONST char* label, int* current_item, bool(*items_getter)(void* data, int idx, CONST char** out_text), void* data, int items_count, int height_in_items);
|
||||||
CIMGUI_API bool igColorButton(CONST struct ImVec4 col, bool small_height, bool outline_border);
|
CIMGUI_API bool igColorButton(CONST struct ImVec4 col, bool small_height, bool outline_border);
|
||||||
@@ -189,7 +563,7 @@ CIMGUI_API void igPlotLines(CONST char* label, CONST float* values,
|
|||||||
CIMGUI_API void igPlotLines2(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, struct ImVec2 graph_size);
|
CIMGUI_API void igPlotLines2(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, struct ImVec2 graph_size);
|
||||||
CIMGUI_API void igPlotHistogram(CONST char* label, CONST float* values, int values_count, int values_offset, CONST char* overlay_text, float scale_min, float scale_max, struct ImVec2 graph_size, int stride);
|
CIMGUI_API void igPlotHistogram(CONST char* label, CONST float* values, int values_count, int values_offset, CONST char* overlay_text, float scale_min, float scale_max, struct ImVec2 graph_size, int stride);
|
||||||
CIMGUI_API void igPlotHistogram2(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, struct ImVec2 graph_size);
|
CIMGUI_API void igPlotHistogram2(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, struct ImVec2 graph_size);
|
||||||
CIMGUI_API void igProgressBar(float fraction, CONST ImVec2* size_arg, const char* overlay);
|
CIMGUI_API void igProgressBar(float fraction, CONST struct ImVec2* size_arg, CONST char* overlay);
|
||||||
|
|
||||||
|
|
||||||
// Widgets: Sliders (tip: ctrl+click on a slider to input text)
|
// Widgets: Sliders (tip: ctrl+click on a slider to input text)
|
||||||
@@ -210,17 +584,17 @@ CIMGUI_API bool igDragFloat(CONST char* label, float* v, float v_spe
|
|||||||
CIMGUI_API bool igDragFloat2(CONST char* label, float v[2], float v_speed, float v_min, float v_max, CONST char* display_format, float power);
|
CIMGUI_API bool igDragFloat2(CONST char* label, float v[2], float v_speed, float v_min, float v_max, CONST char* display_format, float power);
|
||||||
CIMGUI_API bool igDragFloat3(CONST char* label, float v[3], float v_speed, float v_min, float v_max, CONST char* display_format, float power);
|
CIMGUI_API bool igDragFloat3(CONST char* label, float v[3], float v_speed, float v_min, float v_max, CONST char* display_format, float power);
|
||||||
CIMGUI_API bool igDragFloat4(CONST char* label, float v[4], float v_speed, float v_min, float v_max, CONST char* display_format, float power);
|
CIMGUI_API bool igDragFloat4(CONST char* label, float v[4], float v_speed, float v_min, float v_max, CONST char* display_format, float power);
|
||||||
CIMGUI_API bool igDragFloatRange2(CONST char* label, float* v_current_min, float* v_current_max, float v_speed = 1.0f, float v_min = 0.0f, float v_max = 0.0f, CONST char* display_format = "%.3f", CONST char* display_format_max = NULL, float power = 1.0f);
|
CIMGUI_API bool igDragFloatRange2(CONST char* label, float* v_current_min, float* v_current_max, float v_speed, float v_min, float v_max, CONST char* display_format, CONST char* display_format_max, float power);
|
||||||
CIMGUI_API bool igDragInt(CONST char* label, int* v, float v_speed, int v_min, int v_max, CONST char* display_format); // If v_max >= v_max we have no bound
|
CIMGUI_API bool igDragInt(CONST char* label, int* v, float v_speed, int v_min, int v_max, CONST char* display_format); // If v_max >= v_max we have no bound
|
||||||
CIMGUI_API bool igDragInt2(CONST char* label, int v[2], float v_speed, int v_min, int v_max, CONST char* display_format);
|
CIMGUI_API bool igDragInt2(CONST char* label, int v[2], float v_speed, int v_min, int v_max, CONST char* display_format);
|
||||||
CIMGUI_API bool igDragInt3(CONST char* label, int v[3], float v_speed, int v_min, int v_max, CONST char* display_format);
|
CIMGUI_API bool igDragInt3(CONST char* label, int v[3], float v_speed, int v_min, int v_max, CONST char* display_format);
|
||||||
CIMGUI_API bool igDragInt4(CONST char* label, int v[4], float v_speed, int v_min, int v_max, CONST char* display_format);
|
CIMGUI_API bool igDragInt4(CONST char* label, int v[4], float v_speed, int v_min, int v_max, CONST char* display_format);
|
||||||
CIMGUI_API bool igDragIntRange2(CONST char* label, int* v_current_min, int* v_current_max, float v_speed = 1.0f, int v_min = 0, int v_max = 0, CONST char* display_format = "%.0f", CONST char* display_format_max = NULL);
|
CIMGUI_API bool igDragIntRange2(CONST char* label, int* v_current_min, int* v_current_max, float v_speed, int v_min, int v_max, CONST char* display_format, CONST char* display_format_max);
|
||||||
|
|
||||||
|
|
||||||
// Widgets: Input
|
// Widgets: Input
|
||||||
CIMGUI_API bool igInputText(CONST char* label, char* buf, size_t buf_size, ImGuiInputTextFlags flags, ImGuiTextEditCallback callback, void* user_data);
|
CIMGUI_API bool igInputText(CONST char* label, char* buf, size_t buf_size, ImGuiInputTextFlags flags, ImGuiTextEditCallback callback, void* user_data);
|
||||||
CIMGUI_API bool igInputTextMultiline(CONST char* label, char* buf, size_t buf_size, CONST ImVec2 size, ImGuiInputTextFlags flags, ImGuiTextEditCallback callback, void* user_data);
|
CIMGUI_API bool igInputTextMultiline(CONST char* label, char* buf, size_t buf_size, CONST struct ImVec2 size, ImGuiInputTextFlags flags, ImGuiTextEditCallback callback, void* user_data);
|
||||||
CIMGUI_API bool igInputFloat(CONST char* label, float* v, float step, float step_fast, int decimal_precision, ImGuiInputTextFlags extra_flags);
|
CIMGUI_API bool igInputFloat(CONST char* label, float* v, float step, float step_fast, int decimal_precision, ImGuiInputTextFlags extra_flags);
|
||||||
CIMGUI_API bool igInputFloat2(CONST char* label, float v[2], int decimal_precision, ImGuiInputTextFlags extra_flags);
|
CIMGUI_API bool igInputFloat2(CONST char* label, float v[2], int decimal_precision, ImGuiInputTextFlags extra_flags);
|
||||||
CIMGUI_API bool igInputFloat3(CONST char* label, float v[3], int decimal_precision, ImGuiInputTextFlags extra_flags);
|
CIMGUI_API bool igInputFloat3(CONST char* label, float v[3], int decimal_precision, ImGuiInputTextFlags extra_flags);
|
||||||
@@ -231,20 +605,29 @@ CIMGUI_API bool igInputInt3(CONST char* label, int v[3], ImGuiInputT
|
|||||||
CIMGUI_API bool igInputInt4(CONST char* label, int v[4], ImGuiInputTextFlags extra_flags);
|
CIMGUI_API bool igInputInt4(CONST char* label, int v[4], ImGuiInputTextFlags extra_flags);
|
||||||
|
|
||||||
// Widgets: Trees
|
// Widgets: Trees
|
||||||
CIMGUI_API bool igTreeNode(CONST char* str_label_id);
|
CIMGUI_API bool igTreeNode(CONST char* label);
|
||||||
CIMGUI_API bool igTreeNodeStr(CONST char* str_id, CONST char* fmt, ...);
|
CIMGUI_API bool igTreeNodeStr(CONST char* str_id, CONST char* fmt, ...);
|
||||||
CIMGUI_API bool igTreeNodePtr(CONST void* ptr_id, CONST char* fmt, ...);
|
CIMGUI_API bool igTreeNodePtr(CONST void* ptr_id, CONST char* fmt, ...);
|
||||||
CIMGUI_API bool igTreeNodeStrV(CONST char* str_id, CONST char* fmt, va_list args);
|
CIMGUI_API bool igTreeNodeStrV(CONST char* str_id, CONST char* fmt, va_list args);
|
||||||
CIMGUI_API bool igTreeNodePtrV(CONST void* ptr_id, CONST char* fmt, va_list args);
|
CIMGUI_API bool igTreeNodePtrV(CONST void* ptr_id, CONST char* fmt, va_list args);
|
||||||
|
CIMGUI_API bool igTreeNodeEx(CONST char* label, ImGuiTreeNodeFlags flags);
|
||||||
|
CIMGUI_API bool igTreeNodeExStr(CONST char* str_id, ImGuiTreeNodeFlags flags, CONST char* fmt, ...);
|
||||||
|
CIMGUI_API bool igTreeNodeExPtr(CONST void* ptr_id, ImGuiTreeNodeFlags flags, CONST char* fmt, ...);
|
||||||
|
CIMGUI_API bool igTreeNodeExV(CONST char* str_id, ImGuiTreeNodeFlags flags, CONST char* fmt, va_list args);
|
||||||
|
CIMGUI_API bool igTreeNodeExVPtr(CONST void* ptr_id, ImGuiTreeNodeFlags flags, CONST char* fmt, va_list args);
|
||||||
CIMGUI_API void igTreePushStr(CONST char* str_id);
|
CIMGUI_API void igTreePushStr(CONST char* str_id);
|
||||||
CIMGUI_API void igTreePushPtr(CONST void* ptr_id);
|
CIMGUI_API void igTreePushPtr(CONST void* ptr_id);
|
||||||
CIMGUI_API void igTreePop();
|
CIMGUI_API void igTreePop();
|
||||||
CIMGUI_API void igSetNextTreeNodeOpened(bool opened, ImGuiSetCond cond);
|
CIMGUI_API void igTreeAdvanceToLabelPos();
|
||||||
|
CIMGUI_API float igGetTreeNodeToLabelSpacing();
|
||||||
|
CIMGUI_API void igSetNextTreeNodeOpen(bool opened, ImGuiSetCond cond);
|
||||||
|
CIMGUI_API bool igCollapsingHeader(CONST char* label, ImGuiTreeNodeFlags flags);
|
||||||
|
CIMGUI_API bool igCollapsingHeaderEx(CONST char* label, bool* p_open, ImGuiTreeNodeFlags flags);
|
||||||
|
|
||||||
// Widgets: Selectable / Lists
|
// Widgets: Selectable / Lists
|
||||||
CIMGUI_API bool igSelectable(CONST char* label, bool selected, ImGuiSelectableFlags flags, CONST ImVec2 size);
|
CIMGUI_API bool igSelectable(CONST char* label, bool selected, ImGuiSelectableFlags flags, CONST struct ImVec2 size);
|
||||||
CIMGUI_API bool igSelectableEx(CONST char* label, bool* p_selected, ImGuiSelectableFlags flags, CONST ImVec2 size);
|
CIMGUI_API bool igSelectableEx(CONST char* label, bool* p_selected, ImGuiSelectableFlags flags, CONST struct ImVec2 size);
|
||||||
CIMGUI_API bool igListBox(CONST char* label, int* current_item, CONST char** items, int items_count, int height_in_items);
|
CIMGUI_API bool igListBox(CONST char* label, int* current_item, CONST char* CONST* items, int items_count, int height_in_items);
|
||||||
CIMGUI_API bool igListBox2(CONST char* label, int* current_item, bool(*items_getter)(void* data, int idx, CONST char** out_text), void* data, int items_count, int height_in_items);
|
CIMGUI_API bool igListBox2(CONST char* label, int* current_item, bool(*items_getter)(void* data, int idx, CONST char** out_text), void* data, int items_count, int height_in_items);
|
||||||
CIMGUI_API bool igListBoxHeader(CONST char* label, CONST struct ImVec2 size);
|
CIMGUI_API bool igListBoxHeader(CONST char* label, CONST struct ImVec2 size);
|
||||||
CIMGUI_API bool igListBoxHeader2(CONST char* label, int items_count, int height_in_items);
|
CIMGUI_API bool igListBoxHeader2(CONST char* label, int items_count, int height_in_items);
|
||||||
@@ -256,7 +639,7 @@ CIMGUI_API void igValueInt(CONST char* prefix, int v);
|
|||||||
CIMGUI_API void igValueUInt(CONST char* prefix, unsigned int v);
|
CIMGUI_API void igValueUInt(CONST char* prefix, unsigned int v);
|
||||||
CIMGUI_API void igValueFloat(CONST char* prefix, float v, CONST char* float_format);
|
CIMGUI_API void igValueFloat(CONST char* prefix, float v, CONST char* float_format);
|
||||||
CIMGUI_API void igValueColor(CONST char* prefix, CONST struct ImVec4 v);
|
CIMGUI_API void igValueColor(CONST char* prefix, CONST struct ImVec4 v);
|
||||||
CIMGUI_API void igValueColor2(CONST char* prefix, unsigned int v);
|
CIMGUI_API void igValueColor2(CONST char* prefix, ImU32 v);
|
||||||
|
|
||||||
// Tooltip
|
// Tooltip
|
||||||
CIMGUI_API void igSetTooltip(CONST char* fmt, ...);
|
CIMGUI_API void igSetTooltip(CONST char* fmt, ...);
|
||||||
@@ -277,7 +660,7 @@ CIMGUI_API bool igMenuItemPtr(CONST char* label, CONST char* shortcu
|
|||||||
// Popup
|
// Popup
|
||||||
CIMGUI_API void igOpenPopup(CONST char* str_id);
|
CIMGUI_API void igOpenPopup(CONST char* str_id);
|
||||||
CIMGUI_API bool igBeginPopup(CONST char* str_id);
|
CIMGUI_API bool igBeginPopup(CONST char* str_id);
|
||||||
CIMGUI_API bool igBeginPopupModal(CONST char* name, bool* p_opened, ImGuiWindowFlags extra_flags);
|
CIMGUI_API bool igBeginPopupModal(CONST char* name, bool* p_open, ImGuiWindowFlags extra_flags);
|
||||||
CIMGUI_API bool igBeginPopupContextItem(CONST char* str_id, int mouse_button);
|
CIMGUI_API bool igBeginPopupContextItem(CONST char* str_id, int mouse_button);
|
||||||
CIMGUI_API bool igBeginPopupContextWindow(bool also_over_items, CONST char* str_id, int mouse_button);
|
CIMGUI_API bool igBeginPopupContextWindow(bool also_over_items, CONST char* str_id, int mouse_button);
|
||||||
CIMGUI_API bool igBeginPopupContextVoid(CONST char* str_id, int mouse_button);
|
CIMGUI_API bool igBeginPopupContextVoid(CONST char* str_id, int mouse_button);
|
||||||
@@ -292,10 +675,15 @@ CIMGUI_API void igLogFinish();
|
|||||||
CIMGUI_API void igLogButtons();
|
CIMGUI_API void igLogButtons();
|
||||||
CIMGUI_API void igLogText(CONST char* fmt, ...);
|
CIMGUI_API void igLogText(CONST char* fmt, ...);
|
||||||
|
|
||||||
|
// Clipping
|
||||||
|
CIMGUI_API void igPushClipRect(CONST struct ImVec2 clip_rect_min, CONST struct ImVec2 clip_rect_max, bool intersect_with_current_clip_rect);
|
||||||
|
CIMGUI_API void igPopClipRect();
|
||||||
|
|
||||||
// Utilities
|
// Utilities
|
||||||
CIMGUI_API bool igIsItemHovered();
|
CIMGUI_API bool igIsItemHovered();
|
||||||
CIMGUI_API bool igIsItemHoveredRect();
|
CIMGUI_API bool igIsItemHoveredRect();
|
||||||
CIMGUI_API bool igIsItemActive();
|
CIMGUI_API bool igIsItemActive();
|
||||||
|
CIMGUI_API bool igIsItemClicked(int mouse_button);
|
||||||
CIMGUI_API bool igIsItemVisible();
|
CIMGUI_API bool igIsItemVisible();
|
||||||
CIMGUI_API bool igIsAnyItemHovered();
|
CIMGUI_API bool igIsAnyItemHovered();
|
||||||
CIMGUI_API bool igIsAnyItemActive();
|
CIMGUI_API bool igIsAnyItemActive();
|
||||||
@@ -307,7 +695,9 @@ CIMGUI_API bool igIsWindowHovered();
|
|||||||
CIMGUI_API bool igIsWindowFocused();
|
CIMGUI_API bool igIsWindowFocused();
|
||||||
CIMGUI_API bool igIsRootWindowFocused();
|
CIMGUI_API bool igIsRootWindowFocused();
|
||||||
CIMGUI_API bool igIsRootWindowOrAnyChildFocused();
|
CIMGUI_API bool igIsRootWindowOrAnyChildFocused();
|
||||||
|
CIMGUI_API bool igIsRootWindowOrAnyChildHovered();
|
||||||
CIMGUI_API bool igIsRectVisible(CONST struct ImVec2 item_size);
|
CIMGUI_API bool igIsRectVisible(CONST struct ImVec2 item_size);
|
||||||
|
CIMGUI_API bool igIsRectVisible2(CONST struct ImVec2* rect_min, CONST struct ImVec2* rect_max);
|
||||||
CIMGUI_API bool igIsPosHoveringAnyWindow(CONST struct ImVec2 pos);
|
CIMGUI_API bool igIsPosHoveringAnyWindow(CONST struct ImVec2 pos);
|
||||||
CIMGUI_API float igGetTime();
|
CIMGUI_API float igGetTime();
|
||||||
CIMGUI_API int igGetFrameCount();
|
CIMGUI_API int igGetFrameCount();
|
||||||
@@ -319,15 +709,15 @@ CIMGUI_API void igCalcListClipping(int items_count, float items_heig
|
|||||||
CIMGUI_API bool igBeginChildFrame(ImGuiID id, CONST struct ImVec2 size, ImGuiWindowFlags extra_flags);
|
CIMGUI_API bool igBeginChildFrame(ImGuiID id, CONST struct ImVec2 size, ImGuiWindowFlags extra_flags);
|
||||||
CIMGUI_API void igEndChildFrame();
|
CIMGUI_API void igEndChildFrame();
|
||||||
|
|
||||||
CIMGUI_API void igColorConvertU32ToFloat4(ImVec4* pOut, ImU32 in);
|
CIMGUI_API void igColorConvertU32ToFloat4(struct ImVec4* pOut, ImU32 in);
|
||||||
CIMGUI_API ImU32 igColorConvertFloat4ToU32(CONST struct ImVec4 in);
|
CIMGUI_API ImU32 igColorConvertFloat4ToU32(CONST struct ImVec4 in);
|
||||||
CIMGUI_API void igColorConvertRGBtoHSV(float r, float g, float b, float* out_h, float* out_s, float* out_v);
|
CIMGUI_API void igColorConvertRGBtoHSV(float r, float g, float b, float* out_h, float* out_s, float* out_v);
|
||||||
CIMGUI_API void igColorConvertHSVtoRGB(float h, float s, float v, float* out_r, float* out_g, float* out_b);
|
CIMGUI_API void igColorConvertHSVtoRGB(float h, float s, float v, float* out_r, float* out_g, float* out_b);
|
||||||
|
|
||||||
CIMGUI_API int igGetKeyIndex(ImGuiKey key);
|
CIMGUI_API int igGetKeyIndex(ImGuiKey imgui_key);
|
||||||
CIMGUI_API bool igIsKeyDown(int key_index);
|
CIMGUI_API bool igIsKeyDown(int user_key_index);
|
||||||
CIMGUI_API bool igIsKeyPressed(int key_index, bool repeat);
|
CIMGUI_API bool igIsKeyPressed(int user_key_index, bool repeat);
|
||||||
CIMGUI_API bool igIsKeyReleased(int key_index);
|
CIMGUI_API bool igIsKeyReleased(int user_key_index);
|
||||||
CIMGUI_API bool igIsMouseDown(int button);
|
CIMGUI_API bool igIsMouseDown(int button);
|
||||||
CIMGUI_API bool igIsMouseClicked(int button, bool repeat);
|
CIMGUI_API bool igIsMouseClicked(int button, bool repeat);
|
||||||
CIMGUI_API bool igIsMouseDoubleClicked(int button);
|
CIMGUI_API bool igIsMouseDoubleClicked(int button);
|
||||||
@@ -337,7 +727,7 @@ CIMGUI_API bool igIsMouseHoveringAnyWindow();
|
|||||||
CIMGUI_API bool igIsMouseHoveringRect(CONST struct ImVec2 r_min, CONST struct ImVec2 r_max, bool clip);
|
CIMGUI_API bool igIsMouseHoveringRect(CONST struct ImVec2 r_min, CONST struct ImVec2 r_max, bool clip);
|
||||||
CIMGUI_API bool igIsMouseDragging(int button, float lock_threshold);
|
CIMGUI_API bool igIsMouseDragging(int button, float lock_threshold);
|
||||||
CIMGUI_API void igGetMousePos(struct ImVec2* pOut);
|
CIMGUI_API void igGetMousePos(struct ImVec2* pOut);
|
||||||
CIMGUI_API void igGetMousePosOnOpeningCurrentPopup(ImVec2* pOut);
|
CIMGUI_API void igGetMousePosOnOpeningCurrentPopup(struct ImVec2* pOut);
|
||||||
CIMGUI_API void igGetMouseDragDelta(struct ImVec2* pOut, int button, float lock_threshold);
|
CIMGUI_API void igGetMouseDragDelta(struct ImVec2* pOut, int button, float lock_threshold);
|
||||||
CIMGUI_API void igResetMouseDragDelta(int button);
|
CIMGUI_API void igResetMouseDragDelta(int button);
|
||||||
CIMGUI_API ImGuiMouseCursor igGetMouseCursor();
|
CIMGUI_API ImGuiMouseCursor igGetMouseCursor();
|
||||||
@@ -353,88 +743,138 @@ CIMGUI_API void igSetClipboardText(CONST char* text);
|
|||||||
|
|
||||||
// Internal state access - if you want to share ImGui state between modules (e.g. DLL) or allocate it yourself
|
// Internal state access - if you want to share ImGui state between modules (e.g. DLL) or allocate it yourself
|
||||||
CIMGUI_API CONST char* igGetVersion();
|
CIMGUI_API CONST char* igGetVersion();
|
||||||
CIMGUI_API void* igGetInternalState();
|
CIMGUI_API struct ImGuiContext* igCreateContext(void* (*malloc_fn)(size_t), void (*free_fn)(void*));
|
||||||
CIMGUI_API size_t igGetInternalStateSize();
|
CIMGUI_API void igDestroyContext(struct ImGuiContext* ctx);
|
||||||
CIMGUI_API void igSetInternalState(void* state, bool construct);
|
CIMGUI_API struct ImGuiContext* igGetCurrentContext();
|
||||||
|
CIMGUI_API void igSetCurrentContext(struct ImGuiContext* ctx);
|
||||||
|
|
||||||
CIMGUI_API void ImFontAtlas_GetTexDataAsRGBA32(ImFontAtlas* atlas, unsigned char** out_pixels, int* out_width, int* out_height, int* out_bytes_per_pixel);
|
CIMGUI_API void ImFontConfig_DefaultConstructor(struct ImFontConfig* config);
|
||||||
CIMGUI_API void ImFontAtlas_GetTexDataAsAlpha8(ImFontAtlas* atlas, unsigned char** out_pixels, int* out_width, int* out_height, int* out_bytes_per_pixel);
|
|
||||||
CIMGUI_API void ImFontAtlas_SetTexID(ImFontAtlas* atlas, void* tex);
|
CIMGUI_API void ImFontAtlas_GetTexDataAsRGBA32(struct ImFontAtlas* atlas, unsigned char** out_pixels, int* out_width, int* out_height, int* out_bytes_per_pixel);
|
||||||
CIMGUI_API ImFont* ImFontAtlas_AddFont(ImFontAtlas* atlas, CONST ImFontConfig* font_cfg);
|
CIMGUI_API void ImFontAtlas_GetTexDataAsAlpha8(struct ImFontAtlas* atlas, unsigned char** out_pixels, int* out_width, int* out_height, int* out_bytes_per_pixel);
|
||||||
CIMGUI_API ImFont* ImFontAtlas_AddFontDefault(ImFontAtlas* atlas, CONST ImFontConfig* font_cfg);
|
CIMGUI_API void ImFontAtlas_SetTexID(struct ImFontAtlas* atlas, ImTextureID id);
|
||||||
CIMGUI_API ImFont* ImFontAtlas_AddFontFromFileTTF(ImFontAtlas* atlas, CONST char* filename, float size_pixels, CONST ImFontConfig* font_cfg, CONST ImWchar* glyph_ranges);
|
CIMGUI_API struct ImFont* ImFontAtlas_AddFont(struct ImFontAtlas* atlas, CONST struct ImFontConfig* font_cfg);
|
||||||
CIMGUI_API ImFont* ImFontAtlas_AddFontFromMemoryTTF(ImFontAtlas* atlas, void* ttf_data, int ttf_size, float size_pixels, CONST ImFontConfig* font_cfg, CONST ImWchar* glyph_ranges);
|
CIMGUI_API struct ImFont* ImFontAtlas_AddFontDefault(struct ImFontAtlas* atlas, CONST struct ImFontConfig* font_cfg);
|
||||||
CIMGUI_API ImFont* ImFontAtlas_AddFontFromMemoryCompressedTTF(ImFontAtlas* atlas, CONST void* compressed_ttf_data, int compressed_ttf_size, float size_pixels, CONST ImFontConfig* font_cfg, CONST ImWchar* glyph_ranges);
|
CIMGUI_API struct ImFont* ImFontAtlas_AddFontFromFileTTF(struct ImFontAtlas* atlas, CONST char* filename, float size_pixels, CONST struct ImFontConfig* font_cfg, CONST ImWchar* glyph_ranges);
|
||||||
CIMGUI_API ImFont* ImFontAtlas_AddFontFromMemoryCompressedBase85TTF(ImFontAtlas* atlas, CONST char* compressed_ttf_data_base85, float size_pixels, CONST ImFontConfig* font_cfg, CONST ImWchar* glyph_ranges);
|
CIMGUI_API struct ImFont* ImFontAtlas_AddFontFromMemoryTTF(struct ImFontAtlas* atlas, void* ttf_data, int ttf_size, float size_pixels, CONST struct ImFontConfig* font_cfg, CONST ImWchar* glyph_ranges);
|
||||||
CIMGUI_API void ImFontAtlas_ClearTexData(ImFontAtlas* atlas);
|
CIMGUI_API struct ImFont* ImFontAtlas_AddFontFromMemoryCompressedTTF(struct ImFontAtlas* atlas, CONST void* compressed_ttf_data, int compressed_ttf_size, float size_pixels, CONST struct ImFontConfig* font_cfg, CONST ImWchar* glyph_ranges);
|
||||||
CIMGUI_API void ImFontAtlas_Clear(ImFontAtlas* atlas);
|
CIMGUI_API struct ImFont* ImFontAtlas_AddFontFromMemoryCompressedBase85TTF(struct ImFontAtlas* atlas, CONST char* compressed_ttf_data_base85, float size_pixels, CONST struct ImFontConfig* font_cfg, CONST ImWchar* glyph_ranges);
|
||||||
|
CIMGUI_API void ImFontAtlas_ClearTexData(struct ImFontAtlas* atlas);
|
||||||
|
CIMGUI_API void ImFontAtlas_Clear(struct ImFontAtlas* atlas);
|
||||||
|
CIMGUI_API CONST ImWchar* ImFontAtlas_GetGlyphRangesDefault(struct ImFontAtlas* atlas);
|
||||||
|
CIMGUI_API CONST ImWchar* ImFontAtlas_GetGlyphRangesKorean(struct ImFontAtlas* atlas);
|
||||||
|
CIMGUI_API CONST ImWchar* ImFontAtlas_GetGlyphRangesJapanese(struct ImFontAtlas* atlas);
|
||||||
|
CIMGUI_API CONST ImWchar* ImFontAtlas_GetGlyphRangesChinese(struct ImFontAtlas* atlas);
|
||||||
|
CIMGUI_API CONST ImWchar* ImFontAtlas_GetGlyphRangesCyrillic(struct ImFontAtlas* atlas);
|
||||||
|
CIMGUI_API CONST ImWchar* ImFontAtlas_GetGlyphRangesThai(struct ImFontAtlas* atlas);
|
||||||
|
|
||||||
CIMGUI_API void ImGuiIO_AddInputCharacter(unsigned short c);
|
CIMGUI_API void ImGuiIO_AddInputCharacter(unsigned short c);
|
||||||
CIMGUI_API void ImGuiIO_AddInputCharactersUTF8(CONST char* utf8_chars);
|
CIMGUI_API void ImGuiIO_AddInputCharactersUTF8(CONST char* utf8_chars);
|
||||||
CIMGUI_API void ImGuiIO_ClearInputCharacters();
|
CIMGUI_API void ImGuiIO_ClearInputCharacters();
|
||||||
|
|
||||||
//ImDrawData
|
//ImDrawData
|
||||||
CIMGUI_API void ImDrawData_DeIndexAllBuffers(ImDrawData* drawData);
|
CIMGUI_API void ImDrawData_DeIndexAllBuffers(struct ImDrawData* drawData);
|
||||||
|
CIMGUI_API void ImDrawData_ScaleClipRects(struct ImDrawData* drawData, struct ImVec2 sc);
|
||||||
|
|
||||||
//ImDrawList
|
//ImDrawList
|
||||||
CIMGUI_API int ImDrawList_GetVertexBufferSize(ImDrawList* list);
|
CIMGUI_API int ImDrawList_GetVertexBufferSize(struct ImDrawList* list);
|
||||||
CIMGUI_API ImDrawVert* ImDrawList_GetVertexPtr(ImDrawList* list, int n);
|
CIMGUI_API struct ImDrawVert* ImDrawList_GetVertexPtr(struct ImDrawList* list, int n);
|
||||||
CIMGUI_API int ImDrawList_GetIndexBufferSize(ImDrawList* list);
|
CIMGUI_API int ImDrawList_GetIndexBufferSize(struct ImDrawList* list);
|
||||||
CIMGUI_API ImDrawIdx* ImDrawList_GetIndexPtr(ImDrawList* list, int n);
|
CIMGUI_API ImDrawIdx* ImDrawList_GetIndexPtr(struct ImDrawList* list, int n);
|
||||||
CIMGUI_API int ImDrawList_GetCmdSize(ImDrawList* list);
|
CIMGUI_API int ImDrawList_GetCmdSize(struct ImDrawList* list);
|
||||||
CIMGUI_API ImDrawCmd* ImDrawList_GetCmdPtr(ImDrawList* list, int n);
|
CIMGUI_API struct ImDrawCmd* ImDrawList_GetCmdPtr(struct ImDrawList* list, int n);
|
||||||
|
|
||||||
CIMGUI_API void ImDrawList_Clear(ImDrawList* list);
|
CIMGUI_API void ImDrawList_Clear(struct ImDrawList* list);
|
||||||
CIMGUI_API void ImDrawList_ClearFreeMemory(ImDrawList* list);
|
CIMGUI_API void ImDrawList_ClearFreeMemory(struct ImDrawList* list);
|
||||||
CIMGUI_API void ImDrawList_PushClipRect(ImDrawList* list, CONST struct ImVec4 clip_rect); // Scissoring. The values are x1, y1, x2, y2.
|
CIMGUI_API void ImDrawList_PushClipRect(struct ImDrawList* list, struct ImVec2 clip_rect_min, struct ImVec2 clip_rect_max, bool intersect_with_current_clip_rect);
|
||||||
CIMGUI_API void ImDrawList_PushClipRectFullScreen(ImDrawList* list);
|
CIMGUI_API void ImDrawList_PushClipRectFullScreen(struct ImDrawList* list);
|
||||||
CIMGUI_API void ImDrawList_PopClipRect(ImDrawList* list);
|
CIMGUI_API void ImDrawList_PopClipRect(struct ImDrawList* list);
|
||||||
CIMGUI_API void ImDrawList_PushTextureID(ImDrawList* list, CONST ImTextureID texture_id);
|
CIMGUI_API void ImDrawList_PushTextureID(struct ImDrawList* list, CONST ImTextureID texture_id);
|
||||||
CIMGUI_API void ImDrawList_PopTextureID(ImDrawList* list);
|
CIMGUI_API void ImDrawList_PopTextureID(struct ImDrawList* list);
|
||||||
|
|
||||||
// Primitives
|
// Primitives
|
||||||
CIMGUI_API void ImDrawList_AddLine(ImDrawList* list, CONST struct ImVec2 a, CONST struct ImVec2 b, ImU32 col, float thickness);
|
CIMGUI_API void ImDrawList_AddLine(struct ImDrawList* list, CONST struct ImVec2 a, CONST struct ImVec2 b, ImU32 col, float thickness);
|
||||||
CIMGUI_API void ImDrawList_AddRect(ImDrawList* list, CONST struct ImVec2 a, CONST struct ImVec2 b, ImU32 col, float rounding, int rounding_corners, float thickness);
|
CIMGUI_API void ImDrawList_AddRect(struct ImDrawList* list, CONST struct ImVec2 a, CONST struct ImVec2 b, ImU32 col, float rounding, int rounding_corners_flags, float thickness);
|
||||||
CIMGUI_API void ImDrawList_AddRectFilled(ImDrawList* list, CONST struct ImVec2 a, CONST struct ImVec2 b, ImU32 col, float rounding, int rounding_corners);
|
CIMGUI_API void ImDrawList_AddRectFilled(struct ImDrawList* list, CONST struct ImVec2 a, CONST struct ImVec2 b, ImU32 col, float rounding, int rounding_corners_flags);
|
||||||
CIMGUI_API void ImDrawList_AddRectFilledMultiColor(ImDrawList* list, CONST struct ImVec2 a, CONST struct ImVec2 b, ImU32 col_upr_left, ImU32 col_upr_right, ImU32 col_bot_right, ImU32 col_bot_left);
|
CIMGUI_API void ImDrawList_AddRectFilledMultiColor(struct ImDrawList* list, CONST struct ImVec2 a, CONST struct ImVec2 b, ImU32 col_upr_left, ImU32 col_upr_right, ImU32 col_bot_right, ImU32 col_bot_left);
|
||||||
CIMGUI_API void ImDrawList_AddTriangle(ImDrawList* list, CONST struct ImVec2 a, CONST struct ImVec2 b, CONST struct ImVec2 c, ImU32 col, float thickness);
|
CIMGUI_API void ImDrawList_AddQuad(struct ImDrawList* list, CONST struct ImVec2 a, CONST struct ImVec2 b, CONST struct ImVec2 c, CONST struct ImVec2 d, ImU32 col, float thickness);
|
||||||
CIMGUI_API void ImDrawList_AddTriangleFilled(ImDrawList* list, CONST struct ImVec2 a, CONST struct ImVec2 b, CONST struct ImVec2 c, ImU32 col);
|
CIMGUI_API void ImDrawList_AddQuadFilled(struct ImDrawList* list, CONST struct ImVec2 a, CONST struct ImVec2 b, CONST struct ImVec2 c, CONST struct ImVec2 d, ImU32 col);
|
||||||
CIMGUI_API void ImDrawList_AddCircle(ImDrawList* list, CONST struct ImVec2 centre, float radius, ImU32 col, int num_segments, float thickness);
|
CIMGUI_API void ImDrawList_AddTriangle(struct ImDrawList* list, CONST struct ImVec2 a, CONST struct ImVec2 b, CONST struct ImVec2 c, ImU32 col, float thickness);
|
||||||
CIMGUI_API void ImDrawList_AddCircleFilled(ImDrawList* list, CONST struct ImVec2 centre, float radius, ImU32 col, int num_segments);
|
CIMGUI_API void ImDrawList_AddTriangleFilled(struct ImDrawList* list, CONST struct ImVec2 a, CONST struct ImVec2 b, CONST struct ImVec2 c, ImU32 col);
|
||||||
CIMGUI_API void ImDrawList_AddText(ImDrawList* list, CONST struct ImVec2 pos, ImU32 col, CONST char* text_begin, CONST char* text_end);
|
CIMGUI_API void ImDrawList_AddCircle(struct ImDrawList* list, CONST struct ImVec2 centre, float radius, ImU32 col, int num_segments, float thickness);
|
||||||
CIMGUI_API void ImDrawList_AddTextExt(ImDrawList* list, CONST ImFont* font, float font_size, CONST struct ImVec2 pos, ImU32 col, CONST char* text_begin, CONST char* text_end, float wrap_width, CONST ImVec4* cpu_fine_clip_rect);
|
CIMGUI_API void ImDrawList_AddCircleFilled(struct ImDrawList* list, CONST struct ImVec2 centre, float radius, ImU32 col, int num_segments);
|
||||||
CIMGUI_API void ImDrawList_AddImage(ImDrawList* list, ImTextureID user_texture_id, CONST struct ImVec2 a, CONST struct ImVec2 b, CONST struct ImVec2 uv0, CONST struct ImVec2 uv1, ImU32 col);
|
CIMGUI_API void ImDrawList_AddText(struct ImDrawList* list, CONST struct ImVec2 pos, ImU32 col, CONST char* text_begin, CONST char* text_end);
|
||||||
CIMGUI_API void ImDrawList_AddPolyline(ImDrawList* list, CONST ImVec2* points, CONST int num_points, ImU32 col, bool closed, float thickness, bool anti_aliased);
|
CIMGUI_API void ImDrawList_AddTextExt(struct ImDrawList* list, CONST struct ImFont* font, float font_size, CONST struct ImVec2 pos, ImU32 col, CONST char* text_begin, CONST char* text_end, float wrap_width, CONST struct ImVec4* cpu_fine_clip_rect);
|
||||||
CIMGUI_API void ImDrawList_AddConvexPolyFilled(ImDrawList* list, CONST ImVec2* points, CONST int num_points, ImU32 col, bool anti_aliased);
|
CIMGUI_API void ImDrawList_AddImage(struct ImDrawList* list, ImTextureID user_texture_id, CONST struct ImVec2 a, CONST struct ImVec2 b, CONST struct ImVec2 uv_a, CONST struct ImVec2 uv_b, ImU32 col);
|
||||||
CIMGUI_API void ImDrawList_AddBezierCurve(ImDrawList* list, CONST struct ImVec2 pos0, CONST struct ImVec2 cp0, CONST struct ImVec2 cp1, CONST struct ImVec2 pos1, ImU32 col, float thickness, int num_segments);
|
CIMGUI_API void ImDrawList_AddImageQuad(struct ImDrawList* list, ImTextureID user_texture_id, CONST struct ImVec2 a, CONST struct ImVec2 b, CONST struct ImVec2 c, CONST struct ImVec2 d, CONST struct ImVec2 uv_a, CONST struct ImVec2 uv_b, CONST struct ImVec2 uv_c, CONST struct ImVec2 uv_d, ImU32 col);
|
||||||
|
CIMGUI_API void ImDrawList_AddPolyline(struct ImDrawList* list, CONST struct ImVec2* points, CONST int num_points, ImU32 col, bool closed, float thickness, bool anti_aliased);
|
||||||
|
CIMGUI_API void ImDrawList_AddConvexPolyFilled(struct ImDrawList* list, CONST struct ImVec2* points, CONST int num_points, ImU32 col, bool anti_aliased);
|
||||||
|
CIMGUI_API void ImDrawList_AddBezierCurve(struct ImDrawList* list, CONST struct ImVec2 pos0, CONST struct ImVec2 cp0, CONST struct ImVec2 cp1, CONST struct ImVec2 pos1, ImU32 col, float thickness, int num_segments);
|
||||||
|
|
||||||
// Stateful path API, add points then finish with PathFill() or PathStroke()
|
// Stateful path API, add points then finish with PathFill() or PathStroke()
|
||||||
CIMGUI_API void ImDrawList_PathClear(ImDrawList* list);
|
CIMGUI_API void ImDrawList_PathClear(struct ImDrawList* list);
|
||||||
CIMGUI_API void ImDrawList_PathLineTo(ImDrawList* list, CONST struct ImVec2 pos);
|
CIMGUI_API void ImDrawList_PathLineTo(struct ImDrawList* list, CONST struct ImVec2 pos);
|
||||||
CIMGUI_API void ImDrawList_PathLineToMergeDuplicate(ImDrawList* list, CONST struct ImVec2 pos);
|
CIMGUI_API void ImDrawList_PathLineToMergeDuplicate(struct ImDrawList* list, CONST struct ImVec2 pos);
|
||||||
CIMGUI_API void ImDrawList_PathFill(ImDrawList* list, ImU32 col);
|
CIMGUI_API void ImDrawList_PathFillConvex(struct ImDrawList* list, ImU32 col);
|
||||||
CIMGUI_API void ImDrawList_PathStroke(ImDrawList* list, ImU32 col, bool closed, float thickness);
|
CIMGUI_API void ImDrawList_PathStroke(struct ImDrawList* list, ImU32 col, bool closed, float thickness);
|
||||||
CIMGUI_API void ImDrawList_PathArcTo(ImDrawList* list, CONST struct ImVec2 centre, float radius, float a_min, float a_max, int num_segments);
|
CIMGUI_API void ImDrawList_PathArcTo(struct ImDrawList* list, CONST struct ImVec2 centre, float radius, float a_min, float a_max, int num_segments);
|
||||||
CIMGUI_API void ImDrawList_PathArcToFast(ImDrawList* list, CONST struct ImVec2 centre, float radius, int a_min_of_12, int a_max_of_12); // Use precomputed angles for a 12 steps circle
|
CIMGUI_API void ImDrawList_PathArcToFast(struct ImDrawList* list, CONST struct ImVec2 centre, float radius, int a_min_of_12, int a_max_of_12); // Use precomputed angles for a 12 steps circle
|
||||||
CIMGUI_API void ImDrawList_PathBezierCurveTo(ImDrawList* list, CONST struct ImVec2 p1, CONST struct ImVec2 p2, CONST struct ImVec2 p3, int num_segments);
|
CIMGUI_API void ImDrawList_PathBezierCurveTo(struct ImDrawList* list, CONST struct ImVec2 p1, CONST struct ImVec2 p2, CONST struct ImVec2 p3, int num_segments);
|
||||||
CIMGUI_API void ImDrawList_PathRect(ImDrawList* list, CONST struct ImVec2 rect_min, CONST struct ImVec2 rect_max, float rounding, int rounding_corners);
|
CIMGUI_API void ImDrawList_PathRect(struct ImDrawList* list, CONST struct ImVec2 rect_min, CONST struct ImVec2 rect_max, float rounding, int rounding_corners_flags);
|
||||||
|
|
||||||
// Channels
|
// Channels
|
||||||
CIMGUI_API void ImDrawList_ChannelsSplit(ImDrawList* list, int channels_count);
|
CIMGUI_API void ImDrawList_ChannelsSplit(struct ImDrawList* list, int channels_count);
|
||||||
CIMGUI_API void ImDrawList_ChannelsMerge(ImDrawList* list);
|
CIMGUI_API void ImDrawList_ChannelsMerge(struct ImDrawList* list);
|
||||||
CIMGUI_API void ImDrawList_ChannelsSetCurrent(ImDrawList* list, int channel_index);
|
CIMGUI_API void ImDrawList_ChannelsSetCurrent(struct ImDrawList* list, int channel_index);
|
||||||
|
|
||||||
// Advanced
|
// Advanced
|
||||||
CIMGUI_API void ImDrawList_AddCallback(ImDrawList* list, ImDrawCallback callback, void* callback_data); // Your rendering function must check for 'UserCallback' in ImDrawCmd and call the function instead of rendering triangles.
|
CIMGUI_API void ImDrawList_AddCallback(struct ImDrawList* list, ImDrawCallback callback, void* callback_data); // Your rendering function must check for 'UserCallback' in ImDrawCmd and call the function instead of rendering triangles.
|
||||||
CIMGUI_API void ImDrawList_AddDrawCmd(ImDrawList* list); // This is useful if you need to forcefully create a new draw call (to allow for dependent rendering / blending). Otherwise primitives are merged into the same draw-call as much as possible
|
CIMGUI_API void ImDrawList_AddDrawCmd(struct ImDrawList* list); // This is useful if you need to forcefully create a new draw call (to allow for dependent rendering / blending). Otherwise primitives are merged into the same draw-call as much as possible
|
||||||
|
|
||||||
// Internal helpers
|
// Internal helpers
|
||||||
CIMGUI_API void ImDrawList_PrimReserve(ImDrawList* list, int idx_count, int vtx_count);
|
CIMGUI_API void ImDrawList_PrimReserve(struct ImDrawList* list, int idx_count, int vtx_count);
|
||||||
CIMGUI_API void ImDrawList_PrimRect(ImDrawList* list, CONST struct ImVec2 a, CONST struct ImVec2 b, ImU32 col);
|
CIMGUI_API void ImDrawList_PrimRect(struct ImDrawList* list, CONST struct ImVec2 a, CONST struct ImVec2 b, ImU32 col);
|
||||||
CIMGUI_API void ImDrawList_PrimRectUV(ImDrawList* list, CONST struct ImVec2 a, CONST struct ImVec2 b, CONST struct ImVec2 uv_a, CONST struct ImVec2 uv_b, ImU32 col);
|
CIMGUI_API void ImDrawList_PrimRectUV(struct ImDrawList* list, CONST struct ImVec2 a, CONST struct ImVec2 b, CONST struct ImVec2 uv_a, CONST struct ImVec2 uv_b, ImU32 col);
|
||||||
CIMGUI_API void ImDrawList_PrimQuadUV(ImDrawList* list,CONST struct ImVec2 a, CONST struct ImVec2 b, CONST struct ImVec2 c, CONST struct ImVec2 d, CONST struct ImVec2 uv_a, CONST struct ImVec2 uv_b, CONST struct ImVec2 uv_c, CONST struct ImVec2 uv_d, ImU32 col);
|
CIMGUI_API void ImDrawList_PrimQuadUV(struct ImDrawList* list,CONST struct ImVec2 a, CONST struct ImVec2 b, CONST struct ImVec2 c, CONST struct ImVec2 d, CONST struct ImVec2 uv_a, CONST struct ImVec2 uv_b, CONST struct ImVec2 uv_c, CONST struct ImVec2 uv_d, ImU32 col);
|
||||||
CIMGUI_API void ImDrawList_PrimVtx(ImDrawList* list, CONST struct ImVec2 pos, CONST struct ImVec2 uv, ImU32 col);
|
CIMGUI_API void ImDrawList_PrimWriteVtx(struct ImDrawList* list, CONST struct ImVec2 pos, CONST struct ImVec2 uv, ImU32 col);
|
||||||
CIMGUI_API void ImDrawList_PrimWriteVtx(ImDrawList* list, CONST struct ImVec2 pos, CONST struct ImVec2 uv, ImU32 col);
|
CIMGUI_API void ImDrawList_PrimWriteIdx(struct ImDrawList* list, ImDrawIdx idx);
|
||||||
CIMGUI_API void ImDrawList_PrimWriteIdx(ImDrawList* list, ImDrawIdx idx);
|
CIMGUI_API void ImDrawList_PrimVtx(struct ImDrawList* list, CONST struct ImVec2 pos, CONST struct ImVec2 uv, ImU32 col);
|
||||||
CIMGUI_API void ImDrawList_UpdateClipRect(ImDrawList* list);
|
CIMGUI_API void ImDrawList_UpdateClipRect(struct ImDrawList* list);
|
||||||
CIMGUI_API void ImDrawList_UpdateTextureID(ImDrawList* list);
|
CIMGUI_API void ImDrawList_UpdateTextureID(struct ImDrawList* list);
|
||||||
|
|
||||||
|
// ImGuiListClipper
|
||||||
|
CIMGUI_API void ImGuiListClipper_Begin(struct ImGuiListClipper* clipper, int count, float items_height);
|
||||||
|
CIMGUI_API void ImGuiListClipper_End(struct ImGuiListClipper* clipper);
|
||||||
|
CIMGUI_API bool ImGuiListClipper_Step(struct ImGuiListClipper* clipper);
|
||||||
|
CIMGUI_API int ImGuiListClipper_GetDisplayStart(struct ImGuiListClipper* clipper);
|
||||||
|
CIMGUI_API int ImGuiListClipper_GetDisplayEnd(struct ImGuiListClipper* clipper);
|
||||||
|
|
||||||
|
// ImGuiTextFilter
|
||||||
|
CIMGUI_API void ImGuiTextFilter_Init(struct ImGuiTextFilter* filter, const char* default_filter);
|
||||||
|
CIMGUI_API void ImGuiTextFilter_Clear(struct ImGuiTextFilter* filter);
|
||||||
|
CIMGUI_API bool ImGuiTextFilter_Draw(struct ImGuiTextFilter* filter, const char* label, float width);
|
||||||
|
CIMGUI_API bool ImGuiTextFilter_PassFilter(struct ImGuiTextFilter* filter, const char* text, const char* text_end);
|
||||||
|
CIMGUI_API bool ImGuiTextFilter_IsActive(struct ImGuiTextFilter* filter);
|
||||||
|
CIMGUI_API void ImGuiTextFilter_Build(struct ImGuiTextFilter* filter);
|
||||||
|
|
||||||
|
// ImGuiTextEditCallbackData
|
||||||
|
CIMGUI_API void ImGuiTextEditCallbackData_DeleteChars(struct ImGuiTextEditCallbackData* data, int pos, int bytes_count);
|
||||||
|
CIMGUI_API void ImGuiTextEditCallbackData_InsertChars(struct ImGuiTextEditCallbackData* data, int pos, const char* text, const char* text_end);
|
||||||
|
CIMGUI_API bool ImGuiTextEditCallbackData_HasSelection(struct ImGuiTextEditCallbackData* data);
|
||||||
|
|
||||||
|
// ImGuiStorage
|
||||||
|
CIMGUI_API void ImGuiStorage_Init(struct ImGuiStorage* storage);
|
||||||
|
CIMGUI_API void ImGuiStorage_Clear(struct ImGuiStorage* storage);
|
||||||
|
CIMGUI_API int ImGuiStorage_GetInt(struct ImGuiStorage* storage, ImGuiID key, int default_val);
|
||||||
|
CIMGUI_API void ImGuiStorage_SetInt(struct ImGuiStorage* storage, ImGuiID key, int val);
|
||||||
|
CIMGUI_API bool ImGuiStorage_GetBool(struct ImGuiStorage* storage, ImGuiID key, bool default_val);
|
||||||
|
CIMGUI_API void ImGuiStorage_SetBool(struct ImGuiStorage* storage, ImGuiID key, bool val);
|
||||||
|
CIMGUI_API float ImGuiStorage_GetFloat(struct ImGuiStorage* storage, ImGuiID key, float default_val);
|
||||||
|
CIMGUI_API void ImGuiStorage_SetFloat(struct ImGuiStorage* storage, ImGuiID key, float val);
|
||||||
|
CIMGUI_API void* ImGuiStorage_GetVoidPtr(struct ImGuiStorage* storage, ImGuiID key);
|
||||||
|
CIMGUI_API void ImGuiStorage_SetVoidPtr(struct ImGuiStorage* storage, ImGuiID key, void* val);
|
||||||
|
CIMGUI_API int* ImGuiStorage_GetIntRef(struct ImGuiStorage* storage, ImGuiID key, int default_val);
|
||||||
|
CIMGUI_API bool* ImGuiStorage_GetBoolRef(struct ImGuiStorage* storage, ImGuiID key, bool default_val);
|
||||||
|
CIMGUI_API float* ImGuiStorage_GetFloatRef(struct ImGuiStorage* storage, ImGuiID key, float default_val);
|
||||||
|
CIMGUI_API void** ImGuiStorage_GetVoidPtrRef(struct ImGuiStorage* storage, ImGuiID key, void* default_val);
|
||||||
|
CIMGUI_API void ImGuiStorage_SetAllInt(struct ImGuiStorage* storage, int val);
|
||||||
|
@@ -8,13 +8,19 @@ EndProject
|
|||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
Debug|Win32 = Debug|Win32
|
Debug|Win32 = Debug|Win32
|
||||||
|
Debug|x64 = Debug|x64
|
||||||
Release|Win32 = Release|Win32
|
Release|Win32 = Release|Win32
|
||||||
|
Release|x64 = Release|x64
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
{EDE48926-0595-4488-B1A0-32CA71397271}.Debug|Win32.ActiveCfg = Debug|Win32
|
{EDE48926-0595-4488-B1A0-32CA71397271}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||||
{EDE48926-0595-4488-B1A0-32CA71397271}.Debug|Win32.Build.0 = Debug|Win32
|
{EDE48926-0595-4488-B1A0-32CA71397271}.Debug|Win32.Build.0 = Debug|Win32
|
||||||
|
{EDE48926-0595-4488-B1A0-32CA71397271}.Debug|x64.ActiveCfg = Debug|x64
|
||||||
|
{EDE48926-0595-4488-B1A0-32CA71397271}.Debug|x64.Build.0 = Debug|x64
|
||||||
{EDE48926-0595-4488-B1A0-32CA71397271}.Release|Win32.ActiveCfg = Release|Win32
|
{EDE48926-0595-4488-B1A0-32CA71397271}.Release|Win32.ActiveCfg = Release|Win32
|
||||||
{EDE48926-0595-4488-B1A0-32CA71397271}.Release|Win32.Build.0 = Release|Win32
|
{EDE48926-0595-4488-B1A0-32CA71397271}.Release|Win32.Build.0 = Release|Win32
|
||||||
|
{EDE48926-0595-4488-B1A0-32CA71397271}.Release|x64.ActiveCfg = Release|x64
|
||||||
|
{EDE48926-0595-4488-B1A0-32CA71397271}.Release|x64.Build.0 = Release|x64
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
|
@@ -5,10 +5,18 @@
|
|||||||
<Configuration>Debug</Configuration>
|
<Configuration>Debug</Configuration>
|
||||||
<Platform>Win32</Platform>
|
<Platform>Win32</Platform>
|
||||||
</ProjectConfiguration>
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug|x64">
|
||||||
|
<Configuration>Debug</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
<ProjectConfiguration Include="Release|Win32">
|
<ProjectConfiguration Include="Release|Win32">
|
||||||
<Configuration>Release</Configuration>
|
<Configuration>Release</Configuration>
|
||||||
<Platform>Win32</Platform>
|
<Platform>Win32</Platform>
|
||||||
</ProjectConfiguration>
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release|x64">
|
||||||
|
<Configuration>Release</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<PropertyGroup Label="Globals">
|
<PropertyGroup Label="Globals">
|
||||||
<ProjectGuid>{EDE48926-0595-4488-B1A0-32CA71397271}</ProjectGuid>
|
<ProjectGuid>{EDE48926-0595-4488-B1A0-32CA71397271}</ProjectGuid>
|
||||||
@@ -22,6 +30,12 @@
|
|||||||
<PlatformToolset>v140</PlatformToolset>
|
<PlatformToolset>v140</PlatformToolset>
|
||||||
<CharacterSet>Unicode</CharacterSet>
|
<CharacterSet>Unicode</CharacterSet>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||||
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v140</PlatformToolset>
|
||||||
|
<CharacterSet>Unicode</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||||
<UseDebugLibraries>false</UseDebugLibraries>
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
@@ -29,22 +43,41 @@
|
|||||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
<CharacterSet>Unicode</CharacterSet>
|
<CharacterSet>Unicode</CharacterSet>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||||
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v140</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
<CharacterSet>Unicode</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||||
<ImportGroup Label="ExtensionSettings">
|
<ImportGroup Label="ExtensionSettings">
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
|
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
</ImportGroup>
|
||||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
|
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
</ImportGroup>
|
||||||
<PropertyGroup Label="UserMacros" />
|
<PropertyGroup Label="UserMacros" />
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
<LinkIncremental>true</LinkIncremental>
|
<LinkIncremental>true</LinkIncremental>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||||
|
<LinkIncremental>true</LinkIncremental>
|
||||||
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
<LinkIncremental>false</LinkIncremental>
|
<LinkIncremental>false</LinkIncremental>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
</PropertyGroup>
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
<ClCompile>
|
<ClCompile>
|
||||||
<PrecompiledHeader>
|
<PrecompiledHeader>
|
||||||
@@ -58,6 +91,19 @@
|
|||||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
</Link>
|
</Link>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<PrecompiledHeader>
|
||||||
|
</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;CIMGUI_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<SubSystem>Windows</SubSystem>
|
||||||
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
<ClCompile>
|
<ClCompile>
|
||||||
<WarningLevel>Level3</WarningLevel>
|
<WarningLevel>Level3</WarningLevel>
|
||||||
@@ -67,6 +113,27 @@
|
|||||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;CIMGUI_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;CIMGUI_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<SubSystem>Windows</SubSystem>
|
||||||
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PrecompiledHeader>
|
||||||
|
</PrecompiledHeader>
|
||||||
|
<Optimization>MaxSpeed</Optimization>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;CIMGUI_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<SubSystem>Windows</SubSystem>
|
<SubSystem>Windows</SubSystem>
|
||||||
@@ -82,6 +149,7 @@
|
|||||||
<ClCompile Include="cimgui.cpp" />
|
<ClCompile Include="cimgui.cpp" />
|
||||||
<ClCompile Include="drawList.cpp" />
|
<ClCompile Include="drawList.cpp" />
|
||||||
<ClCompile Include="fontAtlas.cpp" />
|
<ClCompile Include="fontAtlas.cpp" />
|
||||||
|
<ClCompile Include="listClipper.cpp" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClInclude Include="..\imgui\imgui_internal.h" />
|
<ClInclude Include="..\imgui\imgui_internal.h" />
|
||||||
|
@@ -33,6 +33,9 @@
|
|||||||
<ClCompile Include="..\imgui\imgui_demo.cpp">
|
<ClCompile Include="..\imgui\imgui_demo.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
<ClCompile Include="listClipper.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClInclude Include="cimgui.h">
|
<ClInclude Include="cimgui.h">
|
||||||
|
@@ -37,6 +37,11 @@ CIMGUI_API void ImDrawData_DeIndexAllBuffers(ImDrawData* drawData)
|
|||||||
return drawData->DeIndexAllBuffers();
|
return drawData->DeIndexAllBuffers();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CIMGUI_API void ImDrawData_ScaleClipRects(ImDrawData* drawData, struct ImVec2 sc)
|
||||||
|
{
|
||||||
|
return drawData->ScaleClipRects(sc);
|
||||||
|
}
|
||||||
|
|
||||||
CIMGUI_API void ImDrawList_Clear(ImDrawList* list)
|
CIMGUI_API void ImDrawList_Clear(ImDrawList* list)
|
||||||
{
|
{
|
||||||
return list->Clear();
|
return list->Clear();
|
||||||
@@ -47,9 +52,9 @@ CIMGUI_API void ImDrawList_ClearFreeMemory(ImDrawList* list)
|
|||||||
return list->ClearFreeMemory();
|
return list->ClearFreeMemory();
|
||||||
}
|
}
|
||||||
|
|
||||||
CIMGUI_API void ImDrawList_PushClipRect(ImDrawList* list, CONST struct ImVec4 clip_rect)
|
CIMGUI_API void ImDrawList_PushClipRect(ImDrawList* list, struct ImVec2 clip_rect_min, struct ImVec2 clip_rect_max, bool intersect_with_current_clip_rect)
|
||||||
{
|
{
|
||||||
return list->PushClipRect(clip_rect);
|
return list->PushClipRect(clip_rect_min,clip_rect_max,intersect_with_current_clip_rect);
|
||||||
}
|
}
|
||||||
|
|
||||||
CIMGUI_API void ImDrawList_PushClipRectFullScreen(ImDrawList* list)
|
CIMGUI_API void ImDrawList_PushClipRectFullScreen(ImDrawList* list)
|
||||||
@@ -77,14 +82,14 @@ CIMGUI_API void ImDrawList_AddLine(ImDrawList* list, CONST struct ImVec2 a, CONS
|
|||||||
return list->AddLine(a, b, col, thickness);
|
return list->AddLine(a, b, col, thickness);
|
||||||
}
|
}
|
||||||
|
|
||||||
CIMGUI_API void ImDrawList_AddRect(ImDrawList* list, CONST struct ImVec2 a, CONST struct ImVec2 b, ImU32 col, float rounding, int rounding_corners, float thickness)
|
CIMGUI_API void ImDrawList_AddRect(ImDrawList* list, CONST struct ImVec2 a, CONST struct ImVec2 b, ImU32 col, float rounding, int rounding_corners_flags, float thickness)
|
||||||
{
|
{
|
||||||
return list->AddRect(a, b, col, rounding, rounding_corners, thickness);
|
return list->AddRect(a, b, col, rounding, rounding_corners_flags, thickness);
|
||||||
}
|
}
|
||||||
|
|
||||||
CIMGUI_API void ImDrawList_AddRectFilled(ImDrawList* list, CONST struct ImVec2 a, CONST struct ImVec2 b, ImU32 col, float rounding, int rounding_corners)
|
CIMGUI_API void ImDrawList_AddRectFilled(ImDrawList* list, CONST struct ImVec2 a, CONST struct ImVec2 b, ImU32 col, float rounding, int rounding_corners_flags)
|
||||||
{
|
{
|
||||||
return list->AddRectFilled(a, b, col, rounding, rounding_corners);
|
return list->AddRectFilled(a, b, col, rounding, rounding_corners_flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
CIMGUI_API void ImDrawList_AddRectFilledMultiColor(ImDrawList* list, CONST struct ImVec2 a, CONST struct ImVec2 b, ImU32 col_upr_left, ImU32 col_upr_right, ImU32 col_bot_right, ImU32 col_bot_left)
|
CIMGUI_API void ImDrawList_AddRectFilledMultiColor(ImDrawList* list, CONST struct ImVec2 a, CONST struct ImVec2 b, ImU32 col_upr_left, ImU32 col_upr_right, ImU32 col_bot_right, ImU32 col_bot_left)
|
||||||
@@ -92,6 +97,16 @@ CIMGUI_API void ImDrawList_AddRectFilledMultiColor(ImDrawList* list, CONST struc
|
|||||||
return list->AddRectFilledMultiColor(a, b, col_upr_left, col_upr_right, col_bot_right, col_bot_left);
|
return list->AddRectFilledMultiColor(a, b, col_upr_left, col_upr_right, col_bot_right, col_bot_left);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CIMGUI_API void ImDrawList_AddQuad(ImDrawList* list, CONST struct ImVec2 a, CONST struct ImVec2 b, CONST struct ImVec2 c, CONST struct ImVec2 d, ImU32 col, float thickness)
|
||||||
|
{
|
||||||
|
return list->AddQuad(a, b, c, d, col, thickness);
|
||||||
|
}
|
||||||
|
|
||||||
|
CIMGUI_API void ImDrawList_AddQuadFilled(ImDrawList* list, CONST struct ImVec2 a, CONST struct ImVec2 b, CONST struct ImVec2 c, CONST struct ImVec2 d, ImU32 col)
|
||||||
|
{
|
||||||
|
return list->AddQuadFilled(a, b, c, d, col);
|
||||||
|
}
|
||||||
|
|
||||||
CIMGUI_API void ImDrawList_AddTriangle(ImDrawList* list, CONST struct ImVec2 a, CONST struct ImVec2 b, CONST struct ImVec2 c, ImU32 col, float thickness)
|
CIMGUI_API void ImDrawList_AddTriangle(ImDrawList* list, CONST struct ImVec2 a, CONST struct ImVec2 b, CONST struct ImVec2 c, ImU32 col, float thickness)
|
||||||
{
|
{
|
||||||
return list->AddTriangle(a,b,c,col,thickness);
|
return list->AddTriangle(a,b,c,col,thickness);
|
||||||
@@ -122,9 +137,14 @@ CIMGUI_API void ImDrawList_AddTextExt(ImDrawList* list, CONST ImFont* font, floa
|
|||||||
return list->AddText(font, font_size, pos, col, text_begin, text_end, wrap_width, cpu_fine_clip_rect);
|
return list->AddText(font, font_size, pos, col, text_begin, text_end, wrap_width, cpu_fine_clip_rect);
|
||||||
}
|
}
|
||||||
|
|
||||||
CIMGUI_API void ImDrawList_AddImage(ImDrawList* list, ImTextureID user_texture_id, CONST struct ImVec2 a, CONST struct ImVec2 b, CONST struct ImVec2 uv0, CONST struct ImVec2 uv1, ImU32 col)
|
CIMGUI_API void ImDrawList_AddImage(ImDrawList* list, ImTextureID user_texture_id, CONST struct ImVec2 a, CONST struct ImVec2 b, CONST struct ImVec2 uv_a, CONST struct ImVec2 uv_b, ImU32 col)
|
||||||
{
|
{
|
||||||
return list->AddImage(user_texture_id, a, b, uv0, uv1, col);
|
return list->AddImage(user_texture_id, a, b, uv_a, uv_b, col);
|
||||||
|
}
|
||||||
|
|
||||||
|
CIMGUI_API void ImDrawList_AddImageQuad(struct ImDrawList* list, ImTextureID user_texture_id, CONST struct 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)
|
||||||
|
{
|
||||||
|
return list->AddImageQuad(user_texture_id, a, b, c, d, uv_a, uv_b, uv_c, uv_d, col);
|
||||||
}
|
}
|
||||||
|
|
||||||
CIMGUI_API void ImDrawList_AddPolyline(ImDrawList* list, CONST ImVec2* points, CONST int num_points, ImU32 col, bool closed, float thickness, bool anti_aliased)
|
CIMGUI_API void ImDrawList_AddPolyline(ImDrawList* list, CONST ImVec2* points, CONST int num_points, ImU32 col, bool closed, float thickness, bool anti_aliased)
|
||||||
@@ -157,9 +177,9 @@ CIMGUI_API void ImDrawList_PathLineToMergeDuplicate(ImDrawList* list, CONST stru
|
|||||||
return list->PathLineToMergeDuplicate(pos);
|
return list->PathLineToMergeDuplicate(pos);
|
||||||
}
|
}
|
||||||
|
|
||||||
CIMGUI_API void ImDrawList_PathFill(ImDrawList* list, ImU32 col)
|
CIMGUI_API void ImDrawList_PathFillConvex(ImDrawList* list, ImU32 col)
|
||||||
{
|
{
|
||||||
return list->PathFill(col);
|
return list->PathFillConvex(col);
|
||||||
}
|
}
|
||||||
|
|
||||||
CIMGUI_API void ImDrawList_PathStroke(ImDrawList* list, ImU32 col, bool closed, float thickness)
|
CIMGUI_API void ImDrawList_PathStroke(ImDrawList* list, ImU32 col, bool closed, float thickness)
|
||||||
@@ -182,9 +202,9 @@ CIMGUI_API void ImDrawList_PathBezierCurveTo(ImDrawList* list, CONST struct ImVe
|
|||||||
return list->PathBezierCurveTo(p1, p2, p3, num_segments);
|
return list->PathBezierCurveTo(p1, p2, p3, num_segments);
|
||||||
}
|
}
|
||||||
|
|
||||||
CIMGUI_API void ImDrawList_PathRect(ImDrawList* list, CONST struct ImVec2 rect_min, CONST struct ImVec2 rect_max, float rounding, int rounding_corners)
|
CIMGUI_API void ImDrawList_PathRect(ImDrawList* list, CONST struct ImVec2 rect_min, CONST struct ImVec2 rect_max, float rounding, int rounding_corners_flags)
|
||||||
{
|
{
|
||||||
return list->PathRect(rect_min, rect_max, rounding, rounding_corners);
|
return list->PathRect(rect_min, rect_max, rounding, rounding_corners_flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
CIMGUI_API void ImDrawList_ChannelsSplit(ImDrawList* list, int channels_count)
|
CIMGUI_API void ImDrawList_ChannelsSplit(ImDrawList* list, int channels_count)
|
||||||
|
@@ -2,6 +2,11 @@
|
|||||||
#include "../imgui/imgui.h"
|
#include "../imgui/imgui.h"
|
||||||
#include "cimgui.h"
|
#include "cimgui.h"
|
||||||
|
|
||||||
|
CIMGUI_API void ImFontConfig_DefaultConstructor(ImFontConfig* config)
|
||||||
|
{
|
||||||
|
*config = ImFontConfig();
|
||||||
|
}
|
||||||
|
|
||||||
CIMGUI_API void ImFontAtlas_GetTexDataAsRGBA32(ImFontAtlas* atlas, unsigned char** out_pixels, int* out_width, int* out_height, int* out_bytes_per_pixel)
|
CIMGUI_API void ImFontAtlas_GetTexDataAsRGBA32(ImFontAtlas* atlas, unsigned char** out_pixels, int* out_width, int* out_height, int* out_bytes_per_pixel)
|
||||||
{
|
{
|
||||||
atlas->GetTexDataAsRGBA32(out_pixels, out_width, out_height, out_bytes_per_pixel);
|
atlas->GetTexDataAsRGBA32(out_pixels, out_width, out_height, out_bytes_per_pixel);
|
||||||
@@ -12,9 +17,9 @@ CIMGUI_API void ImFontAtlas_GetTexDataAsAlpha8(ImFontAtlas* atlas, unsigned char
|
|||||||
atlas->GetTexDataAsAlpha8(out_pixels, out_width, out_height, out_bytes_per_pixel);
|
atlas->GetTexDataAsAlpha8(out_pixels, out_width, out_height, out_bytes_per_pixel);
|
||||||
}
|
}
|
||||||
|
|
||||||
CIMGUI_API void ImFontAtlas_SetTexID(ImFontAtlas* atlas, void* tex)
|
CIMGUI_API void ImFontAtlas_SetTexID(ImFontAtlas* atlas, ImTextureID id)
|
||||||
{
|
{
|
||||||
atlas->TexID = tex;
|
atlas->TexID = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
CIMGUI_API ImFont* ImFontAtlas_AddFont(ImFontAtlas* atlas, CONST ImFontConfig* font_cfg)
|
CIMGUI_API ImFont* ImFontAtlas_AddFont(ImFontAtlas* atlas, CONST ImFontConfig* font_cfg)
|
||||||
@@ -56,3 +61,33 @@ CIMGUI_API void ImFontAtlas_Clear(ImFontAtlas* atlas)
|
|||||||
{
|
{
|
||||||
return atlas->Clear();
|
return atlas->Clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CIMGUI_API CONST ImWchar* ImFontAtlas_GetGlyphRangesDefault(struct ImFontAtlas* atlas)
|
||||||
|
{
|
||||||
|
return atlas->GetGlyphRangesDefault();
|
||||||
|
}
|
||||||
|
|
||||||
|
CIMGUI_API CONST ImWchar* ImFontAtlas_GetGlyphRangesKorean(struct ImFontAtlas* atlas)
|
||||||
|
{
|
||||||
|
return atlas->GetGlyphRangesKorean();
|
||||||
|
}
|
||||||
|
|
||||||
|
CIMGUI_API CONST ImWchar* ImFontAtlas_GetGlyphRangesJapanese(struct ImFontAtlas* atlas)
|
||||||
|
{
|
||||||
|
return atlas->GetGlyphRangesJapanese();
|
||||||
|
}
|
||||||
|
|
||||||
|
CIMGUI_API CONST ImWchar* ImFontAtlas_GetGlyphRangesChinese(struct ImFontAtlas* atlas)
|
||||||
|
{
|
||||||
|
return atlas->GetGlyphRangesChinese();
|
||||||
|
}
|
||||||
|
|
||||||
|
CIMGUI_API CONST ImWchar* ImFontAtlas_GetGlyphRangesCyrillic(struct ImFontAtlas* atlas)
|
||||||
|
{
|
||||||
|
return atlas->GetGlyphRangesCyrillic();
|
||||||
|
}
|
||||||
|
|
||||||
|
CIMGUI_API CONST ImWchar* ImFontAtlas_GetGlyphRangesThai(struct ImFontAtlas* atlas)
|
||||||
|
{
|
||||||
|
return atlas->GetGlyphRangesThai();
|
||||||
|
}
|
27
cimgui/listClipper.cpp
Normal file
27
cimgui/listClipper.cpp
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
#include "../imgui/imgui.h"
|
||||||
|
#include "cimgui.h"
|
||||||
|
|
||||||
|
CIMGUI_API void ImGuiListClipper_Begin(ImGuiListClipper* clipper, int count, float items_height)
|
||||||
|
{
|
||||||
|
clipper->Begin(count, items_height);
|
||||||
|
}
|
||||||
|
|
||||||
|
CIMGUI_API void ImGuiListClipper_End(ImGuiListClipper* clipper)
|
||||||
|
{
|
||||||
|
clipper->End();
|
||||||
|
}
|
||||||
|
|
||||||
|
CIMGUI_API bool ImGuiListClipper_Step(ImGuiListClipper* clipper)
|
||||||
|
{
|
||||||
|
return clipper->Step();
|
||||||
|
}
|
||||||
|
|
||||||
|
CIMGUI_API int ImGuiListClipper_GetDisplayStart(ImGuiListClipper* clipper)
|
||||||
|
{
|
||||||
|
return clipper->DisplayStart;
|
||||||
|
}
|
||||||
|
|
||||||
|
CIMGUI_API int ImGuiListClipper_GetDisplayEnd(ImGuiListClipper* clipper)
|
||||||
|
{
|
||||||
|
return clipper->DisplayEnd;
|
||||||
|
}
|
2
imgui
2
imgui
Submodule imgui updated: 95cbcdca3f...5e1caaaef3
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 65 KiB |
Reference in New Issue
Block a user