b335225caa
Internals: Extract ImFontAtlasBuildRender1bppRectFromString() out of ImFontAtlasBuildRenderDefaultTexData() + minor renaming, comments
omar2020-07-22 17:24:52 +02:00
e223bd8177
ImDrawList: changed AddCircle(), AddCircleFilled() default num_segments from 12 to 0.
omar2020-07-16 22:25:23 +02:00
4be8155002
Style Editor: Added preview of circle auto-tessellation when editing the corresponding value..
omar2020-07-16 21:51:49 +02:00
eefae08261
Nav: Fixed clicking on void from not clearing focused window. Amend d31fe97f7. (#3344, #2880)
omar2020-07-14 18:36:35 +02:00
550f110354
InputText, ImDrawList: Fixed assert triggering when drawing single line of text with more than ~16 KB characters. (#3349)
omar2020-07-12 23:51:13 +02:00
89685b346c
ImDrawList: Fixed minor bug introduced in 1.75 where AddCircle() with 12 segments would generate an extra unrequired vertex.
omar2020-07-09 11:21:31 +02:00
a07c8b6999
Texture-based thick lines: Fixes for AddCustomRect api, add IMGUI_HAS_TEXLINES define (temporarily) to facilitate working with test cases, Demo allows growing FrameBorderSize for testing
Omar2020-02-17 11:58:22 +01:00
21d9e8e1f4
Texture-based thick lines: Simplified line width calculation code and removed hack for thickness 1.0 lines
Ben Carterandomar2020-02-11 11:23:43 +09:00
403bf45245
Texture-based thick lines: Allow interpolation between textures for non-integer line widths
Ben Carterandomar2020-02-06 14:30:29 +09:00
741ab74b55
Texture-based thick lines: Improvements to code for drawing anti-aliased lines using textures
Ben Carterandomar2020-01-15 16:33:09 +09:00
1d3c3070d8
Texture-based thick lines: Initial version of AA line drawing using textures (press SHIFT to enable)
Ben Carterandomar2020-01-13 14:24:55 +09:00
8e4046e13b
Atlas build use GetCustomRectByIndex() + comments, rename, and shallow merge from tex_antialiasing_lines branch.
Ben Carterandomar2020-07-08 17:17:52 +02:00
0d03e1fafa
CI: Fix emscripten builds that broke due behavior change of emscripten SDK.
Rokas Kupstysandomar2020-07-07 12:49:25 +03:00
122febcdbf
IO: Added storage for PenPressure (unused by core library, to facilitate experiments) (#2372)
omar2020-06-29 15:03:11 +02:00
dd02a180b5
Windows: Amend 6b0cf2e6 to facilitate working in viewport branch + handle safe area padding and ConfigWindowsMoveFromTitleBarOnly.
omar2020-06-25 22:58:23 +02:00
6b0cf2e6ae
Windows: Fix unintended window size changes when resizing windows close to main viewport edges.
Rokas Kupstysandomar2020-06-24 14:00:35 +03:00
fed80b9537
Popups: Changed 'int mouse_buttons' to ImGuiPopupFlags. Added ImGuiPopupFlags_NoOpenOverExistingPopup, ImGuiPopupFlags_NoOpenOverItems. Refactored signature of BeginPopupContextWindow().
omar2020-06-19 15:26:02 +02:00
5acf6d861a
Popups: Added ImGuiPopupFlags type, ImGuiPopupFlags_AnyPopupId and ImGuiPopupFlags_AnyPopupLevel flags for IsPopupOpen().
omar2020-06-19 15:17:56 +02:00
1c35750ee0
Added ImGuiCond_None for consistency and for generated bindings needing this for enums mapping.
omar2020-06-23 19:45:31 +02:00
b83a1f3b00
BeginPopupModal() doesn't set the ImGuiWindowFlags_NoSavedSettings flag anymore, and will not always be auto-centered. (#915, #3091)
omar2020-06-23 17:52:13 +02:00
68389200c4
Internals: Comments about CalcWrapWidthForPos() (#778)
omar2020-06-23 16:12:19 +02:00
e0ec69d84b
Internals: Added ImageButtonEx() helper to temporarily bypass ID issues (#2464, #1390)
omar2020-06-23 15:47:07 +02:00
1a1dcea1a0
Internals: Initialize drawlist earlier in Begin() to facilitate detecting accidental draw earlier than legal. (#3311)
omar2020-06-20 22:03:50 +02:00
99f68d7958
Docs: Added FAQ entries removed old one which is misleading today. Misc tweaks.
omar2020-06-19 10:56:54 +02:00
9c2a36f573
Internals: clarified the code for ClampWindowRect().
omar2020-06-19 10:08:05 +02:00
8ead38c100
Clang: Reduce uses of __has_warning for overall sanity, as compilers are hostile to software targetting multiple compiler version.
omar2020-06-18 16:33:23 +02:00
704723744e
Disabled latest overzealous warnings from Clang
omar2020-06-18 16:19:51 +02:00
d31fe97f74
Popups: Fix an edge case where programatically closing a popup while clicking on its empty space would attempt to focus it and close other popups. (#2880)
ocornut2020-06-16 16:50:28 +02:00
1dfd0634cb
Internals: Allow ItemHoverable() to be used with id==0 to facilitate high-level read-only hover test in widget code.
ocornut2020-06-15 19:06:20 +02:00
99ab521024
Renamed OpenPopupOnItemClick() to OpenPopupContextItem(). Kept inline redirection function (will obsolete). + Removed CalcItemRectClosestPoint() entry point
ocornut2020-06-15 22:06:45 +02:00
c658cba22b
Comments, reworded some !(xxx && xxx) complex expression to be a little less confusing.
ocornut2020-06-15 16:18:30 +02:00
90c0c0c163
Columns: Lower overhead on column switches and switching to background channel. (second attempt for 9b3ce49)
omar2020-06-13 15:48:05 +02:00
d3b37180a3
ImDrawList: Fixed minor bug introduced in 1.75 where AddCircle() with 12 segments would generate an extra unrequired vertex.
Ben Carterandomar2020-06-13 14:14:07 +02:00
9b3ce494fd
Columns: Lower overhead on column switches and switching to background channel (some stress tests in debug builds went 3->2 ms). (#125)
ocornut2020-06-08 22:38:19 +02:00
84862ec78e
ImDrawList, ImDrawListSplitter, Columns: Fixed an issue where changing channels with different TextureId, VtxOffset would incorrectly apply new settings to draw channels. (#3129, #3163)
ocornut2020-06-08 20:53:11 +02:00
3bef743df4
ImDrawList: Clarifying and guarateeing that CmdBuffer.back()->UserCallback should be always be NULL.
ocornut2020-06-08 19:06:55 +02:00
b1f2eacdf3
ImDrawList: Prefixed internal functions with underscore, renamed UpdateClipRect() to _OnChangedClipRect(), UpdateTextureID() -> _OnChangedTextureID()
ocornut2020-06-08 18:38:23 +02:00
e35a813d57
ImDrawList: Separating PrimXXX sections from more internals helper in the header file.
ocornut2020-06-08 18:35:13 +02:00
117d57df5b
ImDrawList: Additional comments and extracted bits into ImDrawList::PopUnusedDrawCmd()
ocornut2020-06-08 18:21:10 +02:00
a6bb047bab
ImDrawList: Store header/current ImDrawCmd in instance to simplify merging code. Amend 0320e72, toward #3163, #3129ocornut2020-06-08 15:22:44 +02:00
57191fe3d0
Comments about limiting WindowRounding to a reasonable size.
ocornut2020-06-08 14:17:49 +02:00
f6120f8e16
ImDrawList, ImDrawListSplitter, Columns: Fixed an issue where starting a split when current VtxOffset was not zero would lead to draw commands with wrong VtxOffset. (#259ocornut2020-06-06 21:31:31 +02:00
0320e7257b
ImDrawList: Small refactor to create empty command when beginning the frame, allowing to simplify some functions.
ocornut2020-06-06 20:25:56 +02:00
003153b3ac
ImDrawList: Tweaks to make style consistent (using pointers, same local names). Added comments. Should be no-op.
ocornut2020-06-06 19:52:41 +02:00
e22e3f300a
ImDrawList: Fixed an issue when draw command merging or cancelling while crossing the VtxOffset boundary would lead to draw command being emitted with wrong VtxOffset value. (#3129, #3163, #3232)
thedmdandocornut2020-06-06 16:37:07 +02:00
5af8a8c7e8
CI: Extra warnings for builds with Clang. Backends: OpenGL3: Fix sign conversion warnings.
Rokas Kupstysandocornut2020-06-05 13:04:55 +03:00
dc49b14e29
Misc: Fix examples of using other OpenGL3 bindings in Makefiles.
Rokas Kupstysandocornut2020-06-05 14:47:49 +03:00
41e8837f59
Comments, adding some spacing in ImVec2() constructors.
ocornut2020-06-02 18:13:54 +02:00
3f26a07ee1
Backends: OpenGL: Fixed loader auto-detection to not interfere with ES2/ES3 defines. (#3246)
Giovanni Funchalandocornut2020-05-21 12:49:06 +01:00
5ddf60d8ce
Commit to facilitate branches merges
ocornut2020-05-25 18:28:25 +02:00
a06eb83359
Examples: GLFW+Vulkan, SDL+Vulkan: Fix for handling of minimized windows. (#3259)
ocornut2020-05-25 15:31:33 +02:00
39d17ca07f
Examples: Apple: catch events from the right and other mouse buttons when using Cocoa. (#3260)
Nicolas Burrusandocornut2020-05-25 07:34:12 +02:00
d29157ce58
Moved static array with non-trivial constructors outside of function seems to remove requirement of linking with libstdc++ on some compilers.
omar2020-05-24 12:32:31 +02:00
6b80bd9cc3
Fix GetGlyphRangesKorean() end-range to end at 0xD7A3 (instead of 0xD79D). (#348, #3217)
Maruandomar2020-05-10 07:01:54 +09:00
a6f4b0fd70
Nav, Menus: Fix vertical wrap-around in menus or popups created with multiple appending calls to BeginMenu()/EndMenu() or BeginPopup/EndPopup(). (#3223, #1207)
Rokas Kupstysandomar2020-05-11 13:58:40 +03:00
7b3d379819
FocusWindow(NULL) correctly steal active id from previous window. (#1738) amend b0a9bbf6omar2020-05-08 18:36:05 +02:00
685ca27d84
Backends: OpenGL: On OSX, if unspecified by app, made default GLSL version 150. (#3199)
Albert Vacaandomar2020-05-08 17:29:14 +02:00
4f33dd15c4
Internals: stand-in for large branches to facilitate merging.
omar2020-05-08 16:55:37 +02:00