Commit Graph

  • 2bdf0b54a2 Changelog formatting update, Todo, comments. Tweak Child demo. Shuffle some code in NavUpdate(). omar 2018-06-05 13:39:42 +02:00
  • c665c15a7d Nav: When entering into a NavFlattened child we only consider the visible items for scoring (note that this only work assuming the NavFlattened child window has interactive items). Fixes accidentally hoping into a NavFlattened child. (#767) omar 2018-06-04 17:10:06 +02:00
  • f4120e20d5 Nav: NavFlattened: Fixed navigation miscrolling parent window when the current window is scrolling enough to keep the item in view. Fix feature added in e11610d6, typically affect large navigation steps (used by PageUp/PageDown). + comments (#787) omar 2018-06-04 16:30:42 +02:00
  • 5a7e98c7cf Internals: Nav: Removed ParentID from move result (unused, would need to be full-filled for PageUp/PageDown code) + FAQ typo fix. omar 2018-06-04 14:44:19 +02:00
  • 948009a8b2 Intensive FAQ answer for the million of people asking the same questions over and over again. (#1848, #1791, #1840, #1493, #1295) omar 2018-05-30 16:31:34 +02:00
  • 0903a12c2a Fixed documentation example (#1847) Marc J. Schmidt 2018-05-30 10:28:27 +02:00
  • a2198bcf6b Made mouse drag distance calculation more robust to invalid mouse position. (#1845) omar 2018-05-29 10:47:18 +02:00
  • 08e20ae465 Internals: Reintroducing LastActiveIdTimer because it is useful and to reduce merge conflicts. (#1537) omar 2018-01-05 15:33:24 +01:00
  • d4b151076c Internals: Added BeginDragDropTooltip() internal function to convey semantic (drag and drop tooltip doesn't get clipped within display boundaries). Revert part of 3218666fb9. (#1739, #143). omar 2018-05-28 21:34:32 +02:00
  • 3218666fb9 Made drag source tooltip display at the same position as a regular tooltip to avoid discontinuity where dynamically swapping tooltip at the target site. Made drag source tooltip override previous tooltip if any. (#1739, #143). omar 2018-05-28 21:05:08 +02:00
  • 92b7d6bc4f Added ImGuiDragDropFlags_AcceptNoPreviewTooltip flag to disable drag source tooltip from the target site (#143) omar 2018-05-28 20:50:52 +02:00
  • 7fd9199a1d Internals: Selectable: Renamed variables. Todo update. omar 2018-05-24 19:10:40 +02:00
  • f843facba4 Internals: PushItemFlag() flags are inherited by BeginChild(). omar 2018-05-28 15:30:42 +02:00
  • 0e83d74698 Documentation: FAQ, ID Stack, Fonts (#1839, #1840), #1842) omar 2018-05-27 22:32:46 +02:00
  • 929522febe Missing examples changelog bits and todo list omar 2018-05-25 12:51:24 +02:00
  • 03c8a78f04 Merge branch 'master' into viewport omar 2018-05-25 12:44:56 +02:00
  • 9770c8b21d Examples: OpenGL3: Removed unnecessary backup/restore of GL_ELEMENT_ARRAY_BUFFER_BINDING since this is part of the VAO state. (#1836) omar 2018-05-25 12:08:08 +02:00
  • 251f178a6f Drag and Drop: Source doesn't report as hovered (at a lower-level). Source disable AllowOverlap flag if any set. (#143) omar 2018-05-24 18:05:27 +02:00
  • 5fd23eeb74 Examples: iOS: Fixed missing call to CreateContext() + various shallow coding style tweaks. (#1835) omar 2018-05-24 17:42:50 +02:00
  • b88fbd69cc Drag and Drop: BeginDragDropSource(): Offset tooltip position so it is off the mouse cursor, but also closer to it than regular tooltips, and not clamped by viewport. (#1739) omar 2018-05-23 23:18:12 +02:00
  • 09ea376a6a BeginCombo(), BeginMainMenuBar(), BeginChildFrame(): restore modified style at end of Begin instead of End so doesn't affect child windows, BeginTooltip() etc.. (allowed since 7b6b7038c5) omar 2018-05-23 22:57:54 +02:00
  • 002e513b82 Added float GetWindowDpiScale(). (#1542, #1676) omar 2018-05-23 18:23:58 +02:00
  • ed84b2aaeb Viewport, Platform: Fixed a crash if the back-end set the PlatformRequestMove/PlatformRequestSize flags while viewports were disabled (it happened in the SDL back-end, and generally we want to tolerate it to make back-end implementation simpler). (#1542) omar 2018-05-23 18:01:50 +02:00
  • bef0a13283 Examples: Comments about GLSL version not being the same as GL context version. (#1828) omar 2018-05-21 11:28:30 +02:00
  • 663e2c9237 Examples: GLFW: Made it possible to Shutdown/Init the backend again (by reseting the time storage properly). Changelog. Added to Vulkan example. (#1827) omar 2018-05-21 10:36:50 +02:00
  • e8a72d3e72 Examples: GLFW* Make subsequent window creation possible. ice1000 2018-05-21 07:35:09 +08:00
  • bf56b6b9a5 ColorEdit3, ColorEdit4, ColorButton: Added ImGuiColorEditFlags_NoDragDrop flag to disable ColorEditX as drag target and ColorButton as drag source. (#1826) omar 2018-05-21 10:13:21 +02:00
  • 1176460e44 Viewport: Fixed using ImGuiConfigFlags_ViewportsNoMerge always showing the Debug window by testing the Active flag as well. (#1542) omar 2018-05-19 20:45:49 +02:00
  • 7c7e96e1aa ImVector: added erase(it first, it last) helper. Added erase_unsorted(it) helper. + todo fixes/additions omar 2018-05-18 20:33:00 +02:00
  • 6c684ae39b Fixed GCC pre-8 build. (#1822) + added bonus the non-ASCII character pasted from GCC breaks my SourceTree/Git combo omar 2018-05-17 18:10:20 +02:00
  • 01429e7d16 Merge branch 'master' into viewport omar 2018-05-17 15:03:56 +02:00
  • 64b1645deb Disabled GCC 8.1.0 warnings -Wclass-memaccess (#1822) omar 2018-05-17 14:19:20 +02:00
  • d5c8f404b2 Remove trailing white spaces. omar 2018-05-17 14:12:37 +02:00
  • ede5059e69 Internals: Forward declaring and commenting internal structures. Renamed ImGuiDrawContext to ImGuiWindowTempData, but kept .DC member name for backward compatibility purpose omar 2018-05-16 18:34:12 +02:00
  • 4c35e00f49 Viewport: Made GetWindowViewport() not flag the window as written to. omar 2018-05-16 22:48:54 +02:00
  • 86f8cdbd98 Comments + Internals: Selectable: decoupled internal flags and removed their menu / menu-item semantic as upcoming changes are requiring more flexibility. omar 2018-05-16 14:08:06 +02:00
  • 7f960616e0 Viewport: When resizing/moving a window using the host OS/WM we attempt to merge back into host viewport. (#1542) omar 2018-05-16 14:34:46 +02:00
  • 1cafdb5b46 Viewport: Added GetWindowViewport() to query the current viewport for the current window. Comments. (#1542) omar 2018-05-15 11:04:07 +02:00
  • 640c056602 TreeNode: Fixed nodes with ImGuiTreeNodeFlags_Leaf flag always returning true which was meaningless. Tweak demo. omar 2018-05-14 23:36:37 +02:00
  • 99ff6fc7e4 Nav: Draft internal api to forward move request with loop/wrap options. Will rework for parallel scoring of two paths (as a generalization of the NavFlattened concept). (#787) omar 2018-05-14 20:06:41 +02:00
  • e11610d6ff Nav: To keep the navigated item in view we also attempt to scroll the parent window as well as the current window. (#787) omar 2018-05-14 19:44:00 +02:00
  • 036dce634e Version 1.62 WIP omar 2018-05-14 17:59:12 +02:00
  • 721ca97d95 ImVector: Tweaked reserve() flow to avoid calling MemFree(NULL) which is unnecessary. (#1796) Kirill Artemov 2018-05-05 04:24:27 +03:00
  • 19544629be Examples: OpenGL3: Trying to make the call to glBindSampler optional to make the example code easier to use/share with different context version. (#1806) omar 2018-05-14 17:47:22 +02:00
  • b0fb340b57 Merge branch 'master' into viewport omar 2018-05-14 13:15:21 +02:00
  • 78b28d545f Version 1.61 + todo additions v1.61 omar 2018-05-14 11:58:11 +02:00
  • d7cc4bc317 Demo: Tweaked custom rendering custom, added a Thickness drag. Clarified use of vertical/horizontal line. Add a single pixel demo (wowow) omar 2018-05-13 23:42:19 +02:00
  • 3f29ed6fd5 ColorEdit: Fixed not being able to pass the ImGuiColorEditFlags_NoAlpha or ImGuiColorEditFlags_HDR flags to SetColorEditOptions(). Demo tweak. omar 2018-05-13 23:41:43 +02:00
  • 725c13ca68 Fix for atof with glibc. omar 2018-05-13 22:43:43 +02:00
  • 2a2bb8970d Added ImAtof, ImCeil, ImFloorStd to IMGUI_DISABLE_MATH_FUNCTIONS for consistency. Configuration comments. omar 2018-05-13 21:30:10 +02:00
  • ff033f431b Added IMGUI_DISABLE_MATH_FUNCTIONS in imconfig.h to make it slightly easier to redefine wrappers to std maths functions such as fabsf(), fmodf(), etc. Comments. omar 2018-05-13 20:02:47 +02:00
  • f8ca7f45c4 Comments about AddConvexPolyFilled(), PathFillConvex() requiring a clockwise order path. (#1811) omar 2018-05-13 15:55:15 +02:00
  • e61b224b24 Update README.md omar 2018-05-12 19:20:54 +02:00
  • d53bae4c14 Demo: Fixing build due to using INT_MAX, UINT_MAX, LLONG_MAX, ULLONG_MAX. omar 2018-05-12 18:58:59 +02:00
  • 8adbf081af Demo: Renamed "fixed overlay" to "simple overlay" because it's not fixed any more! omar 2018-05-12 18:07:22 +02:00
  • a7a1b3b0a7 Demo: Added demo for DragScalar(), InputScalar(), SliderScalar(). (#643) omar 2018-05-12 17:53:34 +02:00
  • 7475c1e7dd Data types: DragScalar: Fixed speed of integer values tweaking with keyboard/gamepad when speed < 1. Enforce min/max bounds when power curves are used. SliderScalar: Fixed integer/slow tweaking. (#643) omar 2018-05-12 16:48:21 +02:00
  • 85f3ba844c Merge branch 'master' into viewport omar 2018-05-11 22:22:41 +02:00
  • fc7fc83f9e Data types: DragScalar, InputScalar: default parameters. Added IM_STATIC_ASSERT(). Comments. omar 2018-05-11 18:55:48 +02:00
  • 0dc18a6ca6 Documentation tweaks, comments omar 2018-05-11 16:54:50 +02:00
  • 8149408408 Merge branch 'data_types' omar 2018-05-11 16:48:50 +02:00
  • 090eb437ed Viewport, Platform: Cleaned up xxx_UpdateMouseCursor() functions to make them more consistent. (#1542) omar 2018-05-11 16:41:32 +02:00
  • d574604a5d Viewport, Platform: Win32: Fixed handling of io.WantSetMousePos + added a bunch of comments. GLFW, SDL2: Added handling of io.WantSetMousePos. (#1542) omar 2018-05-11 14:05:40 +02:00
  • 14f575ff76 Scrolling: Fixed a case where using SetScrollHere(1.0f) at the bottom of a window on the same frame the window height has been growing would have the scroll clamped using the previous height. (#1804) omar 2018-05-10 14:02:28 +02:00
  • 6eacddb50f Viewport: Changed Monitor field to use Pos+Size (more consistent), changed FullMin,FullMax to MainPos,MainSize. Made main viewport accessible in PlatformIO on first frame. Fixed casing of ImGuiViewportFlags_TopMost flag. (#1542) omar 2018-05-10 12:10:10 +02:00
  • 91e39e72a3 Combo: Horizontally offset items using WindowPadding instead of Indent, for consistency. omar 2018-05-09 22:53:32 +02:00
  • 773d484009 Internals: Made ContentsRegionRect absolute to reduce confusion. Renamed InnerRect to InnerMainRect, renamed WindowRectClipper to OuterRectClipped. omar 2018-05-09 22:02:59 +02:00
  • f83f566530 Internals: Nav: Extracted code into a NavClampToVisibleAreaForMoveDir() + fix debug code + inline some functions, removed obsolete EndChild() comment. omar 2018-05-09 18:59:16 +02:00
  • 39f4761ff7 TODO list update + Changelog and comments for #1803. omar 2018-05-09 15:47:41 +02:00
  • 895647a240 Fixed clipboard paste memory leak in SDL examples. (#1803) Elias Daler 2018-05-09 15:06:53 +03:00
  • 4cabf599c4 Data types: Fix format srtings with leading blanks. Fix ColorEdit4() to not use obsolete formats (when using IMGUI_DISABLE_OBSOLETE_FUNCTIONS) (#643) omar 2018-05-08 23:35:26 +02:00
  • ad2927888b Apply fix from data_types branch, some widgets broken when format string doesn't contains a %. Broken by 92f0165f85. Data_types branch fix c5fb929555. omar 2018-05-08 20:07:25 +02:00
  • 5f464877ed Internals: Declaring DragBehavior, SliderBehavior in there (no warantee given) as they may be useful to custom widgets. omar 2018-05-07 10:35:18 +02:00
  • 8da0d42ef2 Moved DragScalar, InputScalar, SliderScalar to imgui.h as well as ImGuiDataType (#320, #643, #708, #1011) omar 2018-05-04 21:35:23 +02:00
  • c5fb929555 Data types: Fixed empty format string (or no % specifier) breaking the parsing back of values. omar 2018-05-04 21:02:26 +02:00
  • 280c05e4f8 Fix to allow compiling in unity builds where stb_rectpack/stb_truetype may be already included in the same compilation unit. omar 2018-05-08 11:02:38 +02:00
  • f13f10e725 Settings: Comments (#923, #993) omar 2018-05-07 22:35:23 +02:00
  • 4ff23d3306 Merge branch 'master' into viewport omar 2018-05-07 22:23:58 +02:00
  • 0bf43b3a1b Settings: Added LoadIniSettingsFromDisk(), LoadIniSettingsFromMemory(), SaveIniSettingsToDisk(), SaveIniSettingsToMemory(), io.WantSaveIniSettings. (#923, #993) omar 2018-05-07 22:18:45 +02:00
  • 023cc25c7c Internals: Removed unnecessary allocation indirection for g.LogClipboard (this only made sense when there was a global context instance) omar 2018-05-07 22:15:25 +02:00
  • 35e74c72ab imgui_freetype: skip missing glyphs as well to match our stb loader (#1671, #1703) omar 2018-05-07 20:32:17 +02:00
  • 6eda9ed3fb Skip missing font glyphs V2 revert changes to stb_truetype.h ( omar 2018-05-07 19:57:53 +02:00
  • 787a475650 Skip missing font glyphs to 1) avoid using space for missing glyphs and 2) allow merging fonts with overlapping ranges. Demo: Fixed displaying ? instead of greyed out empty box. (#1671, #1703) omar 2018-05-07 17:59:23 +02:00
  • 807c4f0ea4 Ran a spell checker for sanity. omar 2018-05-03 21:11:53 +02:00
  • 4310bad32a Examples: DirectX9: Comments, updated changelog, notes about usage of imconfig.h (#1790, #1687) omar 2018-05-07 11:52:11 +02:00
  • d0051ce5cb add renderstate D3DRS_SHADEMODE for Dx9 impl SR_team 2018-05-03 12:01:41 +03:00
  • c7687fc1d6 Viewports: Comments on ImGuiConfigFlags_DpiEnableScaleViewports and ImGuiConfigFlags_DpiEnableScaleFonts. (#1542) omar 2018-05-07 10:44:08 +02:00
  • 3e8087458d SliderScalar, VSliderScalar(): Support for any data types. Tested with various ranges/limits. Note that Drag/Slider/Input currently fail if the format string doesn't preview the actual value. Will fix next. (#320, #643, #708, #1011) omar 2018-05-04 20:41:21 +02:00
  • 944f414cc6 Internals: A few selected math helpers are now using template to handle all supported types. Added ImPow() to wrap float/double in a standard manner without calling pow(double) when not needed in Drag code. omar 2018-05-04 18:13:27 +02:00
  • f4c16fbb99 Internals: Data types: Made format string optional. DragBehavior: Moved a bit of code outside of the template. Slider tidying up. Removed unnecessary call to fabsf(). omar 2018-05-04 15:31:17 +02:00
  • dcd26f1295 DragFloat, DragInt: Default format string is none is passed to the function. Fixed demo using old style %.0f. omar 2018-05-04 15:29:33 +02:00
  • dbe16b6a70 Made IMGUI_DISABLE_OBSOLETE_FUNCTIONS exceptionally not affect the layout of ImGuiIO. (#1695) omar 2018-05-04 14:55:38 +02:00
  • f47c756755 Internals: Missing const, some renaming. Tweak legacy fast path. omar 2018-05-03 21:53:26 +02:00
  • 0699ae161f DragInt, DragScalar: Actually made the fast-past handle the now-most-common case.. omar 2018-05-03 21:49:38 +02:00
  • 7640439747 DragInt: Patch old format strings to replace %f by %d when using the DragInt() entry point. (#320, #643, #708, #1011) omar 2018-05-03 21:28:59 +02:00
  • 17d3c6305e Ran a spell checker for sanity. omar 2018-05-03 21:11:53 +02:00
  • 069b284f17 Internals: Tidying up internal helpers. Fixed a case ImParseFormatTrimDecorations() can return an off by one (out of bound) pointer if the format string is invalid. Extracted ImParseFormatFindEnd() out of TrimDecorations so we can use it to find the format type and replace the %f in old Int apis. omar 2018-05-03 20:22:29 +02:00
  • 086c3925c4 Internals: Fixed DragInt* default format string. InputScalar(), InputScalarN(), removed InputFloatN(), InputInt(). Note that DragInt2/3/4 will %f format strings will currently be broken. (#320, #643, #708, #1011) omar 2018-05-03 19:36:47 +02:00
  • 6c932479f2 Internal: DragScalar(), InputScalar() now support signed/unsigned, 32/64 bits, float/double data types. (#320, #643, #708, #1011) omar 2018-05-03 17:32:50 +02:00
  • 93b8580a8d Internals: DragFloat: Fixed power handling. Use an temporary accumulator and no absolute values so we will be able to manipulate double as well as 64-bit integers. (#1011, #708, #320) omar 2018-05-03 14:05:17 +02:00