mirror of
https://github.com/ocornut/imgui.git
synced 2026-10-29 07:54:40 +00:00
TreeNode no arrow draw flag #9547
Labels
No labels
accidentally closed
android
backends
bug
building
clipper
coloredit
color spaces
cplusplus
data types
demo
disabled
doc
docking
dpi
drag drop
drawing/drawlist
dropped
dx12
enhancement
focus
font/text
gallery
help wanted
idle/power saving
ime
in progress
inputs
inputtext
internals
label/id and id stack
language bindings
layout
linux/bsd
menus
multi-contexts
multi-threading
multi-viewports
nav
news/info
opengl
optimization
osx/ios
overlap
plot/graph
popups
question
scrolling
selection
settings
sliders/drags
style
tables/columns
tabs
test wanted
tools
tooltips
tree
tricks & tips
useful widgets
vulkan
web
window pos/depth
window sizing
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ocornut/imgui#9547
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Version/Branch of Dear ImGui:
Version 1.92.7, Branch: docking
Back-ends:
imgui_impl_sdl2.cpp + imgui_impl_vulkan.cpp
Compiler, OS:
Windows 11 + MSVC 2022
Full config/build information:
No response
Details:
This is rather a request since i can't seem to find a way to edit imgui source efficiently without formatting the code with my clang-format tool and make a PR myself.
I am using TreeNodeEx for my file explorer in the game engine that i'm building and did not like the arrows so I made some tiny changes.
All i've changed is added an ImGuiTreeNodeFlags_NoArrowDraw flag and skip the RenderBullet/ RenderArrow calls in the TreeNodeBehavior, and if this flag is found subtract the text_offset_x value from text_pos.x
Screenshots/Video:
Minimal, Complete and Verifiable Example code: