ImGui.CONST.WindowFlags

From GiderosMobile
Revision as of 21:44, 21 September 2024 by MoKaLux (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Available since: Gideros 2020.9
Value:
Defined by: ImGui.Core

Description

Window Flags

  • ImGui.WindowFlags_AlwaysAutoResize: resize every window to its content every frame
  • ImGui.WindowFlags_AlwaysHorizontalScrollbar: always show horizontal scrollbar (even if ContentSize.x < Size.x)
  • ImGui.WindowFlags_AlwaysUseWindowPadding: ensure child windows without border uses style.WindowPadding (ignored by default for non-bordered child windows, because more convenient)
  • ImGui.WindowFlags_AlwaysVerticalScrollbar: always show vertical scrollbar (even if ContentSize.y < Size.y)
  • ImGui.WindowFlags_HorizontalScrollbar: allow horizontal scrollbar to appear (off by default). You may use SetNextWindowContentSize(ImVec2(width,0.0f)); prior to calling Begin() to specify width. Read code in imgui_demo in the "Horizontal Scrolling" section
  • ImGui.WindowFlags_MenuBar: has a menu-bar
  • ImGui.WindowFlags_NoBackground: disable drawing background color (WindowBg, etc.) and outside border. Similar as using SetNextWindowBgAlpha(0.0f)
  • ImGui.WindowFlags_NoBringToFrontOnFocus: disable bringing window to front when taking focus (e.g. clicking on it or programmatically giving it focus)
  • ImGui.WindowFlags_NoCollapse: disable user collapsing window by double-clicking on it. Also referred to as Window Menu Button (e.g. within a docking node)
  • ImGui.WindowFlags_NoDecoration: a combination of ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoCollapse
  • ImGui.WindowFlags_NoFocusOnAppearing: disable taking focus when transitioning from hidden to visible state
  • ImGui.WindowFlags_NoInputs: a combination of ImGuiWindowFlags_NoMouseInputs | ImGuiWindowFlags_NoNavInputs | ImGuiWindowFlags_NoNavFocus
  • ImGui.WindowFlags_NoMouseInputs: disable catching mouse, hovering test with pass through
  • ImGui.WindowFlags_NoMove: disable user moving the window
  • ImGui.WindowFlags_NoNav: a combination of ImGuiWindowFlags_NoNavInputs | ImGuiWindowFlags_NoNavFocus
  • ImGui.WindowFlags_NoNavFocus: no focusing toward this window with gamepad/keyboard navigation (e.g. skipped by CTRL+TAB)
  • ImGui.WindowFlags_NoNavInputs: no gamepad/keyboard navigation within the window
  • ImGui.WindowFlags_None: default = 0
  • ImGui.WindowFlags_NoResize: disable user resizing with the lower-right grip
  • ImGui.WindowFlags_NoSavedSettings: never load/save settings in .ini file
  • ImGui.WindowFlags_NoScrollbar: disable scrollbars (window can still scroll with mouse or programmatically)
  • ImGui.WindowFlags_NoScrollWithMouse: disable user vertically scrolling with mouse wheel. On child window, mouse wheel will be forwarded to the parent unless NoScrollbar is also set
  • ImGui.WindowFlags_NoTitleBar: disable title-bar
  • ImGui.WindowFlags_UnsavedDocument: display a dot next to the title. When used in a tab/docking context, tab is selected when clicking the X + closure is not assumed (will wait for user to stop submitting the tab). Otherwise closure is assumed when pressing the X, so if you keep submitting the tab may reappear at end of tab bar



Dear ImGui