2d68e892a8
Added full "Dear ImGui" prefix to the title of "Dear ImGui Demo" and "Dear ImGui Metrics" windows. Shortened amount of nodes in columns>tree demo.
omar2019-05-27 17:28:18 +02:00
9c35344175
Comments, todo entries, moved ImGuiSelectableFlagsPrivate in higher ranges to match others.
omar2019-05-27 15:18:34 +02:00
70a4be07df
ColorEdit: Fixed the color picker popup only displaying inputs as HSV instead of showing multiple options. (#2587, broken in 1.69 by #2384).
omar2019-05-27 14:57:39 +02:00
affa7e2422
Examples: imgui_impl_opengl3: Fix empty printout on shader load. (#2584)
Mario Botschandomar2019-05-27 10:47:18 +02:00
958d75c00a
Style: Added style.WindowMenuButtonPosition (left/right, defaults to ImGuiDir_Left) to move the collapsing/docking button to the other side of the title bar.
omar2019-05-24 20:59:41 +02:00
6c3697f6f1
Internal: CloseButton takes an upper-left corner + a size to be consistent with similar widgets.
omar2019-05-24 17:47:51 +02:00
ec3ec24157
Internals: Extracted some of the tab bar shrinking code into a ShrinkWidths() function so columns/table can use it.
omar2019-05-23 20:36:30 +02:00
3fda90d6a7
Fixed InputScalar, InputScalarN, SliderScalarN, DragScalarN with non-visible label from inserting style.ItemInnerSpacing.x worth of trailing spacing.
omar2019-05-24 14:31:53 +02:00
7bc03f7155
Internals: Added InnerWorkRect equal to old InnerClipRect, added InnerWorkRectClipped actually clipped.
omar2019-05-22 23:54:32 +02:00
b85e97137d
Version tag is 1.71 WIP oops
omar2019-05-22 23:51:20 +02:00
a2eec8f5b5
Fix OuterRectClipped not being clipped correctly, which resulted in child window outside visible bound to not be marked with SkipItems. Broken in b50c61c961. + Comments on InnerClipRect being misleading. Demo: Tweak to sizing of child window in the Layout->Scrolling section.
omar2019-05-22 21:43:42 +02:00
34b881eb12
ImFontGlyphRangesBuilder: Fixed unnecessarily over-sized buffer, which incidentally was also not fully cleared. Fixed edge case overflow when adding character 0xFFFF. (#2568)
omar2019-05-21 12:45:27 +02:00
882d2c3aea
Fixed crash when appending with BeginMainMenuBar() more than once and no other window are showing. (#2567) + comments
omar2019-05-21 12:18:34 +02:00
392ab08580
BeginPopupContextItem(): Skip processing when SkipItems is set as LastItemId is unreliable and we assert when it is zero. + Minor comments on columns.
omar2019-05-20 16:46:26 +02:00
f242cd4d8a
Fixed GCC mem-access warnings (#2565) + using "if defined" more consistently for Clang.
omar2019-05-19 17:15:14 +02:00
31e3e861ef
Update changelog, comments, made empty/no-text clipboard return NULL as with other implementation. Minor style tweaks. (#2546) Fixed IMGUI_DISABLE_WIN32_FUNCTIONS not disabling IME code.
omar2019-05-18 17:44:09 +02:00
fc3c3de551
Fixed uses of IsItemDeactivated(), IsItemDeactivatedAfterEdit() on multi-components widgets and after EndGroup(). (#2550, #1875)
omar2019-05-13 19:05:41 +02:00
d3a387cc18
Fixed InputFloatX, SliderFloatX, DragFloatX functions erroneously reporting IsItemEdited() multiple times when the text input doesn't match the formatted output value (e.g. input "1" shows "1.000"). It wasn't much of a problem because we typically use the return value instead of IsItemEdited() here. (#1875, #2034)
omar2019-05-13 19:04:57 +02:00
64dbd932d2
Internal: Removed GetNextItemWidth(), relying on ItemAdd or NextItemData.ClearFlags() to clear the width data. Amend 5078fa20 and undo some of its effects of imgui_widgets.cpp
omar2019-05-13 15:29:00 +02:00
632469d2e5
Renamed SetNextTreeNodeOpen() to SetNextItemOpen(). Refactored SetNextItemXXX stuff to match SetNextWindowXXX code closely.
omar2019-05-13 15:11:25 +02:00
36e714a459
Internal: Storing flags for NextWindowData so that we can clear everything with a single write and remove dummy condition fields.
omar2019-05-13 14:45:41 +02:00
0b485f12d7
Internal: Minor tidying/reordering of sections within ImGuiContext / window DC.
omar2019-05-13 11:25:38 +02:00
7355c84701
Tweak EndGroup() to facilitate fixing #2550 later (currently should have no side-effect0. Demo: Add extra widget to status query test.
omar2019-05-12 21:35:05 +02:00
aca6ee1a91
Cast ImTextureId to void* before printing in Metrics window. (#2548)
omar2019-05-11 11:25:49 +02:00
87c5356d97
FreeType: Added RasterizerFlags::Monochrome flag to disable font anti-aliasing. (#2545) Combine with RasterizerFlags::MonoHinting for best results.
HolyBlackCatandomar2019-05-09 22:03:27 +03:00
ef13d95466
IO: changed AddInputCharacter(unsigned short c) signature to AddInputCharacter(unsigned int c). Examples/Backends: Don't filter characters under 0x10000 before calling io.AddInputCharacter(), the filtering is done in io.AddInputCharacter() itself. This is in prevision for fuller Unicode support. (#2538, #2541)
omar2019-05-11 10:33:56 +02:00
7c256fbd40
Internal: Extracted some of the Begin code into RenderWindowDecorations().
omar2019-05-10 22:45:52 +02:00
72951a1a85
Internal: Extracted some of the Begin code into RenderWindowTitleBarContents().
omar2019-05-10 22:38:10 +02:00
b50c61c961
Internal: Begin: Update rectangles before Scrollbar() which now uses them. Fixes 39eeda0.
omar2019-05-10 22:30:33 +02:00
39eeda0227
Internal: Scrollbar: Further sane simplification (using InnerMainRect instead of duplicating calculations).
omar2019-05-09 19:30:13 +02:00
37174c85e2
Internal: Scrollbar: Extracted scrollbar code for other uses (eg. table v2 scrolling without using a child window).
omar2019-05-09 19:05:36 +02:00
9534ef9b26
Separator: Revert 1.70 "Declare its thickness (1.0f) to the layout" change (c5d83d8a). It's not incorrect but it breaks existing some layout patterns. Will return back to it when we expose Separator flags.
omar2019-05-09 17:52:56 +02:00
e29176df53
Internals: Columns: Renamed fields. Comments and tweak. Moved a demo block.
omar2019-05-09 12:56:03 +02:00
a4d0b0efa4
Internal: Refactored Separator into SeparatorEx(), exposed ImGuiSeparatorFlags_SpanAllColumns in imgui_internal.h and support without. (#759) + misc comments
omar2019-05-09 12:55:01 +02:00
b7c2759f95
Columns: Fixed Separator from creating an extraneous draw command. Fixed Selectable with SpanAllColumns flag from creating an extraneous draw command. (#125)
omar2019-05-09 12:10:36 +02:00
42fc563fed
Version 1.71 WIP + fixed minor typo
omar2019-05-07 16:36:08 +02:00
d88121ff5b
Examples: DirectX9/10/11: Taking reference to device + subsequent merge of this in docking will fix DX9 issue #2524omar2019-05-06 10:11:02 +02:00
5ecc9d5865
Examples: Metal: Add GLFW+Metal example
Max Thrunandomar2019-05-01 18:31:42 -07:00
526e2303bc
Window: Fixed SetNextWindowSizeConstraints() with non-rounded positions making windows drift. (#2067, #2530)
omar2019-05-03 19:09:44 +02:00
9c1f02a42c
Misc: Made IMGUI_CHECKVERSION() macro also check for matching size of ImDrawIdx.
omar2019-05-03 18:40:36 +02:00
e2166db282
Internals: Fixed incorrect repeat delay/rate calculation in IsMouseClicked() with repeat flag leading to involontary but thankfully doubling the rate. Using our standard function, making the multiplicator explicit.
omar2019-05-03 15:06:06 +02:00
2dc81057ec
Selectable: With ImGuiSelectableFlags_AllowDoubleClick doesn't return true on the mouse button releas efollowing the double-click. Only first mouse release + second mouse down (double-click) returns true. Likewise for internal ButtonBehavior() with both _PressedOnClickRelease | _PressedOnDoubleClick. (#2503)
omar2019-05-03 14:28:57 +02:00
86f92fe756
Demo: Improved trees in columns demo. (#2136)
omar2019-05-02 20:19:53 +02:00
ce19cb465f
Internals: Rename GetContentRegionMaxScreen() -> GetWorkRectMax(). At this point this is mostly useful to facilitate merge of other branches.
omar2019-05-02 16:29:40 +02:00
db2d58a68b
Drag and Drop: Fixed drag source with ImGuiDragDropFlags_SourceAllowNullID and null ID from receiving click regardless of being covered by another window (it didn't honor correct hovering rules). (#2521)
omar2019-04-29 16:34:02 +02:00
0f2852806c
Amend 48a09a7 with changelog, breaking changes, tweak demo code for spacing. (#2518)
omar2019-04-29 12:44:17 +02:00
4dec744795
Tidying up BeginMenu() code + comments.
omar2019-04-28 23:49:57 +02:00
842a720e72
Popups: Closes popup at the time of FocusWindow(). Fixes right-click from closing all popups instead of aiming at the hovered popup level (regression in 1.67's ae76a1fd).
omar2019-04-28 22:21:23 +02:00
bda2cde68e
Popups: Closing a popup restores the focused/nav window in place at the time of the popup opening, instead of restoring the window that was in the window stack at the time of the OpenPopup call. (#2517) Among other things, this allows opening a popup while no window are focused, and pressing Escape to clear the focus again.
omar2019-04-28 21:52:12 +02:00
3276b12765
Internals: Added DataTypeApplyOp, DataTypeApplyOpFromText to imgui_internal.h
omar2019-04-28 20:55:51 +02:00
09db2f6dec
Fix 61d9258 when there is not scrollbar "Window: Fixed contents region being off by WindowBorderSize amount on the right when scrollbar is active."
omar2019-04-28 18:50:51 +02:00
4e81b2d093
Internals: Renaming. Renamed ImGuiPopupRef to ImGuiPopupData for consistency and added constructor.
omar2019-04-28 17:05:23 +02:00
00b3c830db
Internals: Begin: Moved OuterRectClipped/InnerMainRect/InnerClipRect computation higher up in the function, next to ContentsRect/WorkRect code. Removed commented out debug drawing code which is now available in Metrics window.
omar2019-04-26 23:21:30 +02:00
61d92580aa
Window: Fixed contents region being off by WindowBorderSize amount on the right when scrollbar is active.
omar2019-04-26 23:17:24 +02:00
5d799d76ea
Internals: Nav scrolling uses InnerMainRect instead of InnerClipRect.
omar2019-04-26 21:55:09 +02:00
c5d83d8af2
Separator: Declare its thickness (1.0f) to the layout, making items around separator more symmetrical.
omar2019-04-26 22:25:30 +02:00
56c3aaf6bd
Nav: Fixed Drag/Slider functions going into text input mode when keyboard CTRL is held while pressing NavActivate.
omar2019-04-25 16:17:48 +02:00
4dc4ace864
Window: Fixed window with the AlwaysAutoResize flag unnecessarily extending their hovering boundaries by a few pixels (this is used to facilitate resizing from borders when available for a given window). One of the noticeable minor side effect was that navigating menus would have had a tendency to disable highlight from parent menu items earlier than necessary while approaching the child menu. + Changelog fixed unfinished sentence and tweaks,
omar2019-04-25 11:46:55 +02:00
16b18b265e
MenuItem, BeginMenu: Fix undesirable tall frames in horizontal layout context, which would be visible when trying to use rounded selectable/menus. PushStyleVar: Added comments in the assert message. Minor tweaks.
omar2019-04-25 11:34:07 +02:00
6789ea3482
Examples: SDL: Gamepad support minor amend. Fixes ImGuiBackendFlags_HasGamepad not being set. Enable in Emscripten demo. Tweaks. (#2509, #2484).
omar2019-04-23 12:26:14 +02:00
16e9b8191b
Increased IMGUI_VERSION_NUM arbitrarily, help narrowing down reports that don't include a commit hash. Add comments.
omar2019-04-22 11:16:17 +02:00
5078fa208b
Added SetNextItemWidth() helper to avoid using PushItemWidth/PopItemWidth() for single items.
omar2019-04-18 18:29:28 +02:00
8d53f834ee
Demo: Documents: Fix misusage of ListBoxHeader().
omar2019-04-18 18:24:51 +02:00
0e46d65b03
Misc: Fixed PushItemWidth(-width) (for right-side alignment) laying out certain items (button, listbox, etc.) with negative sizes if the 'width' argument was smaller than the available width at the time of item submission,
omar2019-04-18 15:35:20 +02:00
a1cf7d636d
Internals: Rework CalcItemWidth / CalcItemSize but make their similarities and their differences more obvious. (#2449)
omar2019-04-18 14:48:36 +02:00
f355a40367
Added commentary about ContentRegion functions. Added internal GetContentRegionMaxScreen() to facilitate internal code at the moment.
omar2019-04-18 14:10:01 +02:00
9d4a893a77
Internals: Moved CalcItemSize next to CalcItemWidth, added comments to clarify their respective intent. Should have no side effect.
omar2019-04-18 13:46:45 +02:00
240dddff87
Combo, Slider: Improve rendering in situation when there's there's very little space available.
omar2019-04-18 15:00:40 +02:00
1aeee9d40f
Internals: Columns: Tweaks, renaming. Metrics: Show rectangles for child windows. Renamed SameLine() first parameter.
omar2019-04-17 12:26:51 +02:00
1d3ebef364
Columns: Fixed boundary of clipping being off by 1 pixel within the left column.
omar2019-04-17 21:50:15 +02:00
74a3878be4
emscripten: replace shell_minimal.html with 'soft fullscreen' version
Andre Weissflogandomar2019-04-15 20:55:52 +02:00
7baf45cffa
Metrics: Added "Show windows rectangles" tool to visualize the different rectangles.
omar2019-04-16 22:02:30 +02:00
742b5f4c68
Merged a bunch of small changes from Docking branch to reduce the difference between branches. Noticeable: horizontal alignment of CloseButton. Menu fill take account of border. Various stylistic tweaks to accomodate other changes in Docking.
omar2019-04-16 13:07:43 +02:00
311469e9d6
Internals: Columns: Some renaming, extracted code into GetColumnsID().
omar2019-04-16 11:58:17 +02:00