5cb7040f66
Internals: Tracking dummy select scope id (currently always zero) to facilitate merging of the range_select branch. (#1861)
omar2019-02-01 12:14:12 +01:00
d5945aa25b
Internals: Minor changes to TreeNodeBehavior() and Selectable() for the benefit of fhe range_select branch. (#1861)
omar2019-02-01 12:11:27 +01:00
0d4a2a2cd0
Internals: Track ActiveIdHasBeenPressed (similar to ActiveIdHasBeenEdited). This is currently mostly for the benefit of the range_select branch. (#1861)
omar2019-02-01 12:04:42 +01:00
52a9f8bd3e
Merged from Docking branch: Various small changes, comments, typos fixes, moved blocks. To reduce overall drift. Should be no-op.
omar2019-02-01 10:26:08 +01:00
1fb57c97c6
Internals: InputScalarAsWidgetReplacement: Fixed seemingly unnecessary calling of SetActiveID/SetHoveredID every frame, which in turns allow us to remove the g.ActiveIdAllow/Block settings duplicated.
omar2019-01-30 15:41:20 +01:00
fb4f1ff7f6
InputText: Fixed a bug where ESCAPE would be first captured by the Keyboard Navigation code. (#2321, #787)
omar2019-01-30 15:16:09 +01:00
158995f271
InputText: Fixed a bug where ESCAPE would not restore the initial value in all situations. (#2321) [@relick]
omar2019-01-30 13:15:14 +01:00
0a233a505d
imgui-test: Added extra item info callbacks. Using nav_bb for interactions when possible. Comments, Demo tweaks.
omar2019-01-30 10:52:13 +01:00
ed240c910b
Demo: Fixed "Log" demo not initializing properly, leading to the first line not showing before a Clear. (#2318) [@bluescan]
omar2019-01-29 14:36:55 +01:00
8a4422b2fa
Fixed CloseCurrentPopup() on a child-menu of a modal incorrectly closing the modal. (#2308)
omar2019-01-27 23:54:17 +01:00
c362a96a3f
When resizing from an edge, the border is more visible and better follow the rounded corners. Border rendering moved to RenderOuterBorders so it can be called in a different order for docking. (#1495, #822)
omar2019-01-23 17:31:32 +01:00
f14f93ef6e
Fixed range-version of PushID() and GetID() not honoring the ### operator to restart from the seed value.
omar2019-01-21 16:05:41 +01:00
28901dd104
Internals: Tweaks. Comments about PushID/GetID public function.
omar2019-01-21 15:39:43 +01:00
f994b8aab8
ImHash: Moved crc32 table out of the function so it can be shared, also avoid cases were compiler tries to makes its initialization thread-safe.
omar2019-01-21 15:13:54 +01:00
1e4cf67a53
avoid floating point exception when _EM_OVERFLOW is enabled (#2303)
Thomas Rufandomar2019-01-21 16:43:07 +01:00
ea7206fd4f
Fixed using imgui_freetype.cpp in unity builds. (#2302)
omar2019-01-21 13:58:29 +01:00
54ba8a643e
Removed trailing spaces from text files. (#2038, #2299)
omar2019-01-20 22:23:29 +01:00
00ffdb9fa9
ImGuiTextBuffer: Added append() function (unformatted).
omar2019-01-20 22:21:26 +01:00
259f3c78a2
Examples: OpenGL2: Added (yet another) comment/instruction against using opengl2 with modern OpenGL. (#2297)
omar2019-01-20 18:10:52 +01:00
295ada0364
Examples: Win32: Using wc.lpszClassName instead of duplicating the literal. + tweak README format.
omar2019-01-17 18:04:35 +01:00
b8020032f9
Examples: Win32: Added support for mouse buttons 4 and 5 via WM_XBUTTON* messages. (#2264)
omar2019-01-17 16:55:23 +01:00
bebb07f12d
ImFontAtlas: Added 0x2000-0x206F general punctuation range to default ChineseFull/ChineseSimplifiedCommon ranges. (#2093)
omar2019-01-17 16:48:11 +01:00
872477548b
Examples: Win32: Using IsChild() to be compatible with windows created within a parent. (#1951, #2087, #2156, #2232)
omar2019-01-17 11:45:32 +01:00
14c40242db
Examples: DirectX9: Explicitly disable fog (D3DRS_FOGENABLE) before drawing in case user state has it set. (#2288, #2290)
Gilad Reichandomar2019-01-17 06:07:15 +01:00
f2c92808f8
EditorConfig: Further tweaks (#2038)
omar2019-01-16 22:02:42 +01:00
8cbb91261e
ImDrawList: Fixed AddCircle(), AddCircleFilled() angle step being off, which was visible when drawing a "circle" with a small number of segments (e.g. an hexagon). (#2287) [@baktery] + Demo tweaks
omar2019-01-16 17:47:49 +01:00
06aaf23877
Various tweaks and fixes as suggested by PVS Studio (thanks PVS Studio!)
omar2019-01-16 16:10:51 +01:00
882f1bc135
Examples: DirectX12: Targeting 10.0.14393.0 instead of 10.0.16299.0 (available on AppVeyor, and higher version doesn't seem necessary).
omar2019-01-16 15:10:31 +01:00
09f1cb642b
FreeType: Minor tweaks previous commit (#2285)
omar2019-01-15 21:50:43 +01:00
daac9c7559
By default ImGuiFreeType will use ImGui::MemAlloc()/MemFree(). ImGuiFreeType::SetAllocatorFunctions() can be used to specify custom allocator.
alexey_skryabinandomar2019-01-15 18:25:30 +05:00
f435aa193b
Examples: Win32: Added support for XInput games (if ImGuiConfigFlags_NavEnableGamepad is enabled).
omar2019-01-15 21:17:48 +01:00
133f112af0
Examples: Win32: Using GetForegroundWindow() instead of GetActiveWindow() to be compatible with windows created in a different thread. (#1951, #2087, #2156, #2232) [many people]
omar2019-01-15 20:26:33 +01:00
95ee99e6aa
Version 1.68 WIP
omar2019-01-15 20:19:05 +01:00
d38d7c6628
TODO update + internals: changed order or ImGuiLayoutType enums to allow using them for indexing.
omar2019-01-15 15:06:24 +01:00
b8c6e31c2d
Fixed cursor issue caused by 6890e08b when calling BeginChild/EndChild multiple times to reappend into a same child window. (#2282)
omar2019-01-15 15:05:56 +01:00
1da40df279
DragFloat: Fixed broken mouse direction change with power!=1.0. (#2174, #2206) [@Joshhua5]
omar2019-01-14 17:37:48 +01:00
6e41745f31
Added a bunch of diagnostic ignore to cope with Clang -Weverything being absurd. Also fixed two legit warnings. (#2277)
omar2019-01-13 18:57:46 +01:00
651130002f
ImFontAtlas: Fixed allocating for last bit (would only affect is that last codepoint is a multiple of 32). (#2270)
omar2019-01-11 15:25:43 +01:00
21828b08a0
ImFontAtlas: Rewrote FreeType based builder. - Fixed abnormally high atlas height. (#618) - Fixed support for any values of TexGlyphPadding (not just only 1). (#618) - Atlas width is now properly based on total surface rather than glyph count (unless overridden with TexDesiredWidth). (#618) - Fixed atlas builder so missing glyphs won't influence the atlas texture width. (#2233, #618) - Fixed atlas builder so duplicate glyphs (when merging fonts) won't be included in the rasterized atlas. (#618)
omar2019-01-10 22:11:27 +01:00
9a9712807e
ImFontAtlas: Rewrote stb_truetype based builder. - Atlas width is now properly based on total surface rather than glyph count (unless overridden with TexDesiredWidth). - Fixed atlas builder so missing glyphs won't influence the atlas texture width. (#2233) - Fixed atlas builder so duplicate glyphs (when merging fonts) won't be included in the rasterized atlas.
omar2019-01-10 13:38:51 +01:00
e4c19f5af1
ImFontGlyphRangesBuilder: Using 32-bits fields for storage instead of 8-bit ones, comments, todo.
omar2019-01-10 13:15:29 +01:00
7ffbcfe467
ImVector: Made reserve() another silly one-liner. It's not longer than other functions and our weird obsessions deserve to be carried with stringent consistence. + Comments
omar2019-01-09 15:56:37 +01:00
1f6e0b2f98
ImVector: Made a struct. Using T/T* in the code instead of value_type/iterator. Renamed index_from_pointer() to index_from_ptr() (was not documented, added in 1.63, users not supposed to use ImVector, hopefully not a big deal).
omar2019-01-09 14:11:31 +01:00
81eaa49773
Internals: Added comment index in imgui_internal.h
omar2019-01-10 13:14:51 +01:00
9ad341902d
ImDrawList: Optimized some of the functions for performance of debug builds where non-inline function call cost are non-negligible.
omar2019-01-08 17:37:22 +01:00
f53cd3ee0f
Internals: LowerBound: Use raw pointer typedefs, we never use iterator anywhere else in the codebase. Demo: Typo. C98 fix.
omar2019-01-08 16:26:45 +01:00
b33977bc15
Tests: Reworking hook prototypes for imgui-test to be faster and multi-context friendly.
omar2019-01-07 23:59:05 +01:00
c2db7f63bd
Selectable() should have an ID even though they are disabled, to be consistent with other widgets. Not sure of the reasoning ~1.41 which made this turn to 0.
omar2019-01-07 23:45:07 +01:00
3997e8b555
Fixed animated window titles from being updated when displayed in the CTRL+Tab list. + Adding overkill helpers for reusing buffers. (#787)
omar2019-01-07 22:46:42 +01:00
1353c74dcf
Comments/formatting on obsolete stuff
omar2019-01-06 16:37:57 +01:00
c3af134cc8
IO: Renamed InputCharacters[], marked internal as was always intended. AddInputCharacter() goes into a queue which can receive as many characters as needed during the frame. This is useful for automation to not have an upper limit on typing speed. Will later transition key/mouse to use the event queue later.
omar2019-01-06 16:37:42 +01:00
1705a81efb
Moved ImVector higher up in imgui :( because we will need it in ImGuiIO.
omar2019-01-04 19:18:19 +01:00
8b5f635624
Added alternative Rust bindings
omarandGitHub2019-01-06 14:43:43 +01:00
9ba202821f
Nav: Fixed an keyboard issue where holding Activate/Space for longer than two frames on a button would unnecessary keep the focus on the parent window, which could steal it from newly appearing windows. (#787)
omar2019-01-04 19:03:56 +01:00
d223d1e951
Added bindings in Readme. Added internal IMGUI_DEBUG_LOG() helper. Comments, missing breaking changes note relative to imgui_impl_xxxx changes, not really part of core but worth adding in the imgui.cpp breaking change section.
omar2019-01-04 15:27:52 +01:00
4483320f0a
Examples: Allegro 5: Properly destroy all globals on shutdown. (#2262)
DomReandomar2019-01-04 20:11:24 +08:00
6777544855
Added sanity check to debug parent/child ordering issues (they would generally manifest with an assert/crash in EndFrame bu tthis assert will catch some earlier).
omar2019-01-03 21:42:36 +01:00
ca6ac34f9d
Natvis: Added Hidden info about ImGuiWindow.
omar2019-01-03 18:38:20 +01:00
64c66529ae
Moving issue/pr template to docs/. Added links in README.
omar2019-01-03 13:35:53 +01:00
237109caa5
Internals: Extracted code out of EndFrame() into UpdateMouseMovingWindowEndFrame()
omar2019-01-02 23:05:59 +01:00
b3469fa94b
Alternative fix for bug introduced in d845135 (#1651), fix CTRL+Tab and fallback tooltip.
omar2019-01-02 22:52:09 +01:00
3e30bfd6c9
Revert "Fixes crash/assert bug introduced in d845135 (#1651): would assert when showing the CTRL+Tab list and or fallback "...." tooltip."
omar2019-01-02 22:56:17 +01:00