omar
a92c587c75
Added GetGlyphRangesVietnamese() helper. ( #2403 )
ago%!(EXTRA string=6 years)
Bruce Mitchener
b5d57a6615
Fix typos. ( #2413 )
ago%!(EXTRA string=6 years)
Elias Daler
c3ea1748dc
Fix -Wconversion warning ( #2379 )
...
The warning was caused by implicit conversion from pointer type which
NULL has to non-pointer type, e.g. if ImTextureID is long int
ago%!(EXTRA string=6 years)
omar
677e64e71e
Internal: InputText: Comments. Renamed internal member. Renamed ImGuiStb->ImStb.
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
f5bf6e38d2
Font: Fixed assert when specifying duplicate/overlapping ranges within a same font. ( #2353 , #2233 )
ago%!(EXTRA string=6 years)
omar
93d1179805
Examples: Extracted gamepad code into ImGui_ImplGlfw_UpdateGamepads(). Renamed matching Win32 function for consistency.
...
Added more link to nothing's oversample document. Spacing bits.
ago%!(EXTRA string=6 years)
omar
a79785c0b9
ImDrawData: Added FramebufferScale field (currently a copy of the value from io.DisplayFramebufferScale).
...
This is to allow render functions being written without pulling any data from ImGuiIO, allowing incoming multi-viewport feature to behave on Retina display and with multiple displays. If you are not using a custom binding, please update your render function code ahead of time, and use draw_data->FramebufferScale instead of io.DisplayFramebufferScale. (#2306 , #1676 )
Examples: Metal, OpenGL2, OpenGL3: Fixed offsetting of clipping rectangle with ImDrawData::DisplayPos != (0,0) when the display frame-buffer scale scale is not (1,1). While this doesn't make a difference when using master branch, this is effectively fixing support for multi-viewport with Mac Retina Displays on those examples. (#2306 ) Also using ImDrawData::FramebufferScale instead of io.DisplayFramebufferScale.
Examples: Clarified the use the ImDrawData::DisplayPos to offset clipping rectangles.
ago%!(EXTRA string=6 years)
omar
4b41d3b280
ImFont: Rearranged members toward an optimal CalcTextSize() loop. Removed comments from destructor. Made constructor more explicit.
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
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
bebb07f12d
ImFontAtlas: Added 0x2000-0x206F general punctuation range to default ChineseFull/ChineseSimplifiedCommon ranges. ( #2093 )
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
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
651130002f
ImFontAtlas: Fixed allocating for last bit (would only affect is that last codepoint is a multiple of 32). ( #2270 )
ago%!(EXTRA string=6 years)
omar
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.
ago%!(EXTRA string=6 years)
omar
9ad341902d
ImDrawList: Optimized some of the functions for performance of debug builds where non-inline function call cost are non-negligible.
ago%!(EXTRA string=6 years)
omar
acfa4050ec
Tweak changelog + tweak internal render helper functions.
ago%!(EXTRA string=6 years)
omar
5cb7ce2085
Renamed ImFont::GlyphRangesBuilder to ImFontGlyphRangesBuilder. Keep redirection typedef (will obsolete).
ago%!(EXTRA string=6 years)
omar
8399fb5071
Changed ImGuiCol_ChildBg to (0,0,0,0) in Dark style instead of (1,1,1,0), to match other styles. Shouldn't have any effect for the end-user.
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
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)
Sebastian Krzyszkowiak
3335e6688f
Include <alloca.h> also on macOS (and osxcross) ( #2218 )
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)
Elias Daler
8606d9fa11
Fix Clang/GCC's null-conversion warning: ( #2081 )
...
The warning is "implicit conversion of NULL constant to 'unsigned int' [-Wnull-conversion]". Happens when ImTextureID is not a void*, but unsigned int, for example.
ago%!(EXTRA string=7 years)
omar
ede3a3b92d
Fixes crash introduced in previous commit 9cf94d5
.
ago%!(EXTRA string=7 years)
omar
9cf94d5dd6
RenderText(), InputTextMultiline(): Optimization for large text by using memchr, wmemchr, wcschr when appropriate.
ago%!(EXTRA string=7 years)
omar
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.
ago%!(EXTRA string=7 years)
ice1000
201fcfd2e5
Internals: Replace unsigned short with ImWchar when dealing with character storage. ( #2078 )
ago%!(EXTRA string=7 years)
omar
eb7033e75b
Version 1.66 WIP
ago%!(EXTRA string=7 years)
omar
e0cab5664a
Version 1.65
ago%!(EXTRA string=7 years)
omar
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.
ago%!(EXTRA string=7 years)
omar
e58bc3d5b7
Refactor: Tweaked and improved the sectioning to facilitate grepping/moving around and applied to all files. ( #2036 )
ago%!(EXTRA string=7 years)
omar
bcb1441ce7
Version 1.65 WIP
ago%!(EXTRA string=7 years)
omar
48db5713d6
Version 1.64
ago%!(EXTRA string=7 years)
omar
38cfcf9fbc
Tweak comments and indexes
ago%!(EXTRA string=7 years)
omar
df37a156e8
Refactor: Moved Scrollbar function from imgui.cpp to imgui_widgets.cpp, added file index ( #2036 )
ago%!(EXTRA string=7 years)
omar
f2aa124eb8
Version 1.64 WIP
ago%!(EXTRA string=7 years)
omar
9e0f24dcb6
Version 1.63
ago%!(EXTRA string=7 years)