27 lines
2.6 KiB
C++
27 lines
2.6 KiB
C++
#include "imgui.h"
|
|
#define IMGUI_DEFINE_MATH_OPERATORS
|
|
#define IMGUI_DEFINE_PLACEMENT_NEW
|
|
//#include "imgui_internal.h"
|
|
//#include "../../ui/TextureBean.h"
|
|
//#include "../../ui/UIBean.h"
|
|
namespace ImGui
|
|
{
|
|
IMGUI_API bool ToggleButton(const char* str_id, bool isSelect, bool ctrlAble = true);
|
|
IMGUI_API bool ToggleButtonText(const char* str_id, bool isSelect, bool ctrlAble = true);
|
|
IMGUI_API bool ImageButtonEx(ImTextureID user_texture_id, const ImVec2& size, const ImVec2& uv0, const ImVec2& uv1, int frame_padding, const ImVec4& bg_col= ImVec4(0, 0, 0, 0), const ImVec4& tint_col= ImVec4(1, 1, 1, 1), ImGuiButtonFlags flags= 0);
|
|
//IMGUI_API void Powder(MotionDrawAssist& ass);
|
|
//IMGUI_API void Powder1500V1(MotionDrawAssist& ass);
|
|
IMGUI_API bool BeginPopupModalEx(const char* name, bool* p_open, ImGuiWindowFlags flags, const ImVec2& size);
|
|
IMGUI_API bool InputScalarEx(const char* label, ImGuiDataType data_type, void* v, const void* step = NULL, const void* step_fast = NULL, const char* format = NULL, ImGuiInputTextFlags extra_flags = 0, const void* min = NULL, const void* max = NULL);
|
|
IMGUI_API bool InputIntEx(const char* label, int* v, int step = 1, int step_fast = 100, ImGuiInputTextFlags extra_flags = 0, const void* min = NULL, const void* max = NULL);
|
|
IMGUI_API bool InputFloatEx(const char* label, float* v, float step = 0.0f, float step_fast = 0.0f, const char* format = "%.3f", ImGuiInputTextFlags extra_flags = 0, const void* min = NULL, const void* max = NULL);
|
|
IMGUI_API bool InputFloatEx(const char* label, float* v, float step, float step_fast, int decimal_precision, ImGuiInputTextFlags extra_flags = 0, const void* min = NULL, const void* max = NULL);
|
|
IMGUI_API bool InputDoubleEx(const char* label, double* v, double step = 0.0f, double step_fast = 0.0f, const char* format = "%.6f", ImGuiInputTextFlags extra_flags = 0, const void* min = NULL, const void* max = NULL);
|
|
IMGUI_API void ImageCross(ImTextureID user_texture_id, const ImVec2& size, const ImVec2& uv0, const ImVec2& uv1, const ImVec4& tint_col, const ImVec4& border_col, ImVec2& pot);
|
|
IMGUI_API bool InputScalarExFix(const char* label, ImGuiDataType data_type, void* v, const void* step = NULL, const void* step_fast = NULL, const char* format = NULL, ImGuiInputTextFlags extra_flags = 0, const void* min = NULL, const void* max = NULL);
|
|
IMGUI_API bool InputScalarFix(const char* label, ImGuiDataType data_type, void* p_data, const void* p_step, const void* p_step_fast, const char* format, ImGuiInputTextFlags flags);
|
|
IMGUI_API bool SemicolonCombo(const char* label, int* current_item, std::vector<std::string>& vec, int popup_max_height_in_items = -1);
|
|
};
|
|
|
|
|