bdb3d72d37
Examples: Win32: Fixed handling of mouse wheel messages to support finer position messages (typically sent by track-pads). (#1874)
omar2018-06-11 17:34:56 +02:00
7acb46bec5
Examples: Comments to make ImGuiConfigFlags_NoMouseCursorChange more visible (#1027). + Allegro5: Added support for ImGuiConfigFlags_NoMouseCursorChange flag.
omar2018-06-11 12:33:51 +02:00
85f9694bd4
Big example binding refactor (manually imported from Viewport branch, stripped out of Viewport code). (#1870) Read examples/README.txt for some details. ImDrawData: Added DisplayPos, DisplaySize fields honored by all backends (not strictly necessary to honor just now, but doing it to be ahead)
omar2018-06-08 19:37:33 +02:00
f5bf9f509c
ImFontConfig: Added GlyphMinAdvanceX/GlyphMaxAdvanceX settings useful to make a font appears monospaced, particularly useful for icon fonts. (#1869)
omar2018-06-08 12:46:36 +02:00
8e48ab6b19
Nav: Addendum: only set io.WantSetMousePos if necessary. (#1867)
omar2018-06-07 18:08:59 +02:00
e3710448ae
Nav: Removed an unnecessary assertion that could fail when using Mouse and Keyboard simultaneously with the NavEnableSetMousePos flag. (#1867)
omar2018-06-07 18:04:44 +02:00
929529a0db
SliderFloat(): When using keyboard/gamepad and a zero precision format string (e.g. "%.0f"), always step in integer units. (#1866)
omar2018-06-07 13:29:54 +02:00
b3a5b8debd
Popup: Improved handling of (erroneously) repeating calls to OpenPopup() to not fully close/re-open the popup so its child popups won't get closed. (#1497, #1533, #1865). Followup/fix the change made in deab2ab015omar2018-06-06 19:25:49 +02:00
f63a404df0
Added missing IMGUI_API markers in non-inline section of the IMGUI_DISABLE_OBSOLETE_FUNCTIONS block: old Begin(), InputFloat().
omar2018-06-06 15:40:40 +02:00
d44faa165a
Added GetGlyphRangesChineseSimplifiedCommon() helper that returns a list of ~2500 most common Simplified Chinese characters. Renamed GetGlyphRangesChinese() to GetGlyphRangesChineseFull() to distinguish other variants and discourage using the full set. (#1859) Changed the accumulative encoding to remove the implicit +1 which only saved a little space and made things more confusing.
omar2018-06-06 12:35:36 +02:00
2a56105f85
TreeNodeEx(): The helper ImGuiTreeNodeFlags_CollapsingHeader flag now include ImGuiTreeNodeFlags_NoTreePushOnOpen. The flag was already set by CollapsingHeader(). The only difference is if you were using TreeNodeEx() manually with ImGuiTreeNodeFlags_CollapsingHeader and without ImGuiTreeNodeFlags_NoTreePushOnOpen. In which case you can remove the ImGuiTreeNodeFlags_NoTreePushOnOpen flag from your call (ImGuiTreeNodeFlags_CollapsingHeader & ~ImGuiTreeNodeFlags_NoTreePushOnOpen). (#1864)
omar2018-06-06 11:39:29 +02:00
21f553fa55
stb_textedit, InputText(): Fixed Undo after pasting large amount of text (Redo will still fail when undo buffers are exhausted, but text won't be corrupted). See issue 620 in nothings/stb/
omar2018-06-05 23:29:06 +02:00
916528080e
InputTextMultiline(): Fixed double navigation highlight when scrollbar is active. (#787)
omar2018-06-05 16:16:54 +02:00
512ffa37bd
Nav: Fixed clipped scoring when exiting a NavFlattened child back to a parent item (clipping not desirable then). (followup and fix to c665c15). (#787)
omar2018-06-05 16:12:46 +02:00
6d98c0323b
Nav: Added support for PageUp/PageDown (explorer-style: first aim at bottom/top most item, when scroll a page worth of contents). (#787)
omar2018-06-05 15:49:33 +02:00
2bdf0b54a2
Changelog formatting update, Todo, comments. Tweak Child demo. Shuffle some code in NavUpdate().
omar2018-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)
omar2018-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)
omar2018-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.
omar2018-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)
omar2018-05-30 16:31:34 +02:00
a2198bcf6b
Made mouse drag distance calculation more robust to invalid mouse position. (#1845)
omar2018-05-29 10:47:18 +02:00
08e20ae465
Internals: Reintroducing LastActiveIdTimer because it is useful and to reduce merge conflicts. (#1537)
omar2018-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).
omar2018-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).
omar2018-05-28 21:05:08 +02:00
92b7d6bc4f
Added ImGuiDragDropFlags_AcceptNoPreviewTooltip flag to disable drag source tooltip from the target site (#143)
omar2018-05-28 20:50:52 +02:00
7fd9199a1d
Internals: Selectable: Renamed variables. Todo update.
omar2018-05-24 19:10:40 +02:00
f843facba4
Internals: PushItemFlag() flags are inherited by BeginChild().
omar2018-05-28 15:30:42 +02:00
929522febe
Missing examples changelog bits and todo list
omar2018-05-25 12:51:24 +02:00
9770c8b21d
Examples: OpenGL3: Removed unnecessary backup/restore of GL_ELEMENT_ARRAY_BUFFER_BINDING since this is part of the VAO state. (#1836)
omar2018-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)
omar2018-05-24 18:05:27 +02:00
5fd23eeb74
Examples: iOS: Fixed missing call to CreateContext() + various shallow coding style tweaks. (#1835)
omar2018-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)
omar2018-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)
omar2018-05-23 22:57:54 +02:00
bef0a13283
Examples: Comments about GLSL version not being the same as GL context version. (#1828)
omar2018-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)
omar2018-05-21 10:36:50 +02:00
bf56b6b9a5
ColorEdit3, ColorEdit4, ColorButton: Added ImGuiColorEditFlags_NoDragDrop flag to disable ColorEditX as drag target and ColorButton as drag source. (#1826)
omar2018-05-21 10:13:21 +02:00
7c7e96e1aa
ImVector: added erase(it first, it last) helper. Added erase_unsorted(it) helper. + todo fixes/additions
omar2018-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
omar2018-05-17 18:10:20 +02:00
d5c8f404b2
Remove trailing white spaces.
omar2018-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
omar2018-05-16 18:34:12 +02:00
86f8cdbd98
Comments + Internals: Selectable: decoupled internal flags and removed their menu / menu-item semantic as upcoming changes are requiring more flexibility.
omar2018-05-16 14:08:06 +02:00
640c056602
TreeNode: Fixed nodes with ImGuiTreeNodeFlags_Leaf flag always returning true which was meaningless. Tweak demo.
omar2018-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)
omar2018-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)
omar2018-05-14 19:44:00 +02:00
036dce634e
Version 1.62 WIP
omar2018-05-14 17:59:12 +02:00
721ca97d95
ImVector: Tweaked reserve() flow to avoid calling MemFree(NULL) which is unnecessary. (#1796)
Kirill Artemovandomar2018-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)
omar2018-05-14 17:47:22 +02:00
78b28d545f
Version 1.61 + todo additions
omar2018-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)
omar2018-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.
omar2018-05-13 23:41:43 +02:00
725c13ca68
Fix for atof with glibc.
omar2018-05-13 22:43:43 +02:00
2a2bb8970d
Added ImAtof, ImCeil, ImFloorStd to IMGUI_DISABLE_MATH_FUNCTIONS for consistency. Configuration comments.
omar2018-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.
omar2018-05-13 20:02:47 +02:00
f8ca7f45c4
Comments about AddConvexPolyFilled(), PathFillConvex() requiring a clockwise order path. (#1811)
omar2018-05-13 15:55:15 +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)
omar2018-05-12 16:48:21 +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)
omar2018-05-10 14:02:28 +02:00
91e39e72a3
Combo: Horizontally offset items using WindowPadding instead of Indent, for consistency.
omar2018-05-09 22:53:32 +02:00
773d484009
Internals: Made ContentsRegionRect absolute to reduce confusion. Renamed InnerRect to InnerMainRect, renamed WindowRectClipper to OuterRectClipped.
omar2018-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.
omar2018-05-09 18:59:16 +02:00
39f4761ff7
TODO list update + Changelog and comments for #1803.
omar2018-05-09 15:47:41 +02:00
4cabf599c4
Data types: Fix format srtings with leading blanks. Fix ColorEdit4() to not use obsolete formats (when using IMGUI_DISABLE_OBSOLETE_FUNCTIONS) (#643)
omar2018-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.
omar2018-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.
omar2018-05-07 10:35:18 +02:00
8da0d42ef2
Moved DragScalar, InputScalar, SliderScalar to imgui.h as well as ImGuiDataType (#320, #643, #708, #1011)
omar2018-05-04 21:35:23 +02:00
c5fb929555
Data types: Fixed empty format string (or no % specifier) breaking the parsing back of values.
omar2018-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.
omar2018-05-08 11:02:38 +02:00
023cc25c7c
Internals: Removed unnecessary allocation indirection for g.LogClipboard (this only made sense when there was a global context instance)
omar2018-05-07 22:15:25 +02:00
35e74c72ab
imgui_freetype: skip missing glyphs as well to match our stb loader (#1671, #1703)
omar2018-05-07 20:32:17 +02:00
6eda9ed3fb
Skip missing font glyphs V2 revert changes to stb_truetype.h (
omar2018-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)
omar2018-05-07 17:59:23 +02:00
807c4f0ea4
Ran a spell checker for sanity.
omar2018-05-03 21:11:53 +02:00
4310bad32a
Examples: DirectX9: Comments, updated changelog, notes about usage of imconfig.h (#1790, #1687)
omar2018-05-07 11:52:11 +02:00
d0051ce5cb
add renderstate D3DRS_SHADEMODE for Dx9 impl
SR_teamandomar2018-05-03 12:01:41 +03: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)
omar2018-05-04 20:41:21 +02:00