haldean
8a2f6866a6
add _Show prefix to color flags that control inputs, rename __InputsMask to __ShowMask
...
This is anticipation of changing __InputsMask to control the format of
input colors, and adding _InputRGB and _InputHSV to change how input
colors are interpreted.
ago%!(EXTRA string=6 years)
omar
257f5d204e
Version 1.69 WIP
ago%!(EXTRA string=6 years)
omar
3c15dffc94
Version 1.68
ago%!(EXTRA string=6 years)
omar
76dbff37cd
Selectable: Tweaks for #2347 (demo, changelog, member position)
ago%!(EXTRA string=6 years)
haldean
b277cfffc8
Selectable: add support for specifying text alignment on selectables ( #2347 )
...
Adds a style variable to Selectable that allows clients to specify the
text alignment within Selectables, adds a section in the demo to
demonstrate selectable text alignment, and a pair of sliders in the
style editor to change selectable alignment on the fly.
In terms of implementation, this one is extremely simple: Selectable was
already calling an API that supports text alignment, but had hard-coded
it to top-left. This changes that to just pass the style variable
straight through to RenderTextClipped. Backwards-compatibility is
preserved by defaulting the text_align parameter to (0, 0), i.e.,
top-left.
This also fixes a bug with selectable text rendering that caused
right-aligned text in a selectable to be clipped incorrectly, because
the wrong clipping rectangle was being used.
ago%!(EXTRA string=6 years)
omar
2206df9e7a
Demo: Added Auto-Scroll option in Log/Console. Comments. Removed some ImColor() uses.
ago%!(EXTRA string=6 years)
omar
57a586b4f1
Font: Moved functions to internal block (not enforced). Made ConfigData pointer const. Added link to stb's notes.
ago%!(EXTRA string=6 years)
omar
00c637961b
Demo: Font selector allow selecting fonts with same debug name. ( #2332 )
ago%!(EXTRA string=6 years)
omar
f366828dd2
Minor tweaks to reduce false positive of PVS Studio static analyzer.
ago%!(EXTRA string=6 years)
omar
e3dd95d335
Added IsItemActivated() as an extension to the IsItemDeactivated/IsItemDeactivatedAfterEdit functions which are useful to implement variety of undo patterns. ( #820 , #956 , #1875 )
ago%!(EXTRA string=6 years)
omar
d38f4dc143
Tabs: Non-docking tab bars are storing names to allow tab list button + whole style scaling. Added ImGuiTabBarFlags_TabListPopupButton flag to show a popup button on manual tab bars. Locking FramePadding for the scope of a tab-bar to avoid sheering/clipping of tab item. Made scaling of tab ellipsis less awkward. ( #261 , #351 )
ago%!(EXTRA string=6 years)
omar
8e44aacc8e
Fonts: Fixed crash if FontGlobalScale is zero. Correctly debug naming default font if not 13 px. Demo: Moved PopupRounding along with other rounding values. Metrics: Displaying indexes with idx to be correct / less misleading.
ago%!(EXTRA string=6 years)
omar
ac6d474103
Removed io.DisplayVisibleMin/DisplayVisibleMax (which were marked obsolete and removed from viewport/docking branch already).
ago%!(EXTRA string=6 years)
omar
52a9f8bd3e
Merged from Docking branch: Various small changes, comments, typos fixes, moved blocks. To reduce overall drift. Should be no-op.
ago%!(EXTRA string=6 years)
omar
0a233a505d
imgui-test: Added extra item info callbacks. Using nav_bb for interactions when possible. Comments, Demo tweaks.
ago%!(EXTRA string=6 years)
omar
ed240c910b
Demo: Fixed "Log" demo not initializing properly, leading to the first line not showing before a Clear. ( #2318 ) [ @bluescan ]
ago%!(EXTRA string=6 years)
omar
8a4422b2fa
Fixed CloseCurrentPopup() on a child-menu of a modal incorrectly closing the modal. ( #2308 )
ago%!(EXTRA string=6 years)
omar
4e8e177cac
Persistently fixing some PVS-Studio static analyzer false positive warnings.
ago%!(EXTRA string=6 years)
omar
c3c2cd1e82
Fix various XCode and PVS-Studio static analyzer warnings ( #2309 )
ago%!(EXTRA string=6 years)
omar
2c38b32db1
Removed trailing spaces ( #2038 , #2299 )
ago%!(EXTRA string=6 years)
omar
f94ba546ba
Added checks for "zero-as-null-pointer-constant" warnings for older Clang ( #2299 , followup to #2277 )
ago%!(EXTRA string=6 years)
omar
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
ago%!(EXTRA string=6 years)
omar
06aaf23877
Various tweaks and fixes as suggested by PVS Studio (thanks PVS Studio!)
ago%!(EXTRA string=6 years)
omar
95ee99e6aa
Version 1.68 WIP
ago%!(EXTRA string=6 years)
omar
b8c6e31c2d
Fixed cursor issue caused by 6890e08b
when calling BeginChild/EndChild multiple times to reappend into a same child window. ( #2282 )
ago%!(EXTRA string=6 years)
omar
7a5058e3bf
Version 1.67
ago%!(EXTRA string=6 years)
omar
6e41745f31
Added a bunch of diagnostic ignore to cope with Clang -Weverything being absurd. Also fixed two legit warnings. ( #2277 )
ago%!(EXTRA string=6 years)
omar
7e78865613
Demo: Fixed bounds of DragFloat in Clipping section to avoid passing zero-sized to InvisibleButton().
ago%!(EXTRA string=6 years)
omar
f53cd3ee0f
Internals: LowerBound: Use raw pointer typedefs, we never use iterator anywhere else in the codebase.
...
Demo: Typo.
C98 fix.
ago%!(EXTRA string=6 years)
omar
50faccf764
Demo: Log: Comments. Using clipper. Not linking with rand() anymore.
ago%!(EXTRA string=6 years)
omar
c738f9ef92
InputFloat: When using ImGuiInputTextFlags_ReadOnly the step buttons are disabled. ( #2257 )
ago%!(EXTRA string=6 years)
omar
6890e08bc5
Fixed using SetNextWindowPos() on a child window (which wasn't really documented) position the cursor as expected in the parent window, so there is no mismatch between the layout in parent and the position of the child window. Demo tweak and adding some child window stuff
ago%!(EXTRA string=6 years)
omar
84d1ce3958
Tidying up README, moved entries to FAQ, updated screenshots, removed comma in title.
ago%!(EXTRA string=6 years)
omar
f1c7596409
Internals: Popup related comments. Renamed the misleading internal ClosePopup() function. Added bool* test to BeginPopupModal in demo.
ago%!(EXTRA string=6 years)
omar
8497948ba0
Comments, minor tweaks.
ago%!(EXTRA string=6 years)
omar
ccce47c6a2
Demo: Using Tabs in Style Editor and Simple Layout example. + Adding missing early out in About and Documents examples.
ago%!(EXTRA string=6 years)
omar
95dcc534ed
Demo: Fix collateral damage of 54a60aa
ago%!(EXTRA string=6 years)
omar
54a60aaa40
Added BETA api for Tab Bar/Tabs widgets. ( #261 , #351 ) (merged this feature from the from Docking branch so it can be used earlier as as standalone feature)
...
- Added BeginTabBar(), EndTabBar(), BeginTabItem(), EndTabItem(), SetTabItemClosed() API.
- Added ImGuiTabBarFlags flags for BeginTabBar().
- Added ImGuiTabItemFlags flags for BeginTabItem().
- Style: Added ImGuiCol_Tab, ImGuiCol_TabHovered, ImGuiCol_TabActive, ImGuiCol_TabUnfocused, ImGuiCol_TabUnfocusedActive colors.
- Demo: Added Layout->Tabs demo code.
- Demo: Added "Documents" example app showcasing possible use for tabs.
ago%!(EXTRA string=6 years)
omar
9476e07d5a
Added io.ConfigWindowsMoveFromTitleBarOnly option. Still is ignored by window with no title bars (often popups). This affects clamping window within the visible area: with this option enabled title bars need to be visible. ( #899 )
...
Tweaked default value of style.DisplayWindowPadding from (20,20) to (19,19) so the default style as a value which is the same as the title bar height.
ago%!(EXTRA string=6 years)
omar
59f3c4fc20
Renamed io.ConfigResizeWindowsFromEdges to io.ConfigWindowsResizeFromEdges and removed its [Beta] mark. Resizing windows from edge is now enabled by default (io.ConfigWindowsResizeFromEdges=true). Note that it only works _if_ the back-end sets ImGuiBackendFlags_HasMouseCursors, which the standard back-end do.
ago%!(EXTRA string=6 years)
omar
fb6ef8b1db
Comments, tweak
ago%!(EXTRA string=7 years)
omar
10e13dd6bb
Version 1.67 WIP (again, this time IMGUI_VERSION_NUM has leeway for another hot-fix).
ago%!(EXTRA string=7 years)
omar
801645d350
Version 1.66b (will revisit how to change IMGUI_VERSION_NUM across versions, this commit reduces the numerical IMGUI_VERSION_NUM compared to the commit on Nov 22).
ago%!(EXTRA string=7 years)
omar
84238240d6
Fixed a text rendering/clipping bug introduced in 1.66 (on 2018-10-12, commit ede3a3b9
) that affect single ImDrawList::AddText() calls with single strings larger than 10k. Text/TextUnformatted() calls were not affected, but e.g. InputText() was.
ago%!(EXTRA string=7 years)
omar
7658035e5a
About, IO: Added io.BackendPlatformName, io.BackendRendererName for informational/QA purpose.
ago%!(EXTRA string=7 years)
omar
3849def253
Added ShowAboutWindow(), About Window now showing various config/build information.
ago%!(EXTRA string=7 years)
omar
d27ffefbd4
Version 1.67 WIP
ago%!(EXTRA string=7 years)
omar
da3c4330c1
Version 1.66
ago%!(EXTRA string=7 years)
Torkel Bjørnson-Langen
1441756a0f
Doc: Fixed comments referring to LoadFromFileTTF() instead of AddFontFromFileTTF() ( #2153 )
ago%!(EXTRA string=7 years)
omar
f3e642322f
Demo: Removed one level of indentation in the ShowDemoWindowXXX functions (6 kb worth of spaces!). Will break some merge/PR.
ago%!(EXTRA string=7 years)