Lines Matching refs:ImGuiID
274 T* GetByKey(ImGuiID key) { int idx = Map.GetInt(key, -1); return (idx != -1) ? &Data[idx] : NULL; }
277 T* GetOrAddByKey(ImGuiID key) { int* p_idx = Map.GetIntRef(key, -1); if (*p_idx != -1) return &Data[*p_idx]; *p_idx = FreeIdx; return Add(); }
280 void Remove(ImGuiID key, const T* p) { Remove(key, GetIndex(p)); }
281 void Remove(ImGuiID key, ImPoolIdx idx) { Data[idx].~T(); *(int*)&Data[idx] = FreeIdx; FreeIdx = idx; Map.SetInt(key, -1); }
541 ImGuiID BackupActiveIdIsAlive;
563 ImGuiID ID; // widget id owning the text state
593 ImGuiID ID;
604 ImGuiID TypeHash; // == ImHashStr(TypeName, 0, 0)
616 ImGuiID PopupId; // Set on OpenPopup()
620 ImGuiID OpenParentId; // Set on OpenPopup(), we need this to differenciate multiple menu sets from each others (e.g. inside menu bar vs loose menu items)
637 ImGuiID ID;
693 ImGuiID ID; // Best candidate
694 ImGuiID SelectScopeId;// Best candidate window current selectable group ID
785 ImGuiID HoveredId; // Hovered widget
787 ImGuiID HoveredIdPreviousFrame;
790 ImGuiID ActiveId; // Active widget
791 ImGuiID ActiveIdPreviousFrame;
792 ImGuiID ActiveIdIsAlive; // Active widget has been seen this frame (we can't use a bool as the ActiveId may change within the frame)
806 ImGuiID LastActiveId; // Store the last non-zero ActiveId, useful for animation.
821 ImGuiID NavId; // Focused item for navigation
822 ImGuiID NavActivateId; // ~~ (g.ActiveId == 0) && IsNavInputPressed(ImGuiNavInput_Activate) ? NavId : 0, also set when calling ActivateItem()
823 ImGuiID NavActivateDownId; // ~~ IsNavInputDown(ImGuiNavInput_Activate) ? NavId : 0
824 ImGuiID NavActivatePressedId; // ~~ IsNavInputPressed(ImGuiNavInput_Activate) ? NavId : 0
825 ImGuiID NavInputId; // ~~ IsNavInputPressed(ImGuiNavInput_Input) ? NavId : 0
826 ImGuiID NavJustTabbedId; // Just tabbed to this id.
827 ImGuiID NavJustMovedToId; // Just navigated to this id (result of a successfully MoveRequest).
828 ImGuiID NavJustMovedToSelectScopeId; // Just navigated to this select scope id (result of a successfully MoveRequest).
829 ImGuiID NavNextActivateId; // Set by ActivateItem(), queued until next frame.
848 ImGuiID NavInitResultId;
875 ImGuiID DragDropTargetId;
878 ImGuiID DragDropAcceptIdCurr; // Target item id (set at the time of accepting the payload)
879 ImGuiID DragDropAcceptIdPrev; // Target item id from previous frame (we need to store this to allow for overlapping drag and drop targets)
892 ImGuiID ScalarAsInputTextId; // Temporary text input when CTRL+clicking on a slider, etc.
904 ImGuiID MultiSelectScopeId;
1063 ImGuiID LastItemId;
1131 ImGuiID ID; // == ImHash(Name)
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)
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)
1177 ImVector<ImGuiID> IDStack; // ID stack. ID are hashes seeded with the value at the top of the stack
1198 ImGuiID NavLastIds[ImGuiNavLayer_COUNT]; // Last known NavId for this window, per layer (0/1)
1214 ImGuiID GetID(const char* str, const char* str_end = NULL);
1215 ImGuiID GetID(const void* ptr);
1216 ImGuiID GetIDNoKeepAlive(const char* str, const char* str_end = NULL);
1217 ImGuiID GetIDNoKeepAlive(const void* ptr);
1218 ImGuiID GetIDFromRectangle(const ImRect& r_abs);
1232 ImGuiID LastItemId;
1261 ImGuiID ID;
1277 ImGuiID ID; // Zero for tab-bars used by docking
1278 ImGuiID SelectedTabId; // Selected tab
1279 ImGuiID NextSelectedTabId;
1280 ImGuiID VisibleTabId; // Can occasionally be != SelectedTabId (e.g. when previewing contents for CTRL+TAB preview)
1290 ImGuiID ReorderRequestTabId;
1320 IMGUI_API ImGuiWindow* FindWindowByID(ImGuiID id);
1357 IMGUI_API ImGuiWindowSettings* FindWindowSettings(ImGuiID id);
1362 inline ImGuiID GetItemID() { ImGuiContext& g = *GImGui; return g.CurrentWindow->DC.LastItemId; }
1363 inline ImGuiID GetActiveID() { ImGuiContext& g = *GImGui; return g.ActiveId; }
1364 inline ImGuiID GetFocusID() { ImGuiContext& g = *GImGui; return g.NavId; }
1365 IMGUI_API void SetActiveID(ImGuiID id, ImGuiWindow* window);
1366 IMGUI_API void SetFocusID(ImGuiID id, ImGuiWindow* window);
1368 IMGUI_API ImGuiID GetHoveredID();
1369 IMGUI_API void SetHoveredID(ImGuiID id);
1370 IMGUI_API void KeepAliveID(ImGuiID id);
1371 IMGUI_API void MarkItemEdited(ImGuiID id);
1376 IMGUI_API bool ItemAdd(const ImRect& bb, ImGuiID id, const ImRect* nav_bb = NULL);
1377 IMGUI_API bool ItemHoverable(const ImRect& bb, ImGuiID id);
1378 IMGUI_API bool IsClippedEx(const ImRect& bb, ImGuiID id, bool clip_even_when_logged);
1379 IMGUI_API bool FocusableItemRegister(ImGuiWindow* window, ImGuiID id, bool tab_stop = true); // Return true if focus is requested
1388 IMGUI_API void OpenPopupEx(ImGuiID id);
1391 IMGUI_API bool IsPopupOpen(ImGuiID id); // Test for id within current popup stack level (currently begin-ed into); this doesn't scan the whole popup stack!
1392 IMGUI_API bool BeginPopupEx(ImGuiID id, ImGuiWindowFlags extra_flags);
1407 IMGUI_API void ActivateItem(ImGuiID id); // Remotely activate a button, checkbox, tree node etc. given its unique ID. activation is queued and processed on the next frame when the item is encountered again.
1408 IMGUI_API void SetNavID(ImGuiID id, int nav_layer);
1409 IMGUI_API void SetNavIDWithRectRel(ImGuiID id, int nav_layer, const ImRect& rect_rel);
1418 IMGUI_API bool BeginDragDropTargetCustom(const ImRect& bb, ImGuiID id);
1429 IMGUI_API ImGuiTabItem* TabBarFindTabByID(ImGuiTabBar* tab_bar, ImGuiID tab_id);
1430 IMGUI_API void TabBarRemoveTab(ImGuiTabBar* tab_bar, ImGuiID tab_id);
1436 IMGUI_API bool TabItemLabelAndCloseButton(ImDrawList* draw_list, const ImRect& bb, ImGuiTabItemFlags flags, ImVec2 frame_padding, const char* label, ImGuiID tab_id, ImGuiID close_button_id);
1451 IMGUI_API void RenderNavHighlight(const ImRect& bb, ImGuiID id, ImGuiNavHighlightFlags flags = ImGuiNavHighlightFlags_TypeDefault); // Navigation highlight
1463 IMGUI_API bool CloseButton(ImGuiID id, const ImVec2& pos, float radius);
1464 IMGUI_API bool CollapseButton(ImGuiID id, const ImVec2& pos);
1467 IMGUI_API ImGuiID GetScrollbarID(ImGuiLayoutType direction);
1471 IMGUI_API bool ButtonBehavior(const ImRect& bb, ImGuiID id, bool* out_hovered, bool* out_held, ImGuiButtonFlags flags = 0);
1472 IMGUI_API bool DragBehavior(ImGuiID id, ImGuiDataType data_type, void* v, float v_speed, const void* v_min, const void* v_max, const char* format, float power, ImGuiDragFlags flags);
1473 IMGUI_API bool SliderBehavior(const ImRect& bb, ImGuiID id, ImGuiDataType data_type, void* v, const void* v_min, const void* v_max, const char* format, float power, ImGuiSliderFlags flags, ImRect* out_grab_bb);
1474 IMGUI_API bool SplitterBehavior(const ImRect& bb, ImGuiID id, ImGuiAxis axis, float* size1, float* size2, float min_size1, float min_size2, float hover_extend = 0.0f, float hover_visibility_delay = 0.0f);
1475 IMGUI_API bool TreeNodeBehavior(ImGuiID id, ImGuiTreeNodeFlags flags, const char* label, const char* label_end = NULL);
1476 IMGUI_API bool TreeNodeBehaviorIsOpen(ImGuiID id, ImGuiTreeNodeFlags flags = 0); // Consume previous SetNextTreeNodeOpened() data, if any. May return true when logging
1477 IMGUI_API void TreePushRawID(ImGuiID id);
1483 template<typename T, typename SIGNED_T, typename FLOAT_T> IMGUI_API bool SliderBehaviorT(const ImRect& bb, ImGuiID id, ImGuiDataType data_type, T* v, const T v_min, const T v_max, const char* format, float power, ImGuiSliderFlags flags, ImRect* out_grab_bb);
1489 IMGUI_API bool InputScalarAsWidgetReplacement(const ImRect& bb, ImGuiID id, const char* label, ImGuiDataType data_type, void* data_ptr, const char* format);
1519 extern void ImGuiTestEngineHook_ItemAdd(ImGuiContext* ctx, const ImRect& bb, ImGuiID id);
1520 extern void ImGuiTestEngineHook_ItemInfo(ImGuiContext* ctx, ImGuiID id, const char* label, ImGuiItemStatusFlags flags);