TODO.txt 34.3 KB
Newer Older
omar's avatar
omar committed
1
2
3
dear imgui
ISSUES & TODO LIST

omar's avatar
omar committed
4
5
6
Issue numbers (#) refer to github issues listed at https://github.com/ocornut/imgui/issues/XXXX
The list below consist mostly of ideas noted down before they are requested/discussed by users (at which point they usually exist on the github issue tracker).
It's mostly a bunch of personal notes, probably incomplete. Feel free to query if you have any questions.
omar's avatar
omar committed
7

8
9
 - doc/test: add a proper documentation+regression testing system (#435)
 - doc/test: checklist app to verify binding/integration of imgui (test inputs, rendering, callback, etc.).
omar's avatar
TODO    
omar committed
10
 - doc/tips: tips of the day: website? applet in imgui_club?
11

12
 - window: preserve/restore relative focus ordering (persistent or not) (#2304) -> also see docking reference to same #.
omar's avatar
omar committed
13
 - window: calling SetNextWindowSize() every frame with <= 0 doesn't do anything, may be useful to allow (particularly when used for a single axis). (#690)
14
 - window: add a way for very transient windows (non-saved, temporary overlay over hundreds of objects) to "clean" up from the global window list. perhaps a lightweight explicit cleanup pass.
omar's avatar
omar committed
15
16
17
 - window: auto-fit feedback loop when user relies on any dynamic layout (window width multiplier, column) appears weird to end-user. clarify.
 - window: allow resizing of child windows (possibly given min/max for each axis?.)
 - window: background options for child windows, border option (disable rounding).
18
 - window: begin with *p_open == false could return false.
omar's avatar
omar committed
19
20
 - window: get size/pos helpers given names (see discussion in #249)
 - window: a collapsed window can be stuck behind the main menu bar?
21
22
 - window: when window is very small, prioritize resize button over close button.
 - window: detect extra End() call that pop the "Debug" window out and assert at End() call site instead of at end of frame.
omar's avatar
omar committed
23
 - window: increase minimum size of a window with menus or fix the menu rendering so that it doesn't look odd.
24
 - window: double-clicking on title bar to minimize isn't consistent, perhaps move to single-click on left-most collapse icon?
omar's avatar
omar committed
25
 - window: expose contents size. (#1045)
26
 - window: using SetWindowPos() inside Begin() and moving the window with the mouse reacts a very ugly glitch. We should just defer the SetWindowPos() call.
27
 - window: GetWindowSize() returns (0,0) when not calculated? (#1045)
28
 - window: investigate better auto-positioning for new windows.
29
 - window: top most window flag? (#2574)
30
 - window/opt: freeze window flag: if not focused/hovered, return false, render with previous ImDrawList. and/or reduce refresh rate. -> this may require enforcing that it is illegal to submit contents if Begin returns false.
31
 - window/child: the first draw command of a child window could be moved into the current draw command of the parent window (unless child+tooltip?).
omar's avatar
omar committed
32
 - window/child: border could be emitted in parent as well.
33
 - window/child: allow SetNextWindowContentSize() to work on child windows.
34
 - window/clipping: some form of clipping when DisplaySize (or corresponding viewport) is zero.
35
 - window/tab: add a way to signify that a window or docked window requires attention (e.g. blinking title bar).
36
 ! scrolling: exposing horizontal scrolling with Shift+Wheel even when scrollbar is disabled expose lots of issues (#2424, #1463)
37
 - scrolling: while holding down a scrollbar, try to keep the same contents visible (at least while not moving mouse)
38
 - scrolling: allow immediately effective change of scroll after Begin() if we haven't appended items yet.
39
 - scrolling/clipping: separator on the initial position of a window is not visible (cursorpos.y <= clippos.y). (2017-08-20: can't repro)
40
 - scrolling/style: shadows on scrollable areas to denote that there is more contents
41

42
 - drawdata: make it easy to clone (or swap?) a full ImDrawData so user can easily save that data if they use threaded rendering. (e.g. #2646)
43
 ! drawlist: add calctextsize func to facilitate consistent code from user pov (currently need to use ImGui or ImFont alternatives!)
44
45
 - drawlist: end-user probably can't call Clear() directly because we expect a texture to be pushed in the stack.
 - 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).
46
 - 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
47
 - drawlist: make it easier to toggle AA per primitive, so we can use e.g. non-AA fill + AA borders more naturally
48
 - drawlist: non-AA strokes have gaps between points (#593, #288), glitch especially on RenderCheckmark() and ColorPicker4().
49
50
 - drawlist: would be good to be able to deep copy of ImDrawData (we have a deep copy of ImDrawList now).
 - 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)
51
 - drawlist: callback: add an extra void* in ImDrawCallback to allow passing render-local data to the callback (would break API).
52
 - drawlist: AddRect vs AddLine position confusing (#2441)
53
 - drawlist: channel splitter should be external helper and not stored in ImDrawList.
54
55
 - 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.
56
 - 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.
57

58
 - main: find a way to preserve relative orders of multiple reappearing windows (so an app toggling between "modes" e.g. fullscreen vs all tools) won't lose relative ordering.
omar's avatar
omar committed
59
60
 - main: IsItemHovered() make it more consistent for various type of widgets, widgets with multiple components, etc. also effectively IsHovered() region sometimes differs from hot region, e.g tree nodes
 - main: IsItemHovered() info stored in a stack? so that 'if TreeNode() { Text; TreePop; } if IsHovered' return the hover state of the TreeNode?
omar's avatar
omar committed
61
 - main: rename the main "Debug" window to avoid ID collision with user who may want to use "Debug" with specific flags.
62
63
64

 - widgets: display mode: widget-label, label-widget (aligned on column or using fixed size), label-newline-tab-widget etc. (#395)
 - widgets: clean up widgets internal toward exposing everything and stabilizing imgui_internals.h.
65
 - widgets: add visuals for Disabled/ReadOnly mode and expose publicly (#211)
66
 - widgets: add always-allow-overlap mode. This should perhaps be the default.
67
 - widgets: start exposing PushItemFlag() and ImGuiItemFlags
68
69
 - widgets: alignment options in style (e.g. center Selectable, Right-Align within Button, etc.) #1260
 - widgets: activate by identifier (trigger button, focus given id)
70
 - widgets: a way to represent "mixed" values, so e.g. all values replaced with *, including check-boxes, colors, etc. with support for multi-components widgets (e.g. SliderFloat3, make only "Y" mixed) (#2644)
omar's avatar
omar committed
71
72
 - widgets: selectable: generic BeginSelectable()/EndSelectable() mechanism.
 - widgets: selectable: a way to visualize partial/mixed selection (e.g. parent tree node has children with mixed selection)
73
74
 - widgets: checkbox: checkbox with custom glyph inside frame.
 - widgets: coloredit: keep reporting as active when picker is on?
75
 - widgets: group/scalarn functions: expose more per-component information. e.g. store NextItemData.ComponentIdx set by scalarn function, groups can expose them back somehow.
76

77
 - input text: clean up the mess caused by converting UTF-8 <> wchar. the code is rather inefficient right now and super fragile.
omar's avatar
omar committed
78
79
 - input text: reorganize event handling, allow CharFilter to modify buffers, allow multiple events? (#541)
 - input text: expose CursorPos in char filter event (#816)
80
81
82
 - input text: access public fields via a non-callback API e.g. InputTextGetState("xxx") that may return NULL if not active.
 - 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
omar's avatar
omar committed
83
 - input text: option to Tab after an Enter validation.
omar's avatar
omar committed
84
 - input text: add ImGuiInputTextFlags_EnterToApply? (off #218)
85
 - input text: easier ways to update buffer (from source char*) while owned. preserve some sort of cursor position for multi-line text.
omar's avatar
omar committed
86
 - input text: add discard flag (e.g. ImGuiInputTextFlags_DiscardActiveBuffer) or make it easier to clear active focus for text replacement during edition (#725)
87
 - 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.
88
 - input text: allow centering/positioning text so that ctrl+clicking Drag or Slider keeps the textual value at the same pixel position.
89
 - input text: decorrelate layout from inputs - e.g. what's the easiest way to implement a nice IP/Mac address input editor?
90
 - input text: global callback system so user can plug in an expression evaluator easily. (#1691)
91
 - input text: force scroll to end or scroll to a given line/contents (so user can implement a log or a search feature)
92
 - input text: a way to preview completion (e.g. disabled text completing from the cursor)
93
94
 - 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.
95
 - input text: Shift+TAB with ImGuiInputTextFlags_AllowTabInput could eat preceding blanks, up to tab_count.
omar's avatar
omar committed
96
 - 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).
97
 - input text multi-line: support for cut/paste without selection (cut/paste the current line)
omar's avatar
omar committed
98
99
100
 - 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)
101
 - input text multi-line: single call to AddText() should be coarse clipped on InputTextEx() end.
omar's avatar
omar committed
102
103
104
105
 - 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
 - input number: applying arithmetics ops (+,-,*,/) messes up with text edit undo stack.
106

omar's avatar
omar committed
107
108
 - layout: helper or a way to express ImGui::SameLine(ImGui::GetCursorStartPos().x + ImGui::CalcItemWidth() + ImGui::GetStyle().ItemInnerSpacing.x); in a simpler manner.
 - layout: generalization of the above: a concept equivalent to word processor ruler tab stop ~ mini columns (position in X, no clipping implied) (vaguely relate to #267, #395, also what is used internally for menu items)
omar's avatar
omar committed
109
110
111
112
 - layout: horizontal layout helper (#97)
 - layout: horizontal flow until no space left (#404)
 - layout: more generic alignment state (left/right/centered) for single items?
 - layout: clean up the InputFloatN/SliderFloatN/ColorEdit4 layout code. item width should include frame padding.
113
 - layout: vertical alignment of mixed height items (e.g. buttons) within a same line (#1284)
114

115
116
117
118
 - group: BeginGroup() needs a border option. (~#1496)
 - group: IsHovered() after EndGroup() covers whole aabb rather than the intersection of individual items. Is that desirable?
 - group: merge deactivation/activation within same group (fwd WasEdited flag). (#2550)

omar's avatar
omar committed
119
 - columns: sizing policy (e.g. for each column: fixed size, %, fill, distribute default size among fills) (#513, #125)
omar's avatar
omar committed
120
 - columns: add a conditional parameter to SetColumnOffset() (#513, #125)
121
 - columns: headers. re-orderable. (#513, #125)
122
 - columns: optional sorting modifiers (up/down), sort list so sorting can be done multi-criteria. notify user when sort order changed.
123
124
125
 - columns: option to alternate background colors on odd/even scanlines.
 - columns: allow columns to recurse.
 - columns: allow a same columns set to be interrupted by e.g. CollapsingHeader and resume with columns in sync when moving them.
126
 - columns: sizing is lossy when columns width is very small (default width may turn negative etc.)
omar's avatar
omar committed
127
128
129
 - columns: separator function or parameter that works within the column (currently Separator() bypass all columns) (#125)
 - columns: flag to add horizontal separator above/below?
 - columns/layout: setup minimum line height (equivalent of automatically calling AlignFirstTextHeightToWidgets)
130

131
!- color: the color conversion helpers/types are a mess and needs sorting out.
omar's avatar
omar committed
132
 - color: (api breaking) ImGui::ColorConvertXXX functions should be loose ImColorConvertXX to match imgui_internals.h
133
134

 - plot: full featured plot/graph api w/ scrolling, zooming etc. all bell & whistle. why not!
135
 - plot: PlotLines() should use the polygon-stroke facilities, less vertices (currently issues with averaging normals)
136
137
138
139
140
141
142
 - 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)

143
144
 - clipper: ability to force display 1 item in the list would be convenient (for patterns where we need to set active id etc.)
 - clipper: ability to disable the clipping through a simple flag/bool.
omar's avatar
omar committed
145
 - clipper: ability to run without knowing full count in advance.
146
 - clipper: horizontal clipping support. (#2580)
147

148
149
150
 - separator: expose flags (#759)
 - separator: width, thickness, centering (#1643)
 - splitter: formalize the splitter idiom into an official api (we want to handle n-way split) (#319)
151

152
 - dock: merge docking branch (#2109)
153
154
 - dock: dock out from a collapsing header? would work nicely but need emitting window to keep submitting the code.

155
156
 - 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)
omar's avatar
omar committed
157

158
 - button: provide a button that looks framed. (?)
159
160
 - image/image button: misalignment on padded/bordered button?
 - image/image button: parameters are confusing, image() has tint_col,border_col whereas imagebutton() has bg_col/tint_col. Even thou they are different parameters ordering could be more consistent. can we fix that?
161
 - image button: not taking an explicit id can be problematic. (#2464, #1390)
162
 - slider/drag: ctrl+click when format doesn't include a % character.. disable? display underlying value in default format? (see TempInputTextScalar)
163
 - slider: allow using the [-]/[+] buttons used by InputFloat()/InputInt()
164
 - slider: initial absolute click is imprecise. change to relative movement slider (same as scrollbar). (#1946)
165
166
 - slider: add dragging-based widgets to edit values with mouse (on 2 axises), saving screen real-estate.
 - slider: tint background based on value (e.g. v_min -> v_max, or use 0.0f either side of the sign)
167
 - slider: relative dragging? + precision dragging
168
 - slider: step option (#1183)
169
 - slider style: fill % of the bar instead of positioning a drag.
170
 - knob: rotating knob widget (#942)
171
 - drag float: power/logarithmic slider and drags are weird. (#1316)
172
 - drag float: up/down axis
Bruce Mitchener's avatar
Bruce Mitchener committed
173
 - drag float: power != 0.0f with current value being outside the range keeps the value stuck.
174
175
 - drag float: added leeway on edge (e.g. a few invisible steps past the clamp limits)

omar's avatar
omar committed
176
 - combo: use clipper: make it easier to disable clipper with a single flag.
177
178
 - combo: flag for BeginCombo to not return true when unchanged (#1182)
 - combo: a way/helper to customize the combo preview (#1658)
omar's avatar
omar committed
179
 - combo/listbox: keyboard control. need InputText-like non-active focus + key handling. considering keyboard for custom listbox (pr #203)
180
 - listbox: refactor and clean the begin/end api
181
 - listbox: multiple selection.
omar's avatar
omar committed
182
 - listbox: unselect option (#1208)
omar's avatar
omar committed
183
 - listbox: make it easier/more natural to implement range-select (need some sort of info/ref about the last clicked/focused item that user can translate to an index?) (wip stash)
omar's avatar
omar committed
184
 - listbox: user may want to initial scroll to focus on the one selected value?
185
 - listbox: expose hovered item for a basic ListBox
omar's avatar
omar committed
186
 - listbox: keyboard navigation.
187
 - listbox: disable capturing mouse wheel if the listbox has no scrolling. (#1681)
omar's avatar
omar committed
188
 - listbox: scrolling should track modified selection.
omar's avatar
omar committed
189
 - listbox: future api should allow to enable horizontal scrolling (#2510)
190

omar's avatar
omar committed
191
!- popups/menus: clarify usage of popups id, how MenuItem/Selectable closing parent popups affects the ID, etc. this is quite fishy needs improvement! (#331, #402)
192
 - popups/modal: make modal title bar blink when trying to click outside the modal
omar's avatar
omar committed
193
 - popups: reopening context menu at new position should be the behavior by default? (equivalent to internal OpenPopupEx() with reopen_existing=true) (~#1497)
194
195
 - popups: if the popup functions took explicit ImGuiID it would allow the user to manage the scope of those ID. (#331)
 - popups: clicking outside (to close popup) and holding shouldn't drag window below.
omar's avatar
omar committed
196
197
 - popups: add variant using global identifier similar to Begin/End (#402)
 - popups: border options. richer api like BeginChild() perhaps? (#197)
198
 - 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.
199
 - tooltip: tooltip that doesn't fit in entire screen seems to lose their "last preferred direction" and may teleport when moving mouse.
omar's avatar
TODO    
omar committed
200
 - tooltip: allow to set the width of a tooltip to allow TextWrapped() etc. while keeping the height automatic.
201
202
 - tooltip: tooltips with delay timers? or general timer policy? (instantaneous vs timed): IsItemHovered() with timer + implicit aabb-id for items with no ID. (#1485)

203
 - menus: calling BeginMenu() twice with a same name doesn't append as Begin() does for regular windows (#1207)
204
205
 - menus: menu bars inside modal windows are acting weird.
 - status-bar: add a per-window status bar helper similar to what menu-bar does.
206
 - shortcuts: local-style shortcut api, e.g. parse "&Save"
omar's avatar
omar committed
207
 - shortcuts,menus: global-style shortcut api e.g. "Save (CTRL+S)" -> explicit flag for recursing into closed menu
208
 - shortcuts: programmatically access shortcuts "Focus("&Save"))
209
 - menus: menu-bar: main menu-bar could affect clamping of windows position (~ akin to modifying DisplayMin)
210
 - 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.
211
 - 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).
212

omar's avatar
omar committed
213
 - text: selectable text (for copy) as a generic feature (ItemFlags?)
214
 - text: proper alignment options in imgui_internal.h
omar's avatar
omar committed
215
 - text: it's currently impossible to have a window title with "##". perhaps an official workaround would be nice. \ style inhibitor? non-visible ascii code to insert between #?
omar's avatar
omar committed
216
 - text: provided a framed text helper, e.g. https://pastebin.com/1Laxy8bT
217
 - text: refactor TextUnformatted (or underlying function) to more explicitly request if we need width measurement or not
omar's avatar
omar committed
218
 - text link/url button: underlined. should api expose an ID or use text contents as ID? which colors enum to use?
219
220
 - text/wrapped: should be a more first-class citizen, e.g. wrapped text within a Selectable with known width
 - text/wrapped: figure out better way to use TextWrapped() in an always auto-resize context (tooltip, etc.) (#249)
221

omar's avatar
omar committed
222
223
224
225
 - 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)
omar's avatar
omar committed
226
 - tree node: leaf/non-leaf highlight mismatch.
227
 - tree node: _NoIndentOnOpen flag? would require to store a per-depth bit mask to store info for pop (or whatever is cheaper)
228
 - tree node/opt: could avoid formatting when clipped (flag assuming we don't care about width/height, assume single line height?)
229

230
 - settings: write more decent code to allow saving/loading new fields: columns, selected tree nodes?
omar's avatar
omar committed
231
 - settings: api for per-tool simple persistent data (bool,int,float,columns sizes,etc.) in .ini file (#437)
omar's avatar
omar committed
232
 - stb: add defines to disable stb implementations
233

234
 - style: better default styles. (#707)
omar's avatar
omar committed
235
 - style: add a highlighted text color (for headers, etc.)
omar's avatar
omar committed
236
 - style: border types: out-screen, in-screen, etc. (#447)
237
 - style: add window shadow (fading away from the window. Paint-style calculation of vertices alpha after drawlist would be easier)
omar's avatar
omar committed
238
239
240
 - style: a concept of "compact style" that the end-user can easily rely on (e.g. PushStyleCompact()?) that maps to other settings? avoid implementing duplicate helpers such as SmallCheckbox(), etc.
 - style: try to make PushStyleVar() more robust to incorrect parameters (to be more friendly to edit & continues situation).
 - style: global scale setting.
241
 - style: FramePadding could be different for up vs down (#584)
omar's avatar
omar committed
242
 - style: WindowPadding needs to be EVEN as the 0.5 multiplier used on this value probably have a subtle effect on clip rectangle
243
 - style: have a more global HSV setter (e.g. alter hue on all elements). consider replacing active/hovered by offset in HSV space? (#438, #707, #1223)
omar's avatar
omar committed
244
 - style: gradients fill (#1223) ~ 2 bg colors for each fill? tricky with rounded shapes and using textures for corners.
245
246
 - style editor: color child window height expressed in multiple of line height.

omar's avatar
omar committed
247
248
249
 - log: have more control over the log scope (e.g. stop logging when leaving current tree node scope)
 - log: be able to log anything (e.g. right-click on a window/tree-node, shows context menu? log into tty/file/clipboard)
 - log: let user copy any window content to clipboard easily (CTRL+C on windows? while moving it? context menu?). code is commented because it fails with multiple Begin/End pairs.
250
251
 - log: obsolete LogButtons() all together.
 - log: LogButtons() options for specifying depth and/or hiding depth slider
252

omar's avatar
omar committed
253
 - filters: set a current filter that tree node can automatically query to hide themselves
254
 - filters: handle wild-cards (with implicit leading/trailing *), reg-exprs
omar's avatar
omar committed
255
 - filters: fuzzy matches (may use code at blog.forrestthewoods.com/4cffeed33fdb)
256

257
 - drag and drop: drag tooltip hovering over source widget with IsItemHovered/SetTooltip flickers.
omar's avatar
omar committed
258
 - drag and drop: fix/support/options for overlapping drag sources.
259
 - drag and drop: releasing a drop shows the "..." tooltip for one frame - since e13e598 (#1725)
omar's avatar
omar committed
260
 - 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
261
262
 - drag and drop: have some way to know when a drag begin from BeginDragDropSource() pov.
 - drag and drop: allow preview tooltip to be submitted from a different place than the drag source. (#1725)
263
 - drag and drop: allow using with other mouse buttons (where activeid won't be set). (#1637)
264
 - 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)
omar's avatar
omar committed
265
 - drag and drop: demo with reordering nodes (in a list, or a tree node). (#143)
266
 - drag and drop: test integrating with os drag and drop (make it easy to do a naive WM_DROPFILE integration)
omar's avatar
omar committed
267
 - drag and drop: allow for multiple payload types. (#143)
268
 - drag and drop: make payload optional? (#143)
omar's avatar
omar committed
269
270
 - 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"?)
271
272
 - node/graph editor (#306)
 - pie menus patterns (#434)
omar's avatar
omar committed
273
 - markup: simple markup language for color change? (#902)
274

275
 - font: MergeMode: flags to select overwriting or not (this is now very easy with refactored ImFontAtlasBuildWithStbTruetype)
omar's avatar
omar committed
276
 - font: free the Alpha buffer if user only requested RGBA.
277
!- font: better CalcTextSizeA() API, at least for simple use cases. current one is horrible (perhaps have simple vs extended versions).
omar's avatar
omar committed
278
 - font: a CalcTextHeight() helper could run faster than CalcTextSize().y
omar's avatar
TODO    
omar committed
279
 - font: enforce monospace through ImFontConfig (for icons?) + create dual ImFont output from same input, reusing rasterized data but with different glyphs/AdvanceX
280
 - font: finish CustomRectRegister() to allow mapping Unicode codepoint to custom texture data
281
 - font: make it easier to submit own bitmap font (same texture, another texture?). (#2127, #2575)
282
 - font: PushFontSize API (#1018)
283
 - font: MemoryTTF taking ownership confusing/not obvious, maybe default should be opposite?
284
 - font: storing MinAdvanceX per font would allow us to skip calculating line width (under a threshold of character count) in loops looking for block width
285
286
 - font/demo: add tools to show glyphs used by a text blob, display U16 value, list missing glyphs.
 - font/demo: demonstrate use of ImFontGlyphRangesBuilder.
287
 - font/atlas: add a missing Glyphs.reserve()
288
289
 - font/atlas: incremental updates
 - font/atlas: dynamic font atlas to avoid baking huge ranges into bitmap and make scaling easier.
290
291
292
 - font/draw: vertical and/or rotated text renderer (#705) - vertical is easier clipping wise
 - font/draw: need to be able to specify wrap start position.
 - font/draw: better reserve policy for large horizontal block of text (shouldn't reserve for all clipped lines)
omar's avatar
omar committed
293
 - font/draw: underline, squiggle line rendering helpers.
294
 - font: optimization: for monospace font (like the default one) we can trim IndexXAdvance as long as trailing value is == FallbackXAdvance (need to make sure TAB is still correct), would save on cache line.
295
296
 - font: add support for kerning, probably optional. A) perhaps default to (32..128)^2 matrix ~ 9K entries = 36KB, then hash for non-ascii?. B) or sparse lookup into per-char list?
 - font: add a simpler CalcTextSizeA() api? current one ok but not welcome if user needs to call it directly (without going through ImGui::CalcTextSize)
297
298
 - font: fix AddRemapChar() to work before atlas  has been built.
 - font: what would it take to support codepoint higher than 0xFFFF? (smileys, etc.) (#2538, #2541)
omar's avatar
omar committed
299
300
301
 - font: (api breaking) remove "TTF" from symbol names. also because it now supports OTF.
 - font/opt: Considering storing standalone AdvanceX table as 16-bit fixed point integer?
 - font/opt: Glyph currently 40 bytes (2+9*4). Consider storing UV as 16 bits integer? (->32 bytes). X0/Y0/X1/Y1 as 16 fixed-point integers? Or X0/Y0 as float and X1/Y1 as fixed8_8?
302

303
304
305
 - nav: some features such as PageUp/Down/Home/End should probably work without ImGuiConfigFlags_NavEnableKeyboard? (where do we draw the line?)
 - nav: configuration flag to disable global shortcuts (currently only CTRL-Tab) ?
 - nav: Home/End behavior when navigable item is not fully visible at the edge of scrolling? should be backtrack to keep item into view?
omar's avatar
omar committed
306
 - nav: NavScrollToBringItemIntoView() with item bigger than view should focus top-right? Repro: using Nav in "About Window"
307
 - nav: wrap around logic to allow e.g. grid based layout (pressing NavRight on the right-most element would go to the next row, etc.). see internal's NavMoveRequestTryWrapping().
308
 - nav: patterns to make it possible for arrows key to update selection
309
 - nav: restore/find nearest NavId when current one disappear (e.g. pressed a button that disappear, or perhaps auto restoring when current button change name)
310
 - nav: SetItemDefaultFocus() level of priority, so widget like Selectable when inside a popup could claim a low-priority default focus on the first selected iem
omar's avatar
omar committed
311
 - nav: ESC within a menu of a child window seems to exit the child window.
312
 - nav: NavFlattened: ESC on a flattened child should select something.
313
 - nav: NavFlattened: broken: in typical usage scenario, the items of a fully clipped child are currently not considered to enter into a NavFlattened child.
314
 - nav: NavFlattened: init request doesn't select items that are part of a NavFlattened child
315
 - nav: NavFlattened: cannot access menu-bar of a flattened child window with Alt/menu key (not a very common use case..).
316
 - nav: Left within a tree node block as a fallback (ImGuiTreeNodeFlags_NavLeftJumpsBackHere by default?)
omar's avatar
omar committed
317
318
319
320
 - nav/menus: pressing left-right on a vertically clipped menu bar tends to jump to the collapse/close buttons.
 - nav/menus: allow pressing Menu to leave a sub-menu.
 - nav/menus: a way to access the main menu bar with Alt? (currently needs CTRL+TAB)
 - nav/menus: when using the main menu bar, even though we restore focus after, the underlying window loses its title bar highlight during menu manipulation. could we prevent it?
321
 - nav/menus: main menu bar currently cannot restore a NULL focus. Could save NavWindow at the time of being focused, similarly to what popup do?
omar's avatar
omar committed
322
 - nav: simulate right-click or context activation? (SHIFT+F10)
323
 - nav: tabs should go through most/all widgets (in submission order?).
omar's avatar
omar committed
324
 - nav: when CTRL-Tab/windowing is active, the HoveredWindow detection doesn't take account of the window display re-ordering.
omar's avatar
omar committed
325
 - nav: esc/enter default behavior for popups, e.g. be able to mark an "ok" or "cancel" button that would get triggered by those keys.
omar's avatar
omar committed
326
 - nav: when activating a button that changes label (without a static ID) or disappear, can we somehow automatically recover into a nearest highlight item?
327
 - nav: there's currently no way to completely clear focus with the keyboard. depending on patterns used by the application to dispatch inputs, it may be desirable.
omar's avatar
omar committed
328
329
 - focus: preserve ActiveId/focus stack state, e.g. when opening a menu and close it, previously selected InputText() focus gets restored (#622)
 - focus: SetKeyboardFocusHere() on with >= 0 offset could be done on same frame (else latch and modulate on beginning of next frame)
omar's avatar
omar committed
330
 - focus: unable to use SetKeyboardFocusHere() on clipped widgets. (#787)
331
332

 - inputs: we need an explicit flag about whether the imgui window is focused, to be able to distinguish focused key releases vs alt-tabbing all release behaviors.
omar's avatar
omar committed
333
334
 - inputs: rework IO system to be able to pass actual ordered/timestamped events. use an event queue? (~#335, #71)
 - inputs: support track pad style scrolling & slider edit.
omar's avatar
omar committed
335
336
 - 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)
omar's avatar
omar committed
337
 - inputs: add mouse cursor for unavailable/no? IDC_NO/SDL_SYSTEM_CURSOR_NO.
338
 - inputs/scrolling: support for smooth scrolling (#2462, #2569)
339

340
341
 - misc: idle: expose "woken up" boolean (set by inputs) and/or animation time (for cursor blink) for back-end 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.
342
 - 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.
omar's avatar
omar committed
343
 - misc: make the ImGuiCond values linear (non-power-of-two). internal storage for ImGuiWindow can use integers to combine into flags (Why?)
omar's avatar
omar committed
344
 - misc: provide a way to compile out the entire implementation while providing a dummy API (e.g. #define IMGUI_DUMMY_IMPL)
345
 - misc: PushItemFlag(): add a flag to disable keyboard capture when used with mouse? (#1682)
omar's avatar
omar committed
346
 - misc: use more size_t in public api?
347
348
 - misc: possible compile-time support for string view/range instead of char* would e.g. facilitate usage with Rust (#683)
 - misc: possible compile-time support for wchar_t instead of char*?
349

350
 - backend: bgfx? https://gist.github.com/RichardGale/6e2b74bc42b3005e08397236e4be0fd0
351
 - emscriptem: with refactored examples, we could provide a direct imgui_impl_emscripten platform layer (see eg. https://github.com/floooh/sokol-samples/blob/master/html5/imgui-emsc.cc#L42)
352

omar's avatar
omar committed
353
 - remote: make a system like RemoteImGui first-class citizen/project (#75)
omar's avatar
omar committed
354

Bruce Mitchener's avatar
Bruce Mitchener committed
355
 - demo: find a way to demonstrate textures in the examples application, as it such a common issue for new users.
omar's avatar
omar committed
356
 - demo: demonstrate using PushStyleVar() in more details.
357
 - demo: add vertical separator demo
omar's avatar
omar committed
358
 - demo: add virtual scrolling example?
359
 - demo: demonstrate Plot offset
omar's avatar
omar committed
360
 - examples: window minimize, maximize (#583)
361
362
 - examples: provide a zero frame-rate/idle example.
 - examples: apple: example_apple should be using modern GL3.
363
 - examples: glfw: could go idle when minimized? if (glfwGetWindowAttrib(window, GLFW_ICONIFIED)) { glfwWaitEvents(); continue; } // issue: DeltaTime will be super high on resume, perhaps provide a way to let impl know (#440)
364
365
 - examples: opengl: rename imgui_impl_opengl2 to impl_opengl_legacy and imgui_impl_opengl3 to imgui_impl_opengl? (#1900)
 - examples: opengl: could use a single vertex buffer and glBufferSubData for uploads?
366
 - examples: opengl: explicitly disable GL_STENCIL_TEST in bindings.
367
 - examples: vulkan: viewport: support for synchronized swapping of multiple swap chains.
368
 - optimization: replace vsnprintf with stb_printf? or enable the defines/infrastructure to allow it (#1038)
omar's avatar
omar committed
369
370
 - optimization: add clipping for multi-component widgets (SliderFloatX, ColorEditX, etc.). one problem is that nav branch can't easily clip parent group when there is a move request.
 - optimization: add a flag to disable most of rendering, for the case where the user expect to skip it (#335)
371
 - optimization: fully covered window (covered by another with non-translucent bg + WindowRounding worth of padding) may want to clip rendering.
omar's avatar
omar committed
372
373
374
 - optimization: use another hash function than crc32, e.g. FNV1a
 - optimization/render: merge command-lists with same clip-rect into one even if they aren't sequential? (as long as in-between clip rectangle don't overlap)?
 - optimization: turn some the various stack vectors into statically-sized arrays