TODO.txt 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  1. dear imgui
  2. ISSUES & TODO LIST
  3. Issue numbers (#) refer to github issues listed at https://github.com/ocornut/imgui/issues/XXXX
  4. 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).
  5. It's mostly a bunch of personal notes, probably incomplete. Feel free to query if you have any questions.
  6. - doc/test: add a proper documentation+regression testing system (#435)
  7. - doc/test: checklist app to verify binding/integration of imgui (test inputs, rendering, callback, etc.).
  8. - doc/tips: tips of the day: website? applet in imgui_club?
  9. - project: folder or separate repository with maintained helpers (e.g. imgui_memory_editor.h, imgui_stl.h, maybe imgui_dock would be there?)
  10. - window: calling SetNextWindowSize() every frame with <= 0 doesn't do anything, may be useful to allow (particularly when used for a single axis). (#690)
  11. - 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.
  12. - window: auto-fit feedback loop when user relies on any dynamic layout (window width multiplier, column) appears weird to end-user. clarify.
  13. - window: allow resizing of child windows (possibly given min/max for each axis?.)
  14. - window: background options for child windows, border option (disable rounding).
  15. - window: resizing from any sides? done. > need backends to honor mouse cursors properly. (#822)
  16. - window: resize from borders: support some form of outer padding to make it easier to grab borders. (#822)
  17. - window: begin with *p_open == false should 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: GetWindowSize() returns (0,0) when not calculated? (#1045)
  26. - window: freeze window flag: if not focused/hovered, return false, render with previous ImDrawList. and/or reduce refresh rate.
  27. !- scrolling: allow immediately effective change of scroll after Begin() if we haven't appended items yet.
  28. - scrolling/clipping: separator on the initial position of a window is not visible (cursorpos.y <= clippos.y). (2017-08-20: can't repro)
  29. - drawlist: end-user probably can't call Clear() directly because we expect a texture to be pushed in the stack.
  30. - 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).
  31. - drawlist: primtiives/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
  32. - drawlist: make it easier to toggle AA per primitive, so we can use e.g. non-AA fill + AA borders more naturally
  33. - drawlist: non-AA strokes have gaps between points (#593, #288), especially RenderCheckmark().
  34. - drawlist: would be good to be able to deep copy a draw list (ImVector= op?).
  35. - drawlist/opt: AddRect() axis aligned pixel aligned (no-aa) could use 8 triangles instead of 16 and no normal calculation.
  36. - main: considering adding an Init() function? some constructs are awkward in the implementation because of the lack of them.
  37. - 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.
  38. - 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
  39. - main: IsItemHovered() info stored in a stack? so that 'if TreeNode() { Text; TreePop; } if IsHovered' return the hover state of the TreeNode?
  40. - main: rename the main "Debug" window to avoid ID collision with user who may want to use "Debug" with specific flags.
  41. - widgets: display mode: widget-label, label-widget (aligned on column or using fixed size), label-newline-tab-widget etc. (#395)
  42. - widgets: clean up widgets internal toward exposing everything and stabilizing imgui_internals.h.
  43. - widgets: add visauls for Disabled/ReadOnly mode and expose publicly (#211)
  44. - widgets: add always-allow-overlap mode.
  45. - widgets: alignment options in style (e.g. center Selectable, Right-Align within Button, etc.) #1260
  46. - widgets: activate by identifier (trigger button, focus given id)
  47. - input text: clean up the mess caused by converting UTF-8 <> wchar. the code is rather inefficient right now and super fragile.
  48. - input text: reorganize event handling, allow CharFilter to modify buffers, allow multiple events? (#541)
  49. - input text: expose CursorPos in char filter event (#816)
  50. - input text: access public fields via a non-callback API e.g. InputTextGetState("xxx") that may return NULL if not active.
  51. - input text: flag to disable live update of the user buffer (also applies to float/int text input) (#701)
  52. - input text: way to dynamically grow the buffer without forcing the user to initially allocate for worse case, e.g. more natural std::string (follow up on #200)
  53. - input text: hover tooltip could show unclamped text
  54. - input text: option to Tab after an Enter validation.
  55. - input text: add ImGuiInputTextFlags_EnterToApply? (off #218)
  56. - input text: easier ways to update buffer (from source char*) while owned. preserve some sort of cursor position for multi-line text.
  57. - input text: add discard flag (e.g. ImGuiInputTextFlags_DiscardActiveBuffer) or make it easier to clear active focus for text replacement during edition (#725)
  58. - input text: display bug when clicking a drag/slider after an input text in a different window has all-selected text (order dependant). actually a very old bug but no one appears to have noticed it.
  59. - 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).
  60. - input text multi-line: support for cut/paste without selection (cut/paste the current line)
  61. - input text multi-line: line numbers? status bar? (follow up on #200)
  62. - 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)
  63. - input text multi-line: better horizontal scrolling support (#383, #1224)
  64. - input text: allow centering/positioning text so that ctrl+clicking Drag or Slider keeps the textual value at the same pixel position.
  65. - input number: optional range min/max for Input*() functions
  66. - input number: holding [-]/[+] buttons could increase the step speed non-linearly (or user-controlled)
  67. - input number: use mouse wheel to step up/down
  68. - input number: applying arithmetics ops (+,-,*,/) messes up with text edit undo stack.
  69. - layout: helper or a way to express ImGui::SameLine(ImGui::GetCursorStartPos().x + ImGui::CalcItemWidth() + ImGui::GetStyle().ItemInnerSpacing.x); in a simpler manner.
  70. - 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)
  71. - layout: horizontal layout helper (#97)
  72. - layout: horizontal flow until no space left (#404)
  73. - layout: more generic alignment state (left/right/centered) for single items?
  74. - layout: clean up the InputFloatN/SliderFloatN/ColorEdit4 layout code. item width should include frame padding.
  75. - layout: BeginGroup() needs a border option. (~#1496)
  76. - layout: vertical alignement of mixed height items (e.g. buttons) within a same line (#1284)
  77. - columns: sizing policy (e.g. for each column: fixed size, %, fill, distribute default size among fills) (#513, #125)
  78. - columns: add a conditional parameter to SetColumnOffset() (#513, #125)
  79. - columns: headers. reorderable. (#513, #125)
  80. - columns: optional sorting modifiers (up/down), sort list so sorting can be done multi-critera. notify user when sort order changed.
  81. - columns: option to alternate background colors on odd/even scanlines.
  82. - columns: allow columns to recurse.
  83. - columns: allow a same columns set to be interrupted by e.g. CollapsingHeader and resume with columns in sync when moving them.
  84. - columns: separator function or parameter that works within the column (currently Separator() bypass all columns) (#125)
  85. - columns: flag to add horizontal separator above/below?
  86. - columns/layout: setup minimum line height (equivalent of automatically calling AlignFirstTextHeightToWidgets)
  87. !- color: the color conversion helpers/types are a mess and needs sorting out.
  88. - color: (api breaking) ImGui::ColorConvertXXX functions should be loose ImColorConvertXX to match imgui_internals.h
  89. - coloredit: it is still somehow awkward to copy colors around (unless going through Hex mode).
  90. - plot: full featured plot/graph api w/ scrolling, zooming etc. all bell & whistle. why not!
  91. - plot: PlotLines() should use the polygon-stroke facilities, less verticles (currently issues with averaging normals)
  92. - plot: make it easier for user to draw extra stuff into the graph (e.g: draw basis, highlight certain points, 2d plots, multiple plots)
  93. - plot: "smooth" automatic scale over time, user give an input 0.0(full user scale) 1.0(full derived from value)
  94. - plot: option/feature: draw the zero line
  95. - plot: option/feature: draw grid, vertical markers
  96. - plot: option/feature: draw unit
  97. - 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)
  98. - clipper: ability to force display 1 item in the list would be convenient (for patterns where we need to set active id etc.)
  99. - clipper: ability to disable the clipping through a simple flag/bool.
  100. - clipper: ability to run without knowing full count in advance.
  101. - splitter/separator: formalize the splitter idiom into an official api (we want to handle n-way split) (#319)
  102. - dock: docking extension
  103. - dock: dock out from a collapsing header? would work nicely but need emitting window to keep submitting the code.
  104. - tabs: re-ordering, close buttons, context menu, persistent order (#261, #351)
  105. - ext: stl-ish friendly extension (imgui_stl.h) that has wrapped for std::string, std::vector etc.
  106. - button: provide a button that looks framed.
  107. - image/image button: misalignment on padded/bordered button?
  108. - 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?
  109. - image button: not taking an explicit id is odd.
  110. - slider: allow using the [-]/[+] buttons used by InputFloat()/InputInt()
  111. - slider: initial absolute click is imprecise. change to relative movement slider (same as scrollbar).
  112. - slider: add dragging-based widgets to edit values with mouse (on 2 axises), saving screen real-estate.
  113. - slider: tint background based on value (e.g. v_min -> v_max, or use 0.0f either side of the sign)
  114. - slider: precision dragging
  115. - slider: step option (#1183)
  116. - knob: rotating knob widget (#942)
  117. - slider & drag: int data passing through a float
  118. - drag float: up/down axis
  119. - drag float: added leeway on edge (e.g. a few invisible steps past the clamp limits)
  120. - combo: use clipper: make it easier to disable clipper with a single flag.
  121. - combo: option for BeginCombo to not return true when unchanged (#1182)
  122. - combo/listbox: keyboard control. need InputText-like non-active focus + key handling. considering keyboard for custom listbox (pr #203)
  123. - listbox: multiple selection.
  124. - listbox: unselect option (#1208)
  125. - 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)
  126. - listbox: user may want to initial scroll to focus on the one selected value?
  127. - listbox: expose hovered item for a basic ListBox
  128. - listbox: keyboard navigation.
  129. - listbox: scrolling should track modified selection.
  130. !- 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)
  131. - popups: reopening context menu at new position should be the behavior by default? (equivalent to internal OpenPopupEx() with reopen_existing=true) (~#1497)
  132. - popups: if the popup functions took explicit ImGuiID it would allow the user to manage the scope of those ID. (#331)
  133. - popups: clicking outside (to close popup) and holding shouldn't drag window below.
  134. - popups: add variant using global identifier similar to Begin/End (#402)
  135. - popups: border options. richer api like BeginChild() perhaps? (#197)
  136. - tooltip: tooltip that doesn't fit in entire screen seems to lose their "last preferred direction" and may teleport when moving mouse.
  137. - tooltip: allow to set the width of a tooltip to allow TextWrapped() etc. while keeping the height automatic.
  138. - tooltip: allow tooltips with timers? or general timer policy? (instaneous vs timed)
  139. - menus: calling BeginMenu() twice with a same name doesn't append as Begin() does for regular windows (#1207)
  140. - statusbar: add a per-window status bar helper similar to what menubar does.
  141. - shortcuts: local-style shortcut api, e.g. parse "&Save"
  142. - shortcuts,menus: global-style shortcut api e.g. "Save (CTRL+S)" -> explicit flag for recursing into closed menu
  143. - shortcuts: programmatically access shortcuts "Focus("&Save"))
  144. - menus: menubars: main menu-bar could affect clamping of windows position (~ akin to modifying DisplayMin)
  145. - 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.
  146. - text: selectable text (for copy) as a generic feature (ItemFlags?)
  147. - text: proper alignment options in imgui_internal.h
  148. - text wrapped: figure out better way to use TextWrapped() in an always auto-resize context (tooltip, etc.) (#249)
  149. - 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 #?
  150. - text link/url button: underlined. should api expose an ID or use text contents as ID? which colors enum to use?
  151. - tree node / optimization: avoid formatting when clipped.
  152. - tree node: tree-node/header right-most side doesn't take account of horizontal scrolling.
  153. - tree node: add treenode/treepush int variants? not there because (void*) cast from int warns on some platforms/settings?
  154. - tree node: try to apply scrolling at time of TreePop() if node was just opened and end of node is past scrolling limits?
  155. - tree node / selectable render mismatch which is visible if you use them both next to each other (e.g. cf. property viewer)
  156. - tree node: tweak color scheme to distinguish headers from selected tree node (#581)
  157. - tree node: leaf/non-leaf highlight mismatch.
  158. !- settings: expose enough to save/load .ini from RAM instead of fopen
  159. - settings: write more decent code to allow saving/loading new fields: columns, selected tree nodes?
  160. - settings: api for per-tool simple persistent data (bool,int,float,columns sizes,etc.) in .ini file (#437)
  161. - stb: add defines to disable stb implementations
  162. !- style: better default styles. (#707)
  163. - style: border types: out-screen, in-screen, etc. (#447)
  164. - style/optimization: store rounded corners in texture to use 1 quad per corner (filled and wireframe) to lower the cost of rounding.
  165. - style: add window shadow (fading away from the window. Paint-style calculation of vertices alpha after drawlist would be easier)
  166. - 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.
  167. - style: try to make PushStyleVar() more robust to incorrect parameters (to be more friendly to edit & continues situation).
  168. - style: global scale setting.
  169. - style: WindowPadding needs to be EVEN as the 0.5 multiplier used on this value probably have a subtle effect on clip rectangle
  170. - 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)
  171. - style: gradients fill (#1223) ~ 2 bg colors for each fill? tricky with rounded shapes and using textures for corners.
  172. - style editor: color child window height expressed in multiple of line height.
  173. - log: LogButtons() options for specifying depth and/or hiding depth slider
  174. - log: have more control over the log scope (e.g. stop logging when leaving current tree node scope)
  175. - log: be able to log anything (e.g. right-click on a window/tree-node, shows context menu? log into tty/file/clipboard)
  176. - 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.
  177. - filters: set a current filter that tree node can automatically query to hide themselves
  178. - filters: handle wildcards (with implicit leading/trailing *), regexps
  179. - filters: fuzzy matches (may use code at blog.forrestthewoods.com/4cffeed33fdb)
  180. - drag and drop: add demo. (#143, #479)
  181. - drag and drop: test with reordering nodes (in a list, or a tree node). (#143)
  182. - drag and drop: test integrating with os drag and drop.
  183. - node/graph editor (#306)
  184. - pie menus patterns (#434)
  185. - markup: simple markup language for color change? (#902)
  186. - font: better vertical centering (based e.g on height of lowercase 'x'?). currently Roboto-Medium size 16 px isn't currently centered.
  187. - font: free the Alpha buffer if user only requested RGBA.
  188. !- font: better CalcTextSizeA() API, at least for simple use cases. current one is horrible (perhaps have simple vs extended versions).
  189. - font: enforce monospace through ImFontConfig (for icons?) + create dual ImFont output from same input, reusing rasterized data but with different glyphs/AdvanceX
  190. - font: finish CustomRectRegister() to allow mapping unicode codepoint to custom texture data
  191. - font: PushFontSize API (#1018)
  192. - font/atlas: incremental updates
  193. - font/atlas: dynamic font atlas to avoid baking huge ranges into bitmap and make scaling easier.
  194. - font/atlas: allow user to submit its own primitive to be rectpacked, and allow to map them on a Unicode point.
  195. - font: MemoryTTF taking ownership confusing/not obvious, maybe default should be opposite?
  196. - font/text: vertical and/or rotated text renderer (#705) - vertical is easier clipping wise
  197. - font: imgui_freetype.h alternative renderer (#618)
  198. - 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).
  199. - 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?
  200. - font: add a simpler CalcTextSizeA() api? current one ok but not welcome if user needs to call it directly (without going through ImGui::CalcTextSize)
  201. - font: fix AddRemapChar() to work before font has been built.
  202. - font: (api breaking) removed "TTF" from symbol names. also because it now supports OTF.
  203. !- nav/keyboard: tooltip & combo boxes are messing up / not honoring keyboard tabbing.
  204. - nav: integrate navigation branch into master. (#787)
  205. - nav: integrate/design keyboard controls.
  206. - nav: once tab should go through most/all widgets (in submission order?)
  207. - nav: currently cannot access menubar of a child window with Alt/menu key.
  208. - 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.
  209. - focus: preserve ActiveId/focus stack state, e.g. when opening a menu and close it, previously selected InputText() focus gets restored (#622)
  210. - focus: SetKeyboardFocusHere() on with >= 0 offset could be done on same frame (else latch and modulate on beginning of next frame)
  211. - focus: unable to use SetKeyboardFocusHere() on clipped widgets. (#787)
  212. - inputs: rework IO system to be able to pass actual ordered/timestamped events. use an event queue? (~#335, #71)
  213. - inputs: allow to pass explicit double-clicks if that's the only thing the user's backend can get them. (e.g. for windows by the CS_DBLCLKS style).
  214. - inputs: support track pad style scrolling & slider edit.
  215. - misc: idle refresh: expose cursor blink animation timer for backend to be able to lower framerate.
  216. - misc: make the ImGuiCond values linear (non-power-of-two). internal storage for ImGuiWindow can use integers to combine into flags (Why?)
  217. - misc: provide a way to compile out the entire implementation while providing a dummy API (e.g. #define IMGUI_DUMMY_IMPL)
  218. - misc: fix for compilation settings where stdcall isn't the default (e.g. vectorcall) (#1230)
  219. - remote: make a system like RemoteImGui first-class citizen/project (#75)
  220. - demo: add vertical separator demo
  221. - demo: add virtual scrolling example?
  222. - examples: directx9: save/restore device state more thoroughly.
  223. - examples: window minimize, maximize (#583)
  224. - examples: provide a zero-framerate/idle example.
  225. - examples: glfw: could go idle when minimized? if (glfwGetWindowAttrib(window, GLFW_ICONIFIED)) { glfwWaitEvents(); continue; } // the problem is that DeltaTime will be super high on resume, perhaps provide a way to let impl know (#440)
  226. - optimization: replace vsnprintf with stb_printf? or enable the defines/infrastructure to allow it (#1038)
  227. - 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.
  228. - optimization: add a flag to disable most of rendering, for the case where the user expect to skip it (#335)
  229. - optimization: use another hash function than crc32, e.g. FNV1a
  230. - 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)?
  231. - optimization: turn some the various stack vectors into statically-sized arrays