mirror of
https://github.com/ocornut/imgui.git
synced 2026-10-29 07:54:40 +00:00
Allow window draw list rendering behind window decorations? #9565
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#9565
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.93.0, Branch: master
Back-ends:
n/a
Compiler, OS:
n/a
Full config/build information:
No response
Details:
Feature request
It would be nice if
ImGui::Begin()/ImGui::End()could reserve draw list channels to allow user rendering behind the window decorations.I'm thinking something along the lines of adding this to
ImGui::Begin(), beforeRenderWindowDecorations():and this to
ImGui::End():This would allow code like:
The idea is that channel
0would be rendered behind the window decorations, while channel1would remain the normal window contents, and channel '2' would act as a foreground above the window simply for consistency.This would make it possible to easily draw things like backgrounds, glows, shadows, etc. that extend outside/behind the window decorations without having to modify ImGui or manually manage the draw list around
Begin()/End().I believe the existing
ImDrawListchannel API already provides everything needed for this; this would mainly make the functionality available through the normalBegin()/End()flow.Screenshots/Video:
No response
Minimal, Complete and Verifiable Example code: