Commit Graph

  • 17a4e31e53 Fix -Wconversion warning Elias Daler 2019-02-24 17:57:39 +0300
  • 6f80179a1d InputText: Fixed deactivated but-last-active InputText instance holding on displaying the last active version of the text and not reflecting change in the source. Fix/amend 2e9a175. [+test] omar 2019-02-23 17:04:54 +0100
  • 6cbf4b8121 Fixed uninitialized variable (leading to asserts in the docking branch). (#2376, #2371) omar 2019-02-23 17:00:59 +0100
  • 9558e327d2 Log/Capture: Fixed extraneous leading carriage return. Fixed an issue when empty string on a new line would not emit a carriage return. omar 2019-02-23 16:22:55 +0100
  • cd67d4d3c1 Log/Capture: Fixed LogXXX functions 'auto_open_depth' parameter being treated as an absolute tree depth instead of a relative one. Fixed CollapsingHeader trailing ascii representation being "#" instead of "##". Minor tidying up the of code. omar 2019-02-23 15:39:18 +0100
  • 2cd7de5666 Internal: Log/Capture: Rework to add an internal LogToBuffer() function which is useful for writing automated tests. Clarified logging state by adding an enum. omar 2019-02-23 15:24:01 +0100
  • 3eba840053 Nav: Fixed a tap on AltGR (e.g. German keyboard) from navigation to the menu layer. (follow and extend on e.g #369, #370) omar 2019-02-23 14:49:36 +0100
  • 87ded34f9f Merge branch 'master' into docking omar 2019-02-22 12:29:18 +0100
  • 9da48c16c5 TabBar: Added extra mis-usage error recovery. Past the assert, common mis-usage don't lead to hard crashes any more, facilitating integration with scripting languages. (#1651) omar 2019-02-22 12:27:41 +0100
  • 0f83145aa8 TabBar: Fixed a crash when using BeginTabBar() recursively (didn't affect docking). (#2371) Added ImPool::Contains() helper. omar 2019-02-22 12:24:27 +0100
  • f988618ebe Internal: InputText: Tweaks (including a large indentation change, compare ignoring space) to make next commit more digestible. omar 2019-02-21 23:00:47 +0100
  • be593f2c16 Internal: InputText: refactor the flow to easily decorrelate rendering of selection vs cursor, which would allow us to render selection on inactive items, and generally makes the code clearer. + Some renaming. omar 2019-02-21 19:45:28 +0100
  • 332f8f2462 Internal: InputText: Made clipboard copy/cut use its own temporary buffer (like paste) so we can guarantee that TempBuffer if not altered and can be preserved. Renamed TempBufferA to TextA to celebrate this. omar 2019-02-21 17:33:57 +0100
  • 81a8730022 Internal: InputText: Renamed is_editable to !is_readonly, Hopefully more explicit. Renamed internal member. Shuffled some code. Added comments, assert (_will_ trigger on !readonly > readonly edge, old bug). omar 2019-02-21 12:35:21 +0100
  • cc3be5d428 InputText: Fixed an edge case crash that would happen if another widget sharing the same ID is being swapped with an InputText that has yet to be activated. omar 2019-02-21 12:25:21 +0100
  • 2e9a175057 Internal: InputText: Refactor to clarify access pattern to the InputTextState (we are now accessing via a pointer which can be NULL, shortened its name while we are at it) + added an assert to track an issue that existed already before. omar 2019-02-21 12:24:50 +0100
  • 677e64e71e Internal: InputText: Comments. Renamed internal member. Renamed ImGuiStb->ImStb. omar 2019-02-20 21:25:17 +0100
  • 79f7778e48 Moved binaries to dearimgui.org/binaries omar 2019-02-20 15:10:23 +0100
  • 2068dd509c Examples: OpenGL: Fix for OSX not supporting OpenGL 4.5, we don't try to read GL_CLIP_ORIGIN even if the OpenGL headers/loader happens to define the value. (#2366, #2186) omar 2019-02-20 14:31:19 +0100
  • b8a6e9b9db Merge remote-tracking branch 'remotes/origin/master' into pfox/passwordFix Paul Fox 2019-02-20 23:06:42 +1000
  • 782b747a17 InputText: Renamed some local variables to clarify code. Should be a no-op functionality wise. TODO items. omar 2019-02-20 00:40:09 +0100
  • 7c51cba74f InputInt, InputFloat, InputScalar: Fix to keep the label of the +/- buttons centered when style.FramePadding.x is abnormally larger than style.FramePadding.y. Since the buttons are meant to be square (to align with e.g. color button) we always use FramePadding.y. (#2367) omar 2019-02-20 00:20:11 +0100
  • 257f5d204e Version 1.69 WIP omar 2019-02-20 00:11:36 +0100
  • 93b06e6e7c Internal: Changed Scrollbar() signature. Using GetScrollbarID() in InputTextMultiline(). Removed multiple semi-colons (#2368) omar 2019-02-19 23:39:44 +0100
  • 91cc32379d Updated binaries (now auto-generated by a script! next step would be to slowly transition all this stuff into a public repo) omar 2019-02-19 20:27:47 +0100
  • d0c98bf880 Examples: VS: Made project paths independant of SolutionDir so they can be built aside from the solution. omar 2019-02-19 20:13:06 +0100
  • 77833003ff Fixed unused argument warning when compiling with IM_ASERT() evaluating to an empty macro. omar 2019-02-19 17:32:14 +0100
  • ff0f9aa856 Comments for Linux/Mac (#2117) omar 2019-02-19 16:36:06 +0100
  • 9dc02464a4 Merge branch 'master' into docking omar 2019-02-19 13:04:35 +0100
  • 3c15dffc94 Version 1.68 v1.68 omar 2019-02-19 12:17:28 +0100
  • ae4f2eb58d Add examples/example_win32_opengl2 Konstantin Podsvirov 2019-02-18 23:32:56 +0300
  • 7573d10a4a Docking: Fixed bad ever-growing/ leak (accumulating text into TabsNames forever, fix d38f4dc14 from February 5th, affected docking branch only). (#2109) omar 2019-02-18 16:50:39 +0100
  • 5412cdf2c8 Docking: Made DockBuilderSplitNode/DockNodeTreeSplit work even if the node doesn't have a size yet. (#2357, #2109) Followup to fa0ce4b7d, at that time I came to the conclusion that programmatic split couldn't work without knowing the size ahead of it. I forgot the reason for that. May bite us back! omar 2019-02-18 16:23:54 +0100
  • 3de440fda2 Docking: Fixed assert in DockContextProcessDock() preventing some uses of DockNodeBuilder api. (#2357, #2109) omar 2019-02-18 16:13:17 +0100
  • 5bf9029bf9 Merge branch 'master' into docking omar 2019-02-18 12:16:13 +0100
  • f5bf6e38d2 Font: Fixed assert when specifying duplicate/overlapping ranges within a same font. (#2353, #2233) omar 2019-02-18 12:11:46 +0100
  • db40699990 imgui_freeetype: Updated suggested test code. omar 2019-02-18 12:08:19 +0100
  • 5e52ff0bfc Added new backend "imgui_impl_gl", supporting GL3, GL4, ES2, ES3 + new "example_sdl_gl" using it gab 2019-02-17 11:20:07 +0100
  • 94e479cd67 Make CMAKEFILE to work both on Emscripten and Linux gab 2019-02-16 12:35:56 +0100
  • d972533d09 Examples: Vulkan: Rewrote scissor processing to match other examples more closely. Removed extraneous +1 of scissor extent height. omar 2019-02-16 12:33:38 +0100
  • dd14adc731 Examples: Vulkan: Support draw_data->FramebufferScale correctly matching a79785c for on Metal/GL2/GL3. (#2306, #1676) omar 2019-02-16 12:27:46 +0100
  • 7f8008f6fe Added CMakeFile example (works with EMSCRIPTEN) gab 2019-02-16 12:12:16 +0100
  • 22c7ad4c11 Added example_sdl_gles2 gab 2019-02-16 12:11:53 +0100
  • 176bf71312 Added GLES2/WebGL render backend gab 2019-02-16 12:11:30 +0100
  • f977871854 ImFont: Minor adjustment to the structure. Examples: Removed unused variable. omar 2019-02-15 13:10:22 +0100
  • 09c9bf2edb Merge branch 'master' into docking omar 2019-02-14 20:35:11 +0100
  • 76dbff37cd Selectable: Tweaks for #2347 (demo, changelog, member position) omar 2019-02-14 20:29:50 +0100
  • 6896c0be0c add support for specifying text alignment on selectables haldean 2019-02-13 14:56:21 -0800
  • b277cfffc8 Selectable: add support for specifying text alignment on selectables (#2347) haldean 2019-02-13 14:56:21 -0800
  • 93d1179805 Examples: Extracted gamepad code into ImGui_ImplGlfw_UpdateGamepads(). Renamed matching Win32 function for consistency. Added more link to nothing's oversample document. Spacing bits. omar 2019-02-14 18:55:08 +0100
  • 3c07ec6a61 Made it illegal/assert when io.DisplayTime == 0.0f (with an exception for the first frame). Causing too many subtle side-effect, e.g. IsNavInputPressed() would return true multiple times in a row. omar 2019-02-14 17:14:29 +0100
  • 2206df9e7a Demo: Added Auto-Scroll option in Log/Console. Comments. Removed some ImColor() uses. omar 2019-02-14 14:00:30 +0100
  • 8522a4bbea Fixed Clang warning ("multi-line comment"). XCode also also "space between \ and carriage return". Perhaps it would work with 2 spaces? Adding a dot for now.. omar 2019-02-14 13:42:14 +0100
  • 0236bc246f Scrollbar: Fade out and disable interaction when too small, in order to facilitate using the resize grab on very small window, as well as reducing visual noise/overlap. (+1 squashed commits) Internals: Added GetScrollbarID(). (#1185) omar 2019-02-14 13:25:23 +0100
  • b46076458c Examples: Win32: Removed unused code left-over from merge e9c625a1dc omar 2019-02-13 18:29:49 +0100
  • 57a586b4f1 Font: Moved functions to internal block (not enforced). Made ConfigData pointer const. Added link to stb's notes. omar 2019-02-13 18:21:21 +0100
  • fcdf704dfa Changelog: Added changelog from 1.40 to 1.47 (pasted from the Releases section) + some wrapping. omar 2019-02-13 12:52:12 +0100
  • cbc8e57410 Update README.md - change imgui-sfml link (#2345) Elias Daler 2019-02-13 13:50:14 +0300
  • 97551563c4
    Update README.md - change imgui-sfml link Elias Daler 2019-02-13 01:13:55 +0300
  • 417cf2237f Font: Fixed high-level ImGui::CalcTextSize() used by most widgets from erroneously subtracting 1.0f*scale to calculated text width. Among noticeable side-effects, it would make sequences of repeated Text/SameLine calls not align the same as a single call, and create mismatch between high-level size calculation and those performed with the lower-level ImDrawList api. (#792) omar 2019-02-12 22:43:56 +0100
  • 0640b6e67c Shallow tweaks omar 2019-02-12 16:31:49 +0100
  • 96480a1656 treat ctrl-left-click as right click when ConfigMacOSXBehaviors is true haldean 2019-02-11 15:29:46 -0800
  • 8691b56136 Merge branch 'master' into docking omar 2019-02-12 10:30:48 +0100
  • cc80d8e118 Examples: Metal: Compilation fix. omar 2019-02-12 10:30:09 +0100
  • 169e3981fd Examples: OpenGL2: Added #define GL_SILENCE_DEPRECATION to cope with newer XCode warnings. omar 2019-02-11 19:09:54 +0100
  • 7f6a025c93 Viewport: SDL: Inherit SDL_WINDOW_ALLOW_HIGHDPI flag from main viewport. (#2306) omar 2019-02-11 19:00:33 +0100
  • 2cada3c143 Merge branch 'master' into docking omar 2019-02-11 18:53:24 +0100
  • d16dbc5b87 Examples: SDL: Using the SDL_WINDOW_ALLOW_HIGHDPI flag. (#2306, #1676) [@rasky] omar 2019-02-11 18:45:08 +0100
  • a79785c0b9 ImDrawData: Added FramebufferScale field (currently a copy of the value from io.DisplayFramebufferScale). This is to allow render functions being written without pulling any data from ImGuiIO, allowing incoming multi-viewport feature to behave on Retina display and with multiple displays. If you are not using a custom binding, please update your render function code ahead of time, and use draw_data->FramebufferScale instead of io.DisplayFramebufferScale. (#2306, #1676) Examples: Metal, OpenGL2, OpenGL3: Fixed offsetting of clipping rectangle with ImDrawData::DisplayPos != (0,0) when the display frame-buffer scale scale is not (1,1). While this doesn't make a difference when using master branch, this is effectively fixing support for multi-viewport with Mac Retina Displays on those examples. (#2306) Also using ImDrawData::FramebufferScale instead of io.DisplayFramebufferScale. Examples: Clarified the use the ImDrawData::DisplayPos to offset clipping rectangles. omar 2019-02-11 18:38:07 +0100
  • ef7940699e Examples: Metal: Removed unnecessary loop. Fixed OSX Clang warning in imstb_truetype. (#1929, #1873) Omar Cornut 2019-02-11 17:38:34 +0100
  • f3a87db1c6 Added CMakeFile tested on linux only Matteo Mandelli 2019-02-09 17:11:25 +0000
  • 4b41d3b280 ImFont: Rearranged members toward an optimal CalcTextSize() loop. Removed comments from destructor. Made constructor more explicit. omar 2019-02-09 15:54:01 +0100
  • cf5a93ac37 Added premake file. TheCherno 2019-02-09 11:59:05 +1100
  • 539f69b950 Updated STB libraries to latest (drift has been reduced with nothings/stb as most of our changes were merged). Using [DEAR IMGUI] markers when changed. omar 2019-02-08 15:24:59 +0100
  • 00c637961b Demo: Font selector allow selecting fonts with same debug name. (#2332) omar 2019-02-08 14:50:36 +0100
  • afc36cf802 Window: Fixed initial width of collapsed windows not taking account of contents width (broken in 1.67). (#2336, #176) omar 2019-02-08 14:34:42 +0100
  • 0cf2c05925 Fixed auto-resize collapse bug introduced by d9a84de Jeremy Simpson 2019-02-07 20:05:24 -0800
  • 1b63ded8fa Tabs: Fixed border (when enabled) so it is aligned correctly mid-pixel and appears as bright as other borders. omar 2019-02-07 12:06:48 +0100
  • 4a3a895be9 Merge branch 'master' into docking omar 2019-02-06 14:47:53 +0100
  • 29d38b59d0 ListBox/InputTextMultiline: Better optimized when clipped / non-visible. omar 2019-02-06 14:46:14 +0100
  • 62084aac0f DragScalarN, SliderScalarN, InputScalarN: Removed unnecessary string id after the integer PushID() calls. omar 2019-02-06 14:39:00 +0100
  • f366828dd2 Minor tweaks to reduce false positive of PVS Studio static analyzer. omar 2019-02-06 13:08:30 +0100
  • 5bdc7d7a6f Menus: Tweaked horizontal overlap between parent and child menu (to help convey relative depth) from using style.ItemSpacing.x to style.ItemInnerSpacing.x, the later being expected to be smaller. (#1086) omar 2019-02-06 12:32:10 +0100
  • e3dd95d335 Added IsItemActivated() as an extension to the IsItemDeactivated/IsItemDeactivatedAfterEdit functions which are useful to implement variety of undo patterns. (#820, #956, #1875) omar 2019-02-06 11:52:42 +0100
  • c59611a3b3 InputText: Fixed redo buffer exhaustion handling (rare) which could corrupt the undo character buffer. (#2333) omar 2019-02-05 23:38:57 +0100
  • 97ed97b8ce Plot: Register an ID to take the click the same way as other framed widgets. Set HoveredId in the FramePadding zone (between inner_bb and frame_bb). omar 2019-02-05 18:59:42 +0100
  • cef4e086ba Internals: Selectable: Fixed rendering width miscalculation when starting pos is not line start pos, which would generally be unnoticeable. Could affect group lock X with a smaller SetCursorPos value but that's unlikely to be used. omar 2019-02-05 18:10:33 +0100
  • b8c24aff4c Internals: EndGroup: Removed unnecesary parameter to ItemSize() omar 2019-02-05 18:03:27 +0100
  • 521470b3cd Internals: Removed unnecessary code. omar 2019-02-05 17:51:01 +0100
  • f6fbb99a9c Examples: SDL: Fix for Emscripten/Android/iOS on Docking branch. omar 2019-02-05 15:45:26 +0100
  • 5a95c77388 Merge branch 'master' of https://github.com/ocornut/imgui omar 2019-02-05 13:53:09 +0100
  • be107ba8f8 Merge branch 'master' into docking omar 2019-02-05 13:45:21 +0100
  • b980e0077a Tabs: Moved Tab List Popup to left-side to match docking button. Highlight selected tab. (#261, #351) omar 2019-02-05 13:39:48 +0100
  • d38f4dc143 Tabs: Non-docking tab bars are storing names to allow tab list button + whole style scaling. Added ImGuiTabBarFlags_TabListPopupButton flag to show a popup button on manual tab bars. Locking FramePadding for the scope of a tab-bar to avoid sheering/clipping of tab item. Made scaling of tab ellipsis less awkward. (#261, #351) omar 2019-02-05 13:16:09 +0100
  • d93e3c17fc ImGuiTextBuffer: Fix size() to allow using ImGuiTextBuffer with resize(0) patterns. omar 2019-02-05 13:13:35 +0100
  • 65c972e9e4
    Update README.md omar 2019-02-05 11:45:19 +0100
  • f7c879eb60 RadioButton: Fixed label horizontal alignment to precisely match Checkbox(). + Internals: Checkbox, RadioButton: Single call to ItemSize() for flow layout purpose. omar 2019-02-04 23:19:19 +0100
  • 0b05ba18df Internals: DragScalar, SliderScalar: Calling ItemSize before ItemAdd as with every other widgets so we can more easily rearrange the signature of ItemXXX functions (toward allowing non-rounded sizes for scaling and flow layout). omar 2019-02-04 22:36:46 +0100
  • 8e44aacc8e Fonts: Fixed crash if FontGlobalScale is zero. Correctly debug naming default font if not 13 px. Demo: Moved PopupRounding along with other rounding values. Metrics: Displaying indexes with idx to be correct / less misleading. omar 2019-02-04 14:38:35 +0100
  • f902435a53 Docking: Fixed less of node size/pos caused by 1f2bdd37 (#2109) omar 2019-02-03 18:58:07 +0100