Professional Documents
Culture Documents
- drawdata: make it easy to deep-copy (or swap?) a full ImDrawData so user can
easily save that data if they use threaded rendering. (e.g. #2646)
! drawlist: add CalcTextSize() func to facilitate consistent code from user pov
(currently need to use ImGui or ImFont alternatives!)
- drawlist: maintaining bounding box per command would allow to merge draw command
when clipping isn't relied on (typical non-scrolling window or non-overflowing
column would merge with previous command). (WIP branch)
- drawlist: primitives/helpers to manipulate vertices post submission, so e.g. a
quad/rect can be resized to fit later submitted content, _without_ using the
ChannelSplit api
- drawlist: make it easier to toggle AA per primitive, so we can use e.g. non-AA
fill + AA borders more naturally
- drawlist: non-AA strokes have gaps between points (#593, #288), glitch
especially on RenderCheckmark() and ColorPicker4().
- drawlist: rendering: provide a way for imgui to output to a single/global vertex
buffer, re-order indices only at the end of the frame (ref:
https://gist.github.com/floooh/10388a0afbe08fce9e617d8aefa7d302)
- drawlist: callback: add an extra void* in ImDrawCallback to allow passing
render-local data to the callback (would break API).
- drawlist: AddRect vs AddLine position confusing (#2441)
- drawlist/opt: store rounded corners in texture to use 1 quad per corner (filled
and wireframe) to lower the cost of rounding. (#1962)
- drawlist/opt: AddRect() axis aligned pixel aligned (no-aa) could use 8 triangles
instead of 16 and no normal calculation.
- drawlist/opt: thick AA line could be doable in same number of triangles as 1.0
AA line by storing gradient+full color in atlas.
- input text: clean up the mess caused by converting UTF-8 <> wchar. the code is
rather inefficient right now and super fragile. (WIP branch)
- input text: preserve scrolling when unfocused?
- input text: reorganize event handling, allow CharFilter to modify buffers, allow
multiple events? (#541)
- input text: expose CursorPos in char filter event (#816)
- input text: try usage idiom of using InputText with data only exposed through
get/set accessors, without extraneous copy/alloc. (#3009)
- input text: access public fields via a non-callback API e.g.
InputTextGetState("xxx") that may return NULL if not active (available in
internals)
- input text: flag to disable live update of the user buffer (also applies to
float/int text input) (#701)
- input text: hover tooltip could show unclamped text
- input text: support for INSERT key to toggle overwrite mode. currently disabled
because stb_textedit behavior is unsatisfactory on multi-line. (#2863)
- input text: option to Tab after an Enter validation.
- input text: add ImGuiInputTextFlags_EnterToApply? (off #218)
- input text: easier ways to update buffer (from source char*) while owned.
preserve some sort of cursor position for multi-line text.
- input text: add flag (e.g. ImGuiInputTextFlags_EscapeClearsBuffer) to clear
instead of revert. what to do with focus? (also see #2890)
- input text: add discard flag (e.g. ImGuiInputTextFlags_DiscardActiveBuffer) or
make it easier to clear active focus for text replacement during edition (#725)
- input text: display bug when clicking a drag/slider after an input text in a
different window has all-selected text (order dependent). actually a very old bug
but no one appears to have noticed it.
- input text: allow centering/positioning text so that ctrl+clicking Drag or
Slider keeps the textual value at the same pixel position.
- input text: decorrelate display layout from inputs with custom template - e.g.
what's the easiest way to implement a nice IP/Mac address input editor?
- input text: global callback system so user can plug in an expression evaluator
easily. (#1691)
- input text: force scroll to end or scroll to a given line/contents (so user can
implement a log or a search feature)
- input text: a way to preview completion (e.g. disabled text completing from the
cursor)
- input text: a side bar that could e.g. preview where errors are. probably left
to the user to draw but we'd need to give them the info there.
- input text: a way for the user to provide syntax coloring.
- input text: Shift+TAB with ImGuiInputTextFlags_AllowTabInput could eat preceding
blanks, up to tab_count.
- input text multi-line: don't directly call AddText() which does an unnecessary
vertex reserve for character count prior to clipping. and/or more line-based
clipping to AddText(). and/or reorganize TextUnformatted/RenderText for more
efficiency for large text (e.g TextUnformatted could clip and log separately, etc).
- input text multi-line: support for copy/cut without selection (copy/cut current
line?)
- input text multi-line: line numbers? status bar? (follow up on #200)
- input text multi-line: behave better when user changes input buffer while
editing is active (even though it is illegal behavior). namely, the change of
buffer can create a scrollbar glitch (#725)
- input text multi-line: better horizontal scrolling support (#383, #1224)
- input text multi-line: single call to AddText() should be coarse clipped on
InputTextEx() end.
- input number: optional range min/max for Input*() functions
- input number: holding [-]/[+] buttons could increase the step speed non-linearly
(or user-controlled)
- input number: use mouse wheel to step up/down
!- color: the color conversion helpers/types are a mess and needs sorting out.
- color: (api breaking) ImGui::ColorConvertXXX functions should be loose
ImColorConvertXX to match imgui_internals.h
- plot: full featured plot/graph api w/ scrolling, zooming etc. all bell &
whistle. why not!
- plot: PlotLines() should use the polygon-stroke facilities, less vertices
(currently issues with averaging normals)
- plot: make it easier for user to draw extra stuff into the graph (e.g: draw
basis, highlight certain points, 2d plots, multiple plots)
- plot: "smooth" automatic scale over time, user give an input 0.0(full user
scale) 1.0(full derived from value)
- plot: option/feature: draw the zero line
- plot: option/feature: draw grid, vertical markers
- plot: option/feature: draw unit
- plot: add a helper e.g. Plot(char* label, float value, float time_span=2.0f)
that stores values and Plot them for you - probably another function name. and/or
automatically allow to plot ANY displayed value (more reliance on stable ID)
- clipper: ability to disable the clipping through a simple flag/bool.
- clipper: ability to run without knowing full count in advance.
- clipper: horizontal clipping support. (#2580)
- tabs: "there is currently a problem because TabItem() will try to submit their
own tooltip after 0.50 second, and this will have the effect of making your tooltip
flicker once." -> tooltip priority work (WIP branch)
- tabs: make EndTabBar fail if users doesn't respect BeginTabBar return value, for
consistency/future-proofing.
- tabs: persistent order/focus in BeginTabBar() api (#261, #351)
- tabs: TabItem could honor SetNextItemWidth()?
- tabs: explicit api (even if internal) to cleanly manipulate tab order.
- tabs: Mouse wheel over tab bar could scroll? (with shift?) (#2702)
- tooltip: drag and drop with tooltip near monitor edges lose/changes its last
direction instead of locking one. The drag and drop tooltip should always follow
without changing direction.
- tooltip: allow to set the width of a tooltip to allow TextWrapped() etc. while
keeping the height automatic.
- tooltip: tooltips with delay timers? or general timer policy? (instantaneous vs
timed): IsItemHovered() with timer + implicit aabb-id for items with no ID. (#1485)
(WIP branch)
- tooltip: drag tooltip hovering over source widget with IsItemHovered/SetTooltip
flickers (WIP branch)
- status-bar: add a per-window status bar helper similar to what menu-bar does.
generalize concept of layer0 rect in window (can make _MenuBar window flag obsolete
too).
- shortcuts: local-style shortcut api, e.g. parse "&Save"
- shortcuts,menus: global-style shortcut api e.g. "Save (CTRL+S)" -> explicit flag
for recursing into closed menu
- shortcuts: programmatically access shortcuts "Focus("&Save"))
- menus: menu-bar: main menu-bar could affect clamping of windows position (~ akin
to modifying DisplayMin)
- menus: hovering from menu to menu on a menu-bar has 1 frame without any menu,
which is a little annoying. ideally either 0 either longer.
- menus: could merge draw call in most cases (how about storing an optional aabb
in ImDrawCmd to move the burden of merging in a single spot).
- menus: would be nice if the Selectable() supported horizontal alignment (must be
given the equivalent of WorkRect.Max.x matching the position of the shortcut
column)
- tree node: add treenode/treepush int variants? not there because (void*) cast
from int warns on some platforms/settings?
- tree node: try to apply scrolling at time of TreePop() if node was just opened
and end of node is past scrolling limits?
- tree node / selectable render mismatch which is visible if you use them both
next to each other (e.g. cf. property viewer)
- tree node: tweak color scheme to distinguish headers from selected tree node
(#581)
- tree node: leaf/non-leaf highlight mismatch.
- tree node: flag to disable formatting and/or detect "%s"
- tree node/opt: could avoid formatting when clipped (flag assuming we don't care
about width/height, assume single line height? format only %s/%c to be able to
count height?)
- settings: write more decent code to allow saving/loading new fields: columns,
selected tree nodes?
- settings: api for per-tool simple persistent data (bool,int,float,columns
sizes,etc.) in .ini file (#437)
- settings/persistence: helpers to make TreeNodeBehavior persist (even during
dev!) - may need to store some semantic and/or data type in ImGuiStoragePair
- filters: set a current filter that certains items (e.g. tree node) can
automatically query to hide themselves
- filters: handle wild-cards (with implicit leading/trailing *), reg-exprs
- filters: fuzzy matches (may use code at blog.forrestthewoods.com/4cffeed33fdb)
- drag and drop: focus drag target window on hold (even without open)
- drag and drop: releasing a drop shows the "..." tooltip for one frame - since
e13e598 (#1725)
- drag and drop: drag source on a group object (would need e.g. an invisible
button covering group in EndGroup)
https://twitter.com/paniq/status/1121446364909535233
- drag and drop: have some way to know when a drag begin from
BeginDragDropSource() pov. (see 2018/01/11 post in #143)
- drag and drop: allow preview tooltip to be submitted from a different place than
the drag source. (#1725)
- drag and drop: allow using with other mouse buttons (where activeid won't be
set). (#1637)
- drag and drop: make it easier and provide a demo to have tooltip both are source
and target site, with a more detailed one on target site (tooltip ordering problem)
- drag and drop: demo with reordering nodes (in a list, or a tree node). (#143)
- drag and drop: test integrating with os drag and drop (make it easy to do a
naive WM_DROPFILE integration)
- drag and drop: allow for multiple payload types. (#143)
- drag and drop: make payload optional? payload promise? (see 2018/01/11 post in
#143)
- drag and drop: (#143) "both an in-process pointer and a promise to generate a
serialized version, for whether the drag ends inside or outside the same process"
- drag and drop: feedback when hovering a region blocked by modal (mouse cursor
"NO"?)
- inputs: we need an explicit flag about whether the platform window is focused,
to be able to distinguish focused key releases vs alt-tabbing all release
behaviors.
- inputs: support track pad style scrolling & slider edit.
- inputs/io: backspace and arrows in the context of a text input could use system
repeat rate.
- inputs/io: clarify/standardize/expose repeat rate and repeat delays (#1808)
- inputs/scrolling: support for smooth scrolling (#2462, #2569)
- misc: idle: expose "woken up" boolean (set by inputs) and/or animation time (for
cursor blink) for backend to be able stop refreshing easily.
- misc: idle: if cursor blink if the _only_ visible animation, core imgui could
rewrite vertex alpha to avoid CPU pass on ImGui:: calls.
- misc: idle: if cursor blink if the _only_ visible animation, could even expose a
dirty rectangle that optionally can be leverage by some app to render in a smaller
viewport, getting rid of much pixel shading cost.
- misc: no way to run a root-most GetID() with ImGui:: api since there's always a
Debug window in the stack. (mentioned in #2960)
- misc: make the ImGuiCond values linear (non-power-of-two). internal storage for
ImGuiWindow can use integers to combine into flags (Why?)
- misc: PushItemFlag(): add a flag to disable keyboard capture when used with
mouse? (#1682)
- misc: use more size_t in public api?
- misc: possible compile-time support for string view/range instead of char* would
e.g. facilitate usage with Rust (#683, #3038, WIP string_view branch)
- misc: possible compile-time support for wchar_t instead of char*?
- bindings: ways to use clang ast dump to generate bindings or helpers for
bindings? (e.g. clang++ -Xclang -ast-dump=json imgui.h) (WIP project "dear-
bindings" still private)