TODO.txt (39034B)
1 dear imgui 2 ISSUES & TODO LIST 3 4 Issue numbers (#) refer to github issues listed at https://github.com/ocornut/imgui/issues/XXXX 5 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). 6 It's mostly a bunch of personal notes, probably incomplete. Feel free to query if you have any questions. 7 8 - doc/test: add a proper documentation+regression testing system (#435) 9 - doc/test: checklist app to verify backends/integration of imgui (test inputs, rendering, callback, etc.). 10 - doc/tips: tips of the day: website? applet in imgui_club? 11 - doc/wiki: work on the wiki https://github.com/ocornut/imgui/wiki 12 13 - window: preserve/restore relative focus ordering (persistent or not) (#2304) -> also see docking reference to same #. 14 - window: calling SetNextWindowSize() every frame with <= 0 doesn't do anything, may be useful to allow (particularly when used for a single axis). (#690) 15 - 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. 16 - window: auto-fit feedback loop when user relies on any dynamic layout (window width multiplier, column) appears weird to end-user. clarify. 17 - window: begin with *p_open == false could return false. 18 - window: get size/pos helpers given names (see discussion in #249) 19 - window: a collapsed window can be stuck behind the main menu bar? 20 - window: when window is very small, prioritize resize button over close button. 21 - window: detect extra End() call that pop the "Debug" window out and assert at End() call site instead of at end of frame. 22 - window: increase minimum size of a window with menus or fix the menu rendering so that it doesn't look odd. 23 - window: double-clicking on title bar to minimize isn't consistent, perhaps move to single-click on left-most collapse icon? 24 - window: expose contents size. (#1045) 25 - window: using SetWindowPos() inside Begin() and moving the window with the mouse reacts a very ugly glitch. We should just defer the SetWindowPos() call. 26 - window: GetWindowSize() returns (0,0) when not calculated? (#1045) 27 - window: investigate better auto-positioning for new windows. 28 - window: top most window flag? (#2574) 29 - window/size: manually triggered auto-fit (double-click on grip) shouldn't resize window down to viewport size? 30 - window/size: how to allow to e.g. auto-size vertically to fit contents, but be horizontally resizable? Assuming SetNextWindowSize() is modified to treat -1.0f on each axis as "keep as-is" (would be good but might break erroneous code): Problem is UpdateWindowManualResize() and lots of code treat (window->AutoFitFramesX > 0 || window->AutoFitFramesY > 0) together. 31 - 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. 32 - window/child: background options for child windows, border option (disable rounding). 33 - window/child: allow resizing of child windows (possibly given min/max for each axis?.) 34 - 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?). 35 - window/child: border could be emitted in parent as well. 36 - window/child: allow SetNextWindowContentSize() to work on child windows. 37 - window/clipping: some form of clipping when DisplaySize (or corresponding viewport) is zero. 38 - window/tabbing: add a way to signify that a window or docked window requires attention (e.g. blinking title bar). 39 - window/id_stack: add e.g. window->GetIDFromPath() with support for leading / and ../ (#1390, #331) 40 ! scrolling: exposing horizontal scrolling with Shift+Wheel even when scrollbar is disabled expose lots of issues (#2424, #1463) 41 - scrolling: while holding down a scrollbar, try to keep the same contents visible (at least while not moving mouse) 42 - scrolling: allow immediately effective change of scroll after Begin() if we haven't appended items yet. 43 - scrolling: forward mouse wheel scrolling to parent window when at the edge of scrolling limits? (useful for listbox,tables?) 44 - scrolling/clipping: separator on the initial position of a window is not visible (cursorpos.y <= clippos.y). (2017-08-20: can't repro) 45 - scrolling/style: shadows on scrollable areas to denote that there is more contents (see e.g. DaVinci Resolve ui) 46 47 - 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) 48 ! drawlist: add calctextsize func to facilitate consistent code from user pov (currently need to use ImGui or ImFont alternatives!) 49 - drawlist: end-user probably can't call Clear() directly because we expect a texture to be pushed in the stack. 50 - 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). 51 - 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 52 - drawlist: make it easier to toggle AA per primitive, so we can use e.g. non-AA fill + AA borders more naturally 53 - drawlist: non-AA strokes have gaps between points (#593, #288), glitch especially on RenderCheckmark() and ColorPicker4(). 54 - drawlist: would be good to be able to deep copy of ImDrawData (we have a deep copy of ImDrawList now). 55 - 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) 56 - drawlist: callback: add an extra void* in ImDrawCallback to allow passing render-local data to the callback (would break API). 57 - drawlist: AddRect vs AddLine position confusing (#2441) 58 - drawlist: channel splitter should be external helper and not stored in ImDrawList. 59 - drawlist: Add quadratic bezier curves? (#3127) 60 - drawlist/opt: store rounded corners in texture to use 1 quad per corner (filled and wireframe) to lower the cost of rounding. (#1962) 61 - drawlist/opt: AddRect() axis aligned pixel aligned (no-aa) could use 8 triangles instead of 16 and no normal calculation. 62 - 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. 63 64 - 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. 65 - 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 66 - main: IsItemHovered() info stored in a stack? so that 'if TreeNode() { Text; TreePop; } if IsHovered' return the hover state of the TreeNode? 67 68 - widgets: display mode: widget-label, label-widget (aligned on column or using fixed size), label-newline-tab-widget etc. (#395) 69 - widgets: clean up widgets internal toward exposing everything and stabilizing imgui_internals.h. 70 - widgets: add visuals for Disabled/ReadOnly mode and expose publicly (#211) 71 - widgets: add always-allow-overlap mode. This should perhaps be the default? one problem is that highlight after mouse-wheel scrolling gets deferred, makes scrolling more flickery. 72 - widgets: start exposing PushItemFlag() and ImGuiItemFlags 73 - widgets: alignment options in style (e.g. center Selectable, Right-Align within Button, etc.) #1260 74 - widgets: activate by identifier (trigger button, focus given id) 75 - 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) 76 - widgets: checkbox: checkbox with custom glyph inside frame. 77 - widgets: coloredit: keep reporting as active when picker is on? 78 - widgets: group/scalarn functions: expose more per-component information. e.g. store NextItemData.ComponentIdx set by scalarn function, groups can expose them back somehow. 79 - selectable: using (size.x == 0.0f) and (SelectableTextAlign.x > 0.0f) followed by SameLine() is currently not supported. 80 - selectable: generic BeginSelectable()/EndSelectable() mechanism. 81 - selectable: a way to visualize partial/mixed selection (e.g. parent tree node has children with mixed selection) 82 83 - input text: clean up the mess caused by converting UTF-8 <> wchar. the code is rather inefficient right now and super fragile. 84 - input text: preserve scrolling when unfocused? 85 - input text: reorganize event handling, allow CharFilter to modify buffers, allow multiple events? (#541) 86 - input text: expose CursorPos in char filter event (#816) 87 - input text: try usage idiom of using InputText with data only exposed through get/set accessors, without extraneous copy/alloc. (#3009) 88 - input text: access public fields via a non-callback API e.g. InputTextGetState("xxx") that may return NULL if not active. 89 - input text: flag to disable live update of the user buffer (also applies to float/int text input) (#701) 90 - input text: hover tooltip could show unclamped text 91 - input text: support for INSERT key to toggle overwrite mode. currently disabled because stb_textedit behavior is unsatisfactory on multi-line. (#2863) 92 - input text: option to Tab after an Enter validation. 93 - input text: add ImGuiInputTextFlags_EnterToApply? (off #218) 94 - input text: easier ways to update buffer (from source char*) while owned. preserve some sort of cursor position for multi-line text. 95 - input text: add flag (e.g. ImGuiInputTextFlags_EscapeClearsBuffer) to clear instead of revert. what to do with focus? (also see #2890) 96 - input text: add discard flag (e.g. ImGuiInputTextFlags_DiscardActiveBuffer) or make it easier to clear active focus for text replacement during edition (#725) 97 - 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. 98 - input text: allow centering/positioning text so that ctrl+clicking Drag or Slider keeps the textual value at the same pixel position. 99 - input text: decorrelate layout from inputs - e.g. what's the easiest way to implement a nice IP/Mac address input editor? 100 - input text: global callback system so user can plug in an expression evaluator easily. (#1691) 101 - input text: force scroll to end or scroll to a given line/contents (so user can implement a log or a search feature) 102 - input text: a way to preview completion (e.g. disabled text completing from the cursor) 103 - 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. 104 - input text: a way for the user to provide syntax coloring. 105 - input text: Shift+TAB with ImGuiInputTextFlags_AllowTabInput could eat preceding blanks, up to tab_count. 106 - input text: facilitate patterns like if (InputText(..., obj.get_string_ref()) { obj.set_string(...); } relying on internally held buffer. 107 - 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). 108 - input text multi-line: support for cut/paste without selection (cut/paste the current line) 109 - input text multi-line: line numbers? status bar? (follow up on #200) 110 - 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) 111 - input text multi-line: better horizontal scrolling support (#383, #1224) 112 - input text multi-line: single call to AddText() should be coarse clipped on InputTextEx() end. 113 - input number: optional range min/max for Input*() functions 114 - input number: holding [-]/[+] buttons could increase the step speed non-linearly (or user-controlled) 115 - input number: use mouse wheel to step up/down 116 - input number: applying arithmetics ops (+,-,*,/) messes up with text edit undo stack. 117 118 - layout: helper or a way to express ImGui::SameLine(ImGui::GetCursorStartPos().x + ImGui::CalcItemWidth() + ImGui::GetStyle().ItemInnerSpacing.x); in a simpler manner. 119 - layout, font: horizontal tab support, A) text mode: forward only tabs (e.g. every 4 characters/N pixels from pos x1), B) manual mode: explicit tab stops acting as mini columns, no clipping (for menu items, many kind of uses, also vaguely relate to #267, #395) 120 - layout: horizontal layout helper (#97) 121 - layout: horizontal flow until no space left (#404) 122 - layout: more generic alignment state (left/right/centered) for single items? 123 - layout: clean up the InputFloatN/SliderFloatN/ColorEdit4 layout code. item width should include frame padding. 124 - layout: vertical alignment of mixed height items (e.g. buttons) within a same line (#1284) 125 - layout: null layout mode were items are not rendered but user can query GetItemRectMin()/Max/Size. 126 - layout: (R&D) local multi-pass layout mode. 127 - layout: (R&D) bind authored layout data (created by an off-line tool), items fetch their pos/size at submission, self-optimize data structures to stable linear access. 128 129 - group: BeginGroup() needs a border option. (~#1496) 130 - group: IsHovered() after EndGroup() covers whole aabb rather than the intersection of individual items. Is that desirable? 131 - group: merge deactivation/activation within same group (fwd WasEdited flag). (#2550) 132 133 !- color: the color conversion helpers/types are a mess and needs sorting out. 134 - color: (api breaking) ImGui::ColorConvertXXX functions should be loose ImColorConvertXX to match imgui_internals.h 135 136 - plot: full featured plot/graph api w/ scrolling, zooming etc. all bell & whistle. why not! 137 - plot: PlotLines() should use the polygon-stroke facilities, less vertices (currently issues with averaging normals) 138 - plot: make it easier for user to draw extra stuff into the graph (e.g: draw basis, highlight certain points, 2d plots, multiple plots) 139 - plot: "smooth" automatic scale over time, user give an input 0.0(full user scale) 1.0(full derived from value) 140 - plot: option/feature: draw the zero line 141 - plot: option/feature: draw grid, vertical markers 142 - plot: option/feature: draw unit 143 - 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) 144 145 - clipper: ability to force display 1 item in the list would be convenient (for patterns where we need to set active id etc.) 146 - clipper: ability to disable the clipping through a simple flag/bool. 147 - clipper: ability to run without knowing full count in advance. 148 - clipper: horizontal clipping support. (#2580) 149 150 - separator: expose flags (#759) 151 - separator: take indent into consideration (optional) 152 - separator: width, thickness, centering (#1643) 153 - splitter: formalize the splitter idiom into an official api (we want to handle n-way split) (#319) 154 155 - dock: merge docking branch (#2109) 156 - dock: dock out from a collapsing header? would work nicely but need emitting window to keep submitting the code. 157 158 - 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 159 - tabs: close button tends to overlap unsaved-document star 160 - tabs: consider showing the star at the same spot as the close button, like VS Code does. 161 - tabs: make EndTabBar fail if users doesn't respect BeginTabBar return value, for consistency/future-proofing. 162 - tabs: persistent order/focus in BeginTabBar() api (#261, #351) 163 - tabs: TabItem could honor SetNextItemWidth()? 164 - tabs: explicit api (even if internal) to cleanly manipulate tab order. 165 - tabs: Mouse wheel over tab bar could scroll? (#2702) 166 167 - image/image button: misalignment on padded/bordered button? 168 - 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? 169 - image button: not taking an explicit id can be problematic. (#2464, #1390) 170 - button: provide a button that looks framed. (?) 171 - slider/drag: ctrl+click when format doesn't include a % character.. disable? display underlying value in default format? (see TempInputTextScalar) 172 - slider: allow using the [-]/[+] buttons used by InputFloat()/InputInt() 173 - slider: initial absolute click is imprecise. change to relative movement slider (same as scrollbar). (#1946) 174 - slider: add dragging-based widgets to edit values with mouse (on 2 axises), saving screen real-estate. 175 - slider: tint background based on value (e.g. v_min -> v_max, or use 0.0f either side of the sign) 176 - slider: relative dragging? + precision dragging 177 - slider: step option (#1183) 178 - slider: style: fill % of the bar instead of positioning a drag. 179 - knob: rotating knob widget (#942) 180 - drag float: support for reversed drags (min > max) (removed is_locked, also see fdc526e) 181 - drag float: up/down axis 182 - drag float: power != 0.0f with current value being outside the range keeps the value stuck. 183 - drag float: added leeway on edge (e.g. a few invisible steps past the clamp limits) 184 185 - combo: use clipper: make it easier to disable clipper with a single flag. 186 - combo: flag for BeginCombo to not return true when unchanged (#1182) 187 - combo: a way/helper to customize the combo preview (#1658) 188 - combo/listbox: keyboard control. need InputText-like non-active focus + key handling. considering keyboard for custom listbox (pr #203) 189 - listbox: multiple selection. 190 - listbox: unselect option (#1208) 191 - 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) 192 - listbox: user may want to initial scroll to focus on the one selected value? 193 - listbox: expose hovered item for a simplified ListBox api 194 - listbox: keyboard navigation. 195 - listbox: disable capturing mouse wheel if the listbox has no scrolling. (#1681) 196 - listbox: scrolling should track modified selection. 197 - listbox: future api should allow to enable horizontal scrolling (#2510) 198 199 !- 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) 200 - modals: make modal title bar blink when trying to click outside the modal 201 - modals: technically speaking, we could make Begin() with ImGuiWindowFlags_Modal work without involving popup. May help untangle a few things, as modals are more like regular windows than popups. 202 - popups: if the popup functions took explicit ImGuiID it would allow the user to manage the scope of those ID. (#331) 203 - popups: clicking outside (to close popup) and holding shouldn't drag window below. 204 - popups: add variant using global identifier similar to Begin/End (#402) 205 - popups: border options. richer api like BeginChild() perhaps? (#197) 206 - popups: flags could be reworked to allow both mouse buttons as index (0..5 and as flags using higher-bit) allowing to or them. 207 - popups/modals: although it is sometimes convenient that popups/modals lifetime is owned by imgui, we could also a bool-owned-by-user api as long as Begin() return value testing is enforced. 208 209 - 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. 210 - tooltip: allow to set the width of a tooltip to allow TextWrapped() etc. while keeping the height automatic. 211 - tooltip: tooltips with delay timers? or general timer policy? (instantaneous vs timed): IsItemHovered() with timer + implicit aabb-id for items with no ID. (#1485) 212 - tooltip: drag tooltip hovering over source widget with IsItemHovered/SetTooltip flickers. 213 214 - menus: menu bars inside modal windows are acting weird. 215 - status-bar: add a per-window status bar helper similar to what menu-bar does. 216 - shortcuts: local-style shortcut api, e.g. parse "&Save" 217 - shortcuts,menus: global-style shortcut api e.g. "Save (CTRL+S)" -> explicit flag for recursing into closed menu 218 - shortcuts: programmatically access shortcuts "Focus("&Save")) 219 - menus: menu-bar: main menu-bar could affect clamping of windows position (~ akin to modifying DisplayMin) 220 - 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. 221 - 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). 222 - 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) 223 224 - tree node: add treenode/treepush int variants? not there because (void*) cast from int warns on some platforms/settings? 225 - tree node: try to apply scrolling at time of TreePop() if node was just opened and end of node is past scrolling limits? 226 - tree node / selectable render mismatch which is visible if you use them both next to each other (e.g. cf. property viewer) 227 - tree node: tweak color scheme to distinguish headers from selected tree node (#581) 228 - tree node: leaf/non-leaf highlight mismatch. 229 - tree node: flag to disable formatting and/or detect "%s" 230 - 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?) 231 232 - settings: write more decent code to allow saving/loading new fields: columns, selected tree nodes? 233 - settings: api for per-tool simple persistent data (bool,int,float,columns sizes,etc.) in .ini file (#437) 234 - settings/persistence: helpers to make TreeNodeBehavior persist (even during dev!) - may need to store some semantic and/or data type in ImGuiStoragePair 235 236 - style: better default styles. (#707) 237 - style: PushStyleVar: allow direct access to individual float X/Y elements. 238 - style: add a highlighted text color (for headers, etc.) 239 - style: border types: out-screen, in-screen, etc. (#447) 240 - style: add window shadow (fading away from the window. Paint-style calculation of vertices alpha after drawlist would be easier) 241 - 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. 242 - style: try to make PushStyleVar() more robust to incorrect parameters (to be more friendly to edit & continues situation). 243 - style: global scale setting. 244 - style: FramePadding could be different for up vs down (#584) 245 - style: WindowPadding needs to be EVEN as the 0.5 multiplier used on this value probably have a subtle effect on clip rectangle 246 - 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) 247 - style: gradients fill (#1223) ~ 2 bg colors for each fill? tricky with rounded shapes and using textures for corners. 248 - style editor: color child window height expressed in multiple of line height. 249 250 - log: improve logging of ArrowButton, ListBox, TabItem 251 - log: carry on indent / tree depth when opening a child window 252 - log: enabling log ends up pushing and growing vertices buffers because we don't distinguish layout vs render clipping 253 - log: have more control over the log scope (e.g. stop logging when leaving current tree node scope) 254 - log: be able to log anything (e.g. right-click on a window/tree-node, shows context menu? log into tty/file/clipboard) 255 - 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. 256 - log: obsolete LogButtons() all together. 257 - log: LogButtons() options for specifying depth and/or hiding depth slider 258 259 - filters: set a current filter that tree node can automatically query to hide themselves 260 - filters: handle wild-cards (with implicit leading/trailing *), reg-exprs 261 - filters: fuzzy matches (may use code at blog.forrestthewoods.com/4cffeed33fdb) 262 263 - drag and drop: fix/support/options for overlapping drag sources. 264 - drag and drop: focus drag target window on hold (even without open) 265 - drag and drop: releasing a drop shows the "..." tooltip for one frame - since e13e598 (#1725) 266 - 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 267 - drag and drop: have some way to know when a drag begin from BeginDragDropSource() pov. (see 2018/01/11 post in #143) 268 - drag and drop: allow preview tooltip to be submitted from a different place than the drag source. (#1725) 269 - drag and drop: allow using with other mouse buttons (where activeid won't be set). (#1637) 270 - 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) 271 - drag and drop: demo with reordering nodes (in a list, or a tree node). (#143) 272 - drag and drop: test integrating with os drag and drop (make it easy to do a naive WM_DROPFILE integration) 273 - drag and drop: allow for multiple payload types. (#143) 274 - drag and drop: make payload optional? payload promise? (see 2018/01/11 post in #143) 275 - 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" 276 - drag and drop: feedback when hovering a region blocked by modal (mouse cursor "NO"?) 277 278 - node/graph editors (#306) (also see https://github.com/ocornut/imgui/wiki#node-editors) 279 - pie menus patterns (#434) 280 - markup: simple markup language for color change? (#902) 281 282 - text: selectable text (for copy) as a generic feature (ItemFlags?) 283 - text: proper alignment options in imgui_internal.h 284 - 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 #? 285 - text: provided a framed text helper, e.g. https://pastebin.com/1Laxy8bT 286 - text: refactor TextUnformatted (or underlying function) to more explicitly request if we need width measurement or not 287 - text/layout/tabs: \t pulling position from base pos + step, or offset array (e.g. could be used in text edit, menus for simple icon+text alignment, etc.) 288 - text link/url button: underlined. should api expose an ID or use text contents as ID? which colors enum to use? 289 - text/wrapped: should be a more first-class citizen, e.g. wrapped text within a Selectable with known width. 290 - text/wrapped: custom separator for text wrapping. (#3002) 291 - text/wrapped: figure out better way to use TextWrapped() in an always auto-resize context (tooltip, etc.) (#249) 292 293 - font: arbitrary line spacing. (#2945) 294 - font: MergeMode: flags to select overwriting or not (this is now very easy with refactored ImFontAtlasBuildWithStbTruetype) 295 - font: free the Alpha buffer if user only requested RGBA. 296 !- font: better CalcTextSizeA() API, at least for simple use cases. current one is horrible (perhaps have simple vs extended versions). 297 - font: for the purpose of RenderTextEllipsis(), it might be useful that CalcTextSizeA() can ignore the trailing padding? 298 - font: a CalcTextHeight() helper could run faster than CalcTextSize().y 299 - font: enforce monospace through ImFontConfig (for icons?) + create dual ImFont output from same input, reusing rasterized data but with different glyphs/AdvanceX 300 - font: finish CustomRectRegister() to allow mapping Unicode codepoint to custom texture data 301 - font: remove ID from CustomRect registration, it seems unnecessary! 302 - font: make it easier to submit own bitmap font (same texture, another texture?). (#2127, #2575) 303 - font: PushFontSize API (#1018) 304 - font: MemoryTTF taking ownership confusing/not obvious, maybe default should be opposite? 305 - 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 306 - font/demo: add tools to show glyphs used by a text blob, display U16 value, list missing glyphs. 307 - font/demo: demonstrate use of ImFontGlyphRangesBuilder. 308 - font/atlas: add a missing Glyphs.reserve() 309 - font/atlas: incremental updates 310 - font/atlas: dynamic font atlas to avoid baking huge ranges into bitmap and make scaling easier. 311 - font/draw: vertical and/or rotated text renderer (#705) - vertical is easier clipping wise 312 - font/draw: need to be able to specify wrap start position. 313 - font/draw: better reserve policy for large horizontal block of text (shouldn't reserve for all clipped lines). also see #3349. 314 - font/draw: fix for drawing 16k+ visible characters in same call. 315 - font/draw: underline, squiggle line rendering helpers. 316 - 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. 317 - 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? 318 - font: add a simpler CalcTextSizeA() api? current one ok but not welcome if user needs to call it directly (without going through ImGui::CalcTextSize) 319 - font: fix AddRemapChar() to work before atlas has been built. 320 - font: support for unicode codepoints higher than 0xFFFF? (pr #2815) 321 - font: (api breaking) remove "TTF" from symbol names. also because it now supports OTF. 322 - font/opt: Considering storing standalone AdvanceX table as 16-bit fixed point integer? 323 - 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? 324 325 - nav: some features such as PageUp/Down/Home/End should probably work without ImGuiConfigFlags_NavEnableKeyboard? (where do we draw the line?) 326 - nav: configuration flag to disable global shortcuts (currently only CTRL-Tab) ? 327 ! nav: never clear NavId on some setup (e.g. gamepad centric) 328 - 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. 329 - nav: code to focus child-window on restoring NavId appears to have issue: e.g. when focus change is implicit because of window closure. 330 - nav: Home/End behavior when navigable item is not fully visible at the edge of scrolling? should be backtrack to keep item into view? 331 - nav: NavScrollToBringItemIntoView() with item bigger than view should focus top-right? Repro: using Nav in "About Window" 332 - 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(). 333 - nav: patterns to make it possible for arrows key to update selection (see JustMovedTo in range_select branch) 334 - 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) 335 - 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 336 - nav: NavFlattened: ESC on a flattened child should select something. 337 - nav: NavFlattened: broken: in typical usage scenario, the items of a fully clipped child are currently not considered to enter into a NavFlattened child. 338 - nav: NavFlattened: init request doesn't select items that are part of a NavFlattened child 339 - nav: NavFlattened: cannot access menu-bar of a flattened child window with Alt/menu key (not a very common use case..). 340 - nav: simulate right-click or context activation? (SHIFT+F10) 341 - nav/tabbing: refactor old tabbing system and turn into navigation, should pass through all widgets (in submission order?). 342 - nav/popup: esc/enter default behavior for popups, e.g. be able to mark an "ok" or "cancel" button that would get triggered by those keys, default validation button, etc. 343 - nav/treenode: left within a tree node block as a fallback (ImGuiTreeNodeFlags_NavLeftJumpsBackHere by default?) 344 - nav/menus: pressing left-right on a vertically clipped menu bar tends to jump to the collapse/close buttons. 345 - nav/menus: allow pressing Menu to leave a sub-menu. 346 - nav/menus: a way to access the main menu bar with Alt? (currently needs CTRL+TAB) or last focused window menu bar? 347 - 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? 348 - 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? 349 - nav/menus: Alt,Up could open the first menu (e.g. "File") currently it tends to nav into the window/collapse menu. Do do that we would need custom transition? 350 - nav/windowing: configure fade-in/fade-out delay on Ctrl+Tab? 351 - nav/windowing: when CTRL-Tab/windowing is active, the HoveredWindow detection doesn't take account of the window display re-ordering. 352 - nav/windowing: Resizing window will currently fail with certain types of resizing constraints/callback applied 353 - focus: preserve ActiveId/focus stack state, e.g. when opening a menu and close it, previously selected InputText() focus gets restored (#622) 354 - focus: SetKeyboardFocusHere() on with >= 0 offset could be done on same frame (else latch and modulate on beginning of next frame) 355 - focus: unable to use SetKeyboardFocusHere() on clipped widgets. (#787, #343) 356 357 - 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. 358 - inputs: rework IO system to be able to pass actual ordered/timestamped events. use an event queue? (~#335, #71) 359 - inputs: support track pad style scrolling & slider edit. 360 - inputs/io: backspace and arrows in the context of a text input could use system repeat rate. 361 - inputs/io: clarify/standardize/expose repeat rate and repeat delays (#1808) 362 - inputs/scrolling: support for smooth scrolling (#2462, #2569) 363 364 - misc: idle: expose "woken up" boolean (set by inputs) and/or animation time (for cursor blink) for backend to be able stop refreshing easily. 365 - misc: idle: if cursor blink if the _only_ visible animation, core imgui could rewrite vertex alpha to avoid CPU pass on ImGui:: calls. 366 - 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. 367 - 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) 368 - misc: make the ImGuiCond values linear (non-power-of-two). internal storage for ImGuiWindow can use integers to combine into flags (Why?) 369 - misc: PushItemFlag(): add a flag to disable keyboard capture when used with mouse? (#1682) 370 - misc: use more size_t in public api? 371 - misc: possible compile-time support for string view/range instead of char* would e.g. facilitate usage with Rust (#683) 372 - misc: possible compile-time support for wchar_t instead of char*? 373 374 - remote: make a system like RemoteImGui first-class citizen/project (#75) 375 376 - demo: find a way to demonstrate textures in the examples application, as it such a common issue for new users. 377 - demo: demonstrate using PushStyleVar() in more details. 378 - demo: add vertical separator demo 379 - demo: add virtual scrolling example? 380 - demo: demonstrate Plot offset 381 - demo: window size constraint: square demo is broken when resizing from edges (#1975), would need to rework the callback system to solve this 382 383 - examples: window minimize, maximize (#583) 384 - examples: provide a zero frame-rate/idle example. 385 - examples: dx11/dx12: try to use new swapchain blit models (#2970) 386 - backends: move to backends/ folder? 387 - backends: report it better when not able to create texture? 388 - backends: apple: example_apple should be using modern GL3. 389 - backends: 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) 390 - backends: opengl: rename imgui_impl_opengl2 to impl_opengl_legacy and imgui_impl_opengl3 to imgui_impl_opengl? (#1900) 391 - backends: opengl: could use a single vertex buffer and glBufferSubData for uploads? 392 - backends: opengl: explicitly disable GL_STENCIL_TEST in bindings. 393 - backends: opengl: consider gl_lite loader https://github.com/ApoorvaJ/Papaya/blob/3808e39b0f45d4ca4972621c847586e4060c042a/src/libs/gl_lite.h 394 - backends: vulkan: viewport: support for synchronized swapping of multiple swap chains. 395 - backends: bgfx: https://gist.github.com/RichardGale/6e2b74bc42b3005e08397236e4be0fd0 396 - backends: mscriptem: 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) 397 398 - bindings: ways to use clang ast dump to generate bindings or helpers for bindings? (e.g. clang++ -Xclang -ast-dump=json imgui.h) 399 400 - optimization: replace vsnprintf with stb_printf? using IMGUI_USE_STB_SPRINTF.(#1038) 401 - 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. 402 - optimization: add a flag to disable most of rendering, for the case where the user expect to skip it (#335) 403 - optimization: fully covered window (covered by another with non-translucent bg + WindowRounding worth of padding) may want to clip rendering. 404 - optimization: use another hash function than crc32, e.g. FNV1a 405 - 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)? 406 - optimization: turn some the various stack vectors into statically-sized arrays