11 bool TreeNodeBehaviorIsOpen(
const ImGuiID NodeID, ImGuiTreeNodeFlags Flags = ImGuiTreeNodeFlags_None);
20 ImGuiTreeNodeFlags TreeNodeFlags,
23 const ImColor IconTint = IM_COL32_WHITE,
24 const ImGuiDir OpenDirection = ImGuiDir_Down);
28namespace LkEngine::UI {
30 FORCEINLINE
bool BeginTreeNode(
const char* NodeName,
const bool DefaultOpen)
32 ImGuiTreeNodeFlags TreeNodeFlags = ImGuiTreeNodeFlags_Framed | ImGuiTreeNodeFlags_SpanAvailWidth | ImGuiTreeNodeFlags_FramePadding;
35 TreeNodeFlags |= ImGuiTreeNodeFlags_DefaultOpen;
38 return ImGui::TreeNodeEx(NodeName, TreeNodeFlags);
41 FORCEINLINE
void EndTreeNode()
46 FORCEINLINE
bool TreeNode(
const std::string& ID,
47 const std::string& Label,
48 const ImGuiTreeNodeFlags Flags = 0,
49 const TObjectPtr<LTexture2D>& Icon =
nullptr,
50 const ImGuiDir OpenDirection = ImGuiDir_Down)
52 ImGuiWindow* Window = ImGui::GetCurrentWindow();
53 if (!Window || Window->SkipItems)
58 return ImGui::TreeNodeWithIcon(
60 Window->GetID(ID.c_str()),
Definition ObjectPtr.h:102