000c1fc221
Demo: Added comments / tweaks related to the popups.
omar2018-10-16 10:25:32 +02:00
5be915d6ab
Added ImGuiWindowFlags_NoMouseInputs which is basically the old ImGuiWindowFlags_NoInputs (essentially we have renamed ImGuiWindowFlags_NoInputs to ImGuiWindowFlags_NoMouseInputs). Made the new ImGuiWindowFlags_NoInputs encompass both NoMouseInputs+NoNav, which is consistent with its description. (#1660, #787)
omar2018-10-15 18:23:18 +02:00
90b50bd4c3
Window: Added ImGuiWindowFlags_NoBackground flag for consistency and to ease creating new flag combinations. Added ImGuiWindowFlags_NoDecoration helper flag which is essentially NoTitleBar+NoResize+NoScrollbar+NoCollapse. (#1660)
omar2018-10-15 18:00:04 +02:00
9cf94d5dd6
RenderText(), InputTextMultiline(): Optimization for large text by using memchr, wmemchr, wcschr when appropriate.
omar2018-10-12 12:34:47 +02:00
0fe48cbb61
Renamed misc/stl/imgui_stl.h,.cpp to misc/cpp/imgui_stdlib.h in prevision for other files.(#2035, #2096) Added misc/README file.
omar2018-10-12 11:14:21 +02:00
74c0309126
InputText: Clarified comments around ImGuiInputTextFlags_CallbackResize and other callbacks. (#2006, #1443, #1008)
omar2018-10-12 10:14:03 +02:00
ed4dcd9072
Shutdown: Unlock font atlas before destroying context, so we can destroy a context between NewFrame and EndFrame if we wait (facilitate main loop structures). Internals: GetWindowScrollMaxX(), GetWindowScrollMaxY()
omar2018-10-11 17:11:27 +02:00
cf0afb48ac
TextUnformatted: Using memchr(), fixed not properly testing for text_end bound + comments. Internals: Added ImStreolRange() + used in LogRenderedText() + comments.
omar2018-10-11 11:48:40 +02:00
d02b11dfbd
ImGuiTextBuffer: Avoid heap allocation when empty.
omar2018-10-10 17:02:14 +02:00
1efafa1d29
Comments + internal using Tab Stop terminology (ImGuiItemFlags_NoTabStop instead of !ImGuiItemFlags_AllowKeyboardFocus)
omar2018-10-10 12:01:40 +02:00
fbfe193fcd
Window, Inputs: Fixed resizing from edges when io.MousePos is not pixel-rounded by rounding mouse position input. (#2110)
omar2018-10-02 18:49:55 +02:00
ae7f833c69
Window: Resizing from edges (with io.ConfigResizeWindowsFromEdges Beta flag) extends the hit region of root floating windows outside the window, making it easier to resize windows. Resize grips are also extended accordingly so there are no discontinuity when hovering between borders and corners. (#1495, #822, #2110)
omar2018-10-02 18:43:10 +02:00
61d94ff88e
Renamed SetScrollHere() to SetScrollHereY(). Kept redirection function (will obsolete).
omar2018-09-26 21:30:37 +02:00
a7d3ae8937
BeginChild(): Fixed BeginChild(const char*, ...) variation erroneously not applying the ID stack to the provided string to uniquely identify the child window. This was undoing an intentional change introduced in 1.50 and broken in 1.60. (#1698, #894, #713) + reworked the Begin/BeginChild comments in imgui.h.
omar2018-09-26 21:23:42 +02:00
781a7950d7
ImVector: Fixed a oddly unqualified return type in the assignment operator (I assume C++ handles it nicely as this never warned anywhere, but it is completely unintentional).
omar2018-09-24 11:33:26 +02:00
788febf044
Examples: Vulkan: Fixed some minor discrepency in the SDL+Vulkan example to match the Glfw+Vulkan example. (cc #2097)
omar2018-09-24 10:13:01 +02:00
5719b23e01
ImDrawList: Fixed AddConvexPolyFilled() undefined behavior when passing points_count smaller than 3, in particular, points_count==0 could lead to a memory stomp if the draw list was previously empty.
omar2018-09-21 10:00:26 +02:00
7c3b9172ad
Examples: Referring to missing gamepad support in back-end that are missing it.
omar2018-09-20 10:37:55 +02:00
3d318a6577
ArrowButton(): Fixed arrow shape being horizontally misaligned by (FramePadding.y-FramePadding.x) if they are different. Demo: Added extra usage of AlignTextToFramePadding() in a more visible section.
omar2018-09-20 10:24:29 +02:00
c12da2a607
BeginMenu(): Fixed menu popup horizontal offset being off the item in the menu bar when WindowPadding=0.0f.
omar2018-09-14 11:27:18 +02:00
ca5dc0c019
ColorPicker: Replaced the Separator with a Spacing call. (#2068)
omar2018-09-14 10:05:53 +02:00
1afd29d382
Examples: Using "dear imgui" terminology in all examples headers/comments + fix minor typo.
omar2018-09-13 16:44:08 +02:00
ec04e8bb05
Fix MSVC's C4312 warning about casting user texture type to void* in ImageButton (#2080)
Elias Dalerandomar2018-09-12 23:58:45 +03:00
9cc63ba279
Internals: Replace unsigned short with ImWchar when dealing with character storage (missing cases) + in imgui_impl_ file keep using neutral type everywhere, added missing explicit cast in three bindings. (#2078)
omar2018-09-11 22:00:39 +02:00
201fcfd2e5
Internals: Replace unsigned short with ImWchar when dealing with character storage. (#2078)
ice1000andomar2018-09-11 12:04:45 -04:00
d014d0285a
DragFloat: Disabled using power curve when one edge is FLT_MAX (broken in 1.61). Disabled setting a default drag speed when one edge is FLT_MAX. (#2024)
omar2018-09-11 11:15:06 +02:00
af6cf25255
DragFloat: Fixed a situation where dragging with value rounding enabled or with a power curve erroneously wrapped the value to one of the min/max edge. (#2024, #708, #320, #2075).
omar2018-09-11 10:55:52 +02:00
e2436ca625
Nav, Focus: Fixed ImGuiWindowFlags_NoBringToFrontOnFocus windows not being restoring focus properly after the main menu bar or last focused window is deactivated.
omar2018-09-10 20:30:14 +02:00
7eadcf7d7d
example_glfw_vulkan was missing a reference to imgui_widgets.cpp (#2071, #2036)
MindSpunkandomar2018-09-09 22:32:57 +10:00
062b1f0463
Fixed calling SetNextWindowSize()/SetWindowSize() with non-integer values leading to accidental alteration of window position. We now round the provided size. (#2067)
omar2018-09-07 22:30:46 +02:00
2eaf722fd7
Fixed calling DestroyContext() always saving .ini data with the current context instead of the supplied context pointer. (#2066)
omar2018-09-07 17:23:55 +02:00
eb7033e75b
Version 1.66 WIP
omar2018-09-06 21:44:59 +02:00
5a679a45cc
Renamed stb_truetype.h to imstb_truetype.h, stb_textedit.h to imstb_textedit.h, and stb_rect_pack.h to imstb_rectpack.h. (#1718, #2036) If you were conveniently using the imgui copy of those STB headers in your project, you will have to update your include paths. The reason for this change is to avoid conflicts for projects that may also be importing their own copy of the STB libraries. Note that imgui's copy of stb_textedit.h is modified.
omar2018-09-06 15:58:25 +02:00
e58bc3d5b7
Refactor: Tweaked and improved the sectioning to facilitate grepping/moving around and applied to all files. (#2036)
omar2018-09-06 11:35:13 +02:00
0b18c11440
Refactor: Moved ImFile functions. (#2036)
omar2018-09-06 11:09:55 +02:00
ab64e8f993
Refactor: Moved one indentation level in the bulk of the ShowMetricsWindow() function. Should appear as a small diff if whitespaces changes are ignored. (#2036)
omar2018-09-06 11:05:23 +02:00
bb3184af74
Refactor: moved low-layout helpers to imgui_widgets.cpp (Spacing, Dummy, NewLine, Separator, etc.) (#2036)
omar2018-09-05 20:54:28 +02:00
cbdce80837
Internals: Refactor: Moved render functions to their own section. (#2036)
omar2018-09-05 20:36:36 +02:00
65876f348a
Nav: Removed the [Beta] tag from various descriptions of the gamepad/keyboard navigation system. Although it is not perfect and will keep being improved, it is fairly functional and used by many. (#787)
omar2018-09-05 17:33:00 +02:00
38cfcf9fbc
Tweak comments and indexes
omar2018-08-31 09:50:14 +02:00
8a216fe756
Refactor: Internals: Moved Tooltip functions in imgui.cpp in their own section + comments. (#2036)
omar2018-08-30 21:03:51 +02:00
fd2bfb7e07
Refactor: Internals: Moved Popup functions in imgui.cpp in their own section. (part 3) (#2036)
omar2018-08-30 21:00:51 +02:00
064b949bc2
Refactor: Internals: Moved Popup functions in imgui.cpp in their own section. (part 2) (#2036)
omar2018-08-30 20:59:24 +02:00
2a0d26e603
Refactor: Internals: Moved Popup functions in imgui.cpp in their own section. (part 1) (#2036)
omar2018-08-30 20:58:04 +02:00
df37a156e8
Refactor: Moved Scrollbar function from imgui.cpp to imgui_widgets.cpp, added file index (#2036)
omar2018-08-30 20:42:50 +02:00
728b2ef026
Refactor: Internals: Moved Navigation functions in imgui.cpp in their own section. DONE! (part 9) (#2036, #787)
omar2018-08-30 18:24:33 +02:00
cda45737ab
Refactor: Internals: Moved Navigation functions in imgui.cpp in their own section. (part 8) (#2036, #787)
omar2018-08-30 18:20:19 +02:00
acf3cc4c3f
Refactor: Internals: Moved Navigation functions in imgui.cpp in their own section. (part 7) (#2036, #787)
omar2018-08-30 18:18:24 +02:00
8a6fd237f6
Refactor: Internals: Restored new lines in NavUpdate() ... (part 6) (#2036, #787)
omar2018-08-30 18:13:34 +02:00
84eb2682b7
Refactor: Internals: Moved Navigation functions in imgui.cpp in their own section (moved NavUpdate which would not diff properly unless empty lines were removed, hence the previous patch). (part 5) (#2036, #787)
omar2018-08-30 18:10:15 +02:00
73052dc00c
Refactor: Internals: Removing new lines from NavUpdate solely because I couldn't find another way to get a neat diff/patch when moving it. (part 4) (#2036, #787)
omar2018-08-30 18:04:36 +02:00
6bda59e5b7
Refactor: Internals: Moved Navigation functions in imgui.cpp in their own section (extracted some code out of NavUpdate()). (part 3) (#2036, #787)
omar2018-08-30 18:01:19 +02:00
60ee4de56d
Refactor: Internals: Moved Navigation functions in imgui.cpp in their own section. (part 2) (#2036, #787)
omar2018-08-30 16:18:13 +02:00
ce58795bdf
Refactor: Internals: Moved Navigation functions in imgui.cpp in their own section. (part 1) (#2036, #787)
omar2018-08-30 16:11:49 +02:00
f2926f910f
Refactor: Internals: Moved Logging functions in imgui.cpp in their own section. (#2036)
omar2018-08-30 15:51:14 +02:00
15172f0742
Refactor: Internals: Moved Settings functions in imgui.cpp in their own section. (#2036)
omar2018-08-30 15:48:57 +02:00
98f618ed18
Refactor: Internals: Moved various functions in imgui.cpp (#2036)
omar2018-08-30 15:38:55 +02:00
5afd4b61f2
Refactor: Moved README, ChangeLog, TODO files to docs/ folder + update Changelog. (#2036)
omar2018-08-30 15:19:24 +02:00
2714f8fa23
Refactor: Moved Slider/Drag/Input functions + support DataType stuff from imgui.cpp to imgui_widgets.cpp (#2036)
omar2018-08-30 15:14:10 +02:00
c25f48b902
Refactor: Moved InputText functions from imgui.cpp to imgui_widgets.cpp (#2036)
omar2018-08-30 15:09:33 +02:00
ad0bfdcd95
Refactor: Moved ColorEdit/ColorPicker/ColorButton/etc. functions from imgui.cpp to imgui_widgets.cpp (#2036)
omar2018-08-30 15:06:05 +02:00
5dc954f5d7
Refactor: Moved Tree/Selectable functions from imgui.cpp to imgui_widgets.cpp (#2036)
omar2018-08-30 15:03:21 +02:00
a265c62636
Refactor: Moved Plot/Value functions from imgui.cpp to imgui_widgets.cpp (#2036)
omar2018-08-30 15:00:24 +02:00
0e9577d0da
Refactor: Moved Menu functions from imgui.cpp to imgui_widgets.cpp (#2036)
omar2018-08-30 14:58:55 +02:00
f26b8c1e07
Refactor: Moved Combo/ListBox functions from imgui.cpp to imgui_widgets.cpp (#2036)
omar2018-08-30 14:49:28 +02:00