mirror of
https://github.com/Drezil/imgui.git
synced 2024-11-22 20:07:01 +00:00
Cleanup and TODO list items
This commit is contained in:
parent
447cc88e04
commit
3f85fe2fe7
15
imgui.cpp
15
imgui.cpp
@ -204,6 +204,8 @@
|
|||||||
- input: rework IO to be able to pass actual events to fix temporal aliasing issues.
|
- input: rework IO to be able to pass actual events to fix temporal aliasing issues.
|
||||||
- input: support track pad style scrolling & slider edit.
|
- input: support track pad style scrolling & slider edit.
|
||||||
- tooltip: move to fit within screen (e.g. when mouse cursor is right of the screen).
|
- tooltip: move to fit within screen (e.g. when mouse cursor is right of the screen).
|
||||||
|
- portability: big-endian test/support (github issue #81)
|
||||||
|
- misc: provide a way to compile out the entire implementation while providing a dummy API (e.g. #define IMGUI_DUMMY_IMPL
|
||||||
- misc: not thread-safe
|
- misc: not thread-safe
|
||||||
- misc: double-clicking on title bar to minimize isn't consistent, perhaps move to single-click on left-most collapse icon?
|
- misc: double-clicking on title bar to minimize isn't consistent, perhaps move to single-click on left-most collapse icon?
|
||||||
- style editor: add a button to output C code.
|
- style editor: add a button to output C code.
|
||||||
@ -233,9 +235,6 @@
|
|||||||
// Forward Declarations
|
// Forward Declarations
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
|
|
||||||
//namespace ImGui
|
|
||||||
//{
|
|
||||||
|
|
||||||
static bool ButtonBehaviour(const ImGuiAabb& bb, const ImGuiID& id, bool* out_hovered, bool* out_held, bool allow_key_modifiers, bool repeat = false);
|
static bool ButtonBehaviour(const ImGuiAabb& bb, const ImGuiID& id, bool* out_hovered, bool* out_held, bool allow_key_modifiers, bool repeat = false);
|
||||||
static void LogText(const ImVec2& ref_pos, const char* text, const char* text_end = NULL);
|
static void LogText(const ImVec2& ref_pos, const char* text, const char* text_end = NULL);
|
||||||
|
|
||||||
@ -257,8 +256,6 @@ static void FocusWindow(ImGuiWindow* window);
|
|||||||
static ImGuiWindow* FindWindow(const char* name);
|
static ImGuiWindow* FindWindow(const char* name);
|
||||||
static ImGuiWindow* FindHoveredWindow(ImVec2 pos, bool excluding_childs);
|
static ImGuiWindow* FindHoveredWindow(ImVec2 pos, bool excluding_childs);
|
||||||
|
|
||||||
//} // namespace ImGui
|
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// Platform dependent default implementations
|
// Platform dependent default implementations
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
@ -1139,9 +1136,6 @@ void ImGuiWindow::AddToRenderList()
|
|||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
//namespace ImGui
|
|
||||||
//{
|
|
||||||
|
|
||||||
void* ImGui::MemAlloc(size_t sz)
|
void* ImGui::MemAlloc(size_t sz)
|
||||||
{
|
{
|
||||||
return GImGui.IO.MemAllocFn(sz);
|
return GImGui.IO.MemAllocFn(sz);
|
||||||
@ -4183,9 +4177,6 @@ void ImGuiTextEditState::RenderTextScrolledClipped(ImFont font, float font_size,
|
|||||||
RenderText(pos+ImVec2(width-clip_end,0.0f), s);
|
RenderText(pos+ImVec2(width-clip_end,0.0f), s);
|
||||||
}
|
}
|
||||||
|
|
||||||
//namespace ImGui
|
|
||||||
//{
|
|
||||||
|
|
||||||
bool ImGui::InputFloat(const char* label, float *v, float step, float step_fast, int decimal_precision, ImGuiInputTextFlags extra_flags)
|
bool ImGui::InputFloat(const char* label, float *v, float step, float step_fast, int decimal_precision, ImGuiInputTextFlags extra_flags)
|
||||||
{
|
{
|
||||||
ImGuiState& g = GImGui;
|
ImGuiState& g = GImGui;
|
||||||
@ -5231,8 +5222,6 @@ void ImGui::Color(const char* prefix, unsigned int v)
|
|||||||
ImGui::ColorButton(col, true);
|
ImGui::ColorButton(col, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
//} // namespace ImGui
|
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// ImDrawList
|
// ImDrawList
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user