Lines Matching defs:window

79 struct ImGuiWindow;                 // Storage for one window
80 struct ImGuiWindowTempData; // Temporary storage for one window (that's the data which in theory we could ditch at the end of the frame)
81 struct ImGuiWindowSettings; // Storage for window settings stored in .ini file (we keep one of those even if the actual window wasn't instanced during this session)
298 ImGuiButtonFlags_FlattenChildren = 1 << 5, // allow interactions even if a child window is overlapping
328 ImGuiColumnsFlags_NoForceWithinWindow = 1 << 3, // Disable forcing columns to fit within window
329 ImGuiColumnsFlags_GrowParentContentsSize= 1 << 4 // (WIP) Restore pre-1.51 behavior of extending the parent window contents size but _without affecting the columns width at all_. Will eventually remove.
348 // Transient per-window flags, reset at the beginning of the frame. For child window, inherited from parent on first Begin().
357 ImGuiItemFlags_SelectableDontClosePopup = 1 << 5, // false // MenuItem/Selectable() automatically closes current Popup window
694 ImGuiID SelectScopeId;// Best candidate window current selectable group ID
695 ImGuiWindow* Window; // Best candidate window
699 ImRect RectRel; // Best candidate bounding box in window relative space
768 float FontSize; // (Shortcut) == FontBaseSize * g.CurrentWindow->FontWindowScale == window->FontSize(). Text height for current window.
809 ImGuiWindow* MovingWindow; // Track the window we clicked on (in order to preserve focus). The actually window that is moved is generally MovingWindow->RootWindow.
820 ImGuiWindow* NavWindow; // Focused window for navigation. Could be called 'FocusWindow'
831 ImRect NavScoringRectScreen; // Rectangle used for scoring, in screen space. Based of window->DC.NavRefRectRel[], modified for directional navigation scoring.
833 ImGuiWindow* NavWindowingTarget; // When selecting a window (holding Menu+FocusPrev/Next, or equivalent of CTRL-TAB) this window is temporarily displayed front-most.
846 bool NavInitRequest; // Init request for appearing window to select first item
863 float DimBgRatio; // 0.0..1.0 animation when fading in a dimming background (for modal window and CTRL+TAB list)
1048 // Transient per-window data, reset at the beginning of the frame. This used to be called ImGuiDrawContext, hence the DC variable name in ImGuiWindow.
1055 ImVec2 CursorMaxPos; // Used to implicitly calculate the size of our contents, always growing during the frame. Turned into window->SizeContents at the beginning of next frame
1078 ImGuiLayoutType ParentLayoutType; // Layout type of parent window at the time of Begin()
1082 float ItemWidth; // == ItemWidthStack.back(). 0.0: default, >0.0: width in pixels, <0.0: align xx pixels to the right of window
1090 ImVec1 Indent; // Indentation / start position from left of window (increased by TreePush/TreePop, etc.)
1127 // Storage for one window
1137 ImVec2 SizeContents; // Size of contents (== extents reach of the drawing cursor) from previous frame. Include decoration, window title, border, menu, etc.
1143 ImGuiID MoveId; // == window->GetID("#MOVE")
1144 ImGuiID ChildId; // ID of corresponding item in parent window (for navigation to return from child window to parent window)
1152 bool WriteAccessed; // Set to true when any widget access the current window
1153 bool Collapsed; // Set when collapsing window to become only title-bar
1155 bool SkipItems; // Set when items can safely be all clipped (e.g. window not visible or collapsed)
1156 bool Appearing; // Set during the frame where the window is appearing (or re-appearing)
1158 bool HasCloseButton; // Set when the window has a close button (p_open != NULL)
1161 short BeginOrderWithinParent; // Order within immediate parent window, if we are a child window. Otherwise 0.
1163 ImGuiID PopupId; // ID in the popup stack when this window is used as a popup/menu (because we use generic Name/ID for recycling)
1168 int HiddenFramesRegular; // Hide the window for N frames
1169 int HiddenFramesForResize; // Hide the window for N frames while allowing items to be submitted so we can measure their size
1173 ImVec2 SetWindowPosVal; // store window position when using a non-zero Pivot (position set needs to be processed when we know the window size)
1174 ImVec2 SetWindowPosPivot; // store window pivot for positioning. ImVec2(0,0) when positioning from top-left corner; ImVec2(0.5f,0.5f) for centering; ImVec2(1,1) for bottom right.
1176 ImGuiWindowTempData DC; // Temporary per-window data, reset at the beginning of the frame. This used to be called ImGuiDrawContext, hence the "DC" variable name.
1179 ImRect OuterRectClipped; // = WindowRect just after setup in Begin(). == window->Rect() for root window.
1182 int LastFrameActive; // Last frame number the window was Active.
1187 float FontWindowScale; // User scale multiplier per-window
1192 ImGuiWindow* ParentWindow; // If we are a child _or_ popup window, this is pointing to our parent. Otherwise NULL.
1193 ImGuiWindow* RootWindow; // Point to ourself or first ancestor that is not a child window.
1194 ImGuiWindow* RootWindowForTitleBarHighlight; // Point to ourself or first ancestor which will display TitleBgActive color when this window is active.
1197 ImGuiWindow* NavLastChildNavWindow; // When going to the menu bar, we remember the child window we came from. (This could probably be made implicit if we kept g.Windows sorted by last focused including child window.)
1198 ImGuiID NavLastIds[ImGuiNavLayer_COUNT]; // Last known NavId for this window, per layer (0/1)
1199 ImRect NavRectRel[ImGuiNavLayer_COUNT]; // Reference rectangle, in window relative space
1220 // We don't use g.FontSize because the window may be != g.CurrentWidow.
1229 // Backup and restore just enough data to be able to use IsItemHovered() on item A after another B in the same window has overwritten the data.
1238 void Backup() { ImGuiWindow* window = GImGui->CurrentWindow; LastItemId = window->DC.LastItemId; LastItemStatusFlags = window->DC.LastItemStatusFlags; LastItemRect = window->DC.LastItemRect; LastItemDisplayRect = window->DC.LastItemDisplayRect; }
1239 void Restore() const { ImGuiWindow* window = GImGui->CurrentWindow; window->DC.LastItemId = LastItemId; window->DC.LastItemStatusFlags = LastItemStatusFlags; window->DC.LastItemRect = LastItemRect; window->DC.LastItemDisplayRect = LastItemDisplayRect; }
1314 // We should always have a CurrentWindow in the stack (there is an implicit "Debug" window)
1322 IMGUI_API void FocusWindow(ImGuiWindow* window);
1324 IMGUI_API void BringWindowToFocusFront(ImGuiWindow* window);
1325 IMGUI_API void BringWindowToDisplayFront(ImGuiWindow* window);
1326 IMGUI_API void BringWindowToDisplayBack(ImGuiWindow* window);
1327 IMGUI_API void UpdateWindowParentAndRootLinks(ImGuiWindow* window, ImGuiWindowFlags flags, ImGuiWindow* parent_window);
1328 IMGUI_API ImVec2 CalcWindowExpectedSize(ImGuiWindow* window);
1329 IMGUI_API bool IsWindowChildOf(ImGuiWindow* window, ImGuiWindow* potential_parent);
1330 IMGUI_API bool IsWindowNavFocusable(ImGuiWindow* window);
1331 IMGUI_API void SetWindowScrollX(ImGuiWindow* window, float new_scroll_x);
1332 IMGUI_API void SetWindowScrollY(ImGuiWindow* window, float new_scroll_y);
1333 IMGUI_API float GetWindowScrollMaxX(ImGuiWindow* window);
1334 IMGUI_API float GetWindowScrollMaxY(ImGuiWindow* window);
1335 IMGUI_API ImRect GetWindowAllowedExtentRect(ImGuiWindow* window);
1336 IMGUI_API void SetWindowPos(ImGuiWindow* window, const ImVec2& pos, ImGuiCond cond);
1337 IMGUI_API void SetWindowSize(ImGuiWindow* window, const ImVec2& size, ImGuiCond cond);
1338 IMGUI_API void SetWindowCollapsed(ImGuiWindow* window, bool collapsed, ImGuiCond cond);
1349 IMGUI_API void StartMouseMovingWindow(ImGuiWindow* window);
1355 IMGUI_API void MarkIniSettingsDirty(ImGuiWindow* window);
1365 IMGUI_API void SetActiveID(ImGuiID id, ImGuiWindow* window);
1366 IMGUI_API void SetFocusID(ImGuiID id, ImGuiWindow* window);
1379 IMGUI_API bool FocusableItemRegister(ImGuiWindow* window, ImGuiID id, bool tab_stop = true); // Return true if focus is requested
1380 IMGUI_API void FocusableItemUnregister(ImGuiWindow* window);
1395 IMGUI_API ImVec2 FindBestWindowPosForPopup(ImGuiWindow* window);
1399 IMGUI_API void NavInitWindow(ImGuiWindow* window, bool force_reinit);
1403 IMGUI_API void NavMoveRequestTryWrapping(ImGuiWindow* window, ImGuiNavMoveFlags move_flags);
1440 // NB: All position are in absolute pixels coordinates (we are never using window coordinates internally)