boolAccessed;// Set to true when any widget access the current window
boolCollapsed;// Set when collapsing window to become only title-bar
boolSkipItems;// == Visible && !Collapsed
intAutoFitFrames;
@ -1209,7 +1214,6 @@ public:
ImGuiIDGetID(constchar*str);
ImGuiIDGetID(constvoid*ptr);
voidAddToRenderList();
boolFocusItemRegister(boolis_active,booltab_stop=true);// Return true if focus is requested
voidFocusItemUnregister();
@ -1226,8 +1230,9 @@ public:
staticinlineImGuiWindow*GetCurrentWindow()
{
// If this ever crash it probably means that ImGui::NewFrame() hasn't been called. We should always have a CurrentWindow in the stack (there is an implicit "Debug" window)
ImGuiState&g=*GImGui;
IM_ASSERT(g.CurrentWindow!=NULL);// ImGui::NewFrame() hasn't been called yet?
draw_list.AddImage(tex_id,pos,pos+size,TEX_ATLAS_POS_MOUSE_CURSOR_BLACK*tex_uv_scale,(TEX_ATLAS_POS_MOUSE_CURSOR_BLACK+size)*tex_uv_scale,0xFF000000);// Black border
draw_list.AddImage(tex_id,pos,pos+size,TEX_ATLAS_POS_MOUSE_CURSOR_WHITE*tex_uv_scale,(TEX_ATLAS_POS_MOUSE_CURSOR_WHITE+size)*tex_uv_scale,0xFFFFFFFF);// White fill
g.CursorDrawList.AddImage(tex_id,pos,pos+size,TEX_ATLAS_POS_MOUSE_CURSOR_BLACK*tex_uv_scale,(TEX_ATLAS_POS_MOUSE_CURSOR_BLACK+size)*tex_uv_scale,0xFF000000);// Black border
g.CursorDrawList.AddImage(tex_id,pos,pos+size,TEX_ATLAS_POS_MOUSE_CURSOR_WHITE*tex_uv_scale,(TEX_ATLAS_POS_MOUSE_CURSOR_WHITE+size)*tex_uv_scale,0xFFFFFFFF);// White fill
IMGUI_APIboolIsItemHoveredRectOnly();// was the last item hovered by mouse? even if another item is active while we are hovering this.
IMGUI_APIboolIsItemActive();// was the last item active? (e.g. button being held, text field being edited- items that don't interact will always return false)
IMGUI_APIboolIsAnyItemActive();//
IMGUI_APIImVec2GetItemActiveDragDelta();// mouse delta from the time the item first got active
IMGUI_APIImVec2GetItemRectMin();// get bounding rect of last item
IMGUI_APIImVec2GetItemRectMax();// "
IMGUI_APIImVec2GetItemRectSize();// "
@ -369,8 +368,10 @@ namespace ImGui
IMGUI_APIboolIsMouseHoveringWindow();// is mouse hovering current window ("window" in API names always refer to current window)
IMGUI_APIboolIsMouseHoveringAnyWindow();// is mouse hovering any active imgui window
IMGUI_APIboolIsMouseHoveringRect(constImVec2&rect_min,constImVec2&rect_max);// is mouse hovering given bounding rect
IMGUI_APIboolIsMouseDragging(intbutton=0,floatlock_threshold=-1.0f);// is mouse dragging. if lock_threshold < -1.0f uses io.MouseDraggingThreshold.
IMGUI_APIboolIsPosHoveringAnyWindow(constImVec2&pos);// is given position hovering any active imgui window
IMGUI_APIImVec2GetMousePos();// shortcut to ImGui::GetIO().MousePos provided by user, to be consistent with other calls
IMGUI_APIImVec2GetMouseDragDelta(intbutton=0,floatlock_threshold=-1.0f);// dragging amount, also see: GetItemActiveDragDelta(). if lock_threshold < -1.0f uses io.MouseDraggingThreshold.
IMGUI_APIfloatGetTime();
IMGUI_APIintGetFrameCount();
IMGUI_APIconstchar*GetStyleColName(ImGuiColidx);
@ -580,6 +581,7 @@ struct ImGuiIO
constchar*LogFilename;// = "imgui_log.txt" // Path to .log file (default parameter to ImGui::LogToFile when no file is specified).
floatMouseDoubleClickTime;// = 0.30f // Time for a double-click, in seconds.
floatMouseDoubleClickMaxDist;// = 6.0f // Distance threshold to stay in to validate a double-click, in pixels.
floatMouseDragThreshold;// = 6.0f // Distance threshold before considering we are dragging
intKeyMap[ImGuiKey_COUNT];// <unset> // Map of indices into the KeysDown[512] entries array
void*UserData;// = NULL // Store your own data for retrieval by callbacks.
@ -649,6 +651,7 @@ struct ImGuiIO
boolMouseDoubleClicked[5];// Has mouse button been double-clicked?
boolMouseDownOwned[5];// Track if button was clicked inside a window. We don't request mouse capture from the application if click started outside ImGui bounds.
floatMouseDownTime[5];// Time the mouse button has been down
floatMouseDragMaxDistanceSqr[5];// Squared maximum distance of how much mouse has traveled from the click point
floatKeysDownTime[512];// Time the keyboard key has been down
IMGUI_APIImGuiIO();
@ -863,6 +866,7 @@ struct ImDrawList
ImDrawList(){Clear();}
IMGUI_APIvoidClear();
IMGUI_APIvoidClearFreeMemory();
IMGUI_APIvoidPushClipRect(constImVec4&clip_rect);// Scissoring. The values are x1, y1, x2, y2.