You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/CHANGELOG.txt
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -39,6 +39,7 @@ Breaking Changes:
39
39
The addition of new configuration options in the Docking branch is pushing for a little reorganization of those names.
40
40
- Made it illegal to call Begin("") with an empty string. This somehow accidentally worked before but had various
41
41
undesirable side-effect as the window would have ID zero. In particular it is causing problems in viewport/docking branches.
42
+
- Renamed ImFontAtlas::GlyphRangesBuilder to ImFontGlyphRangesBuilder. Keep redirection typedef (will obsolete).
42
43
43
44
Other Changes:
44
45
- Added BETA api for Tab Bar/Tabs widgets: (#261, #351)
@@ -734,6 +735,7 @@ Breaking Changes:
734
735
- Removed `IsItemRectHovered()`, `IsWindowRectHovered()` recently introduced in 1.51 which were merely the more consistent/correct names for the above functions which are now obsolete anyway. (#1382)
735
736
- Changed `IsWindowHovered()` default parameters behavior to return false if an item is active in another window (e.g. click-dragging item from another window to this window). You can use the newly introduced IsWindowHovered() flags to requests this specific behavior if you need it. (#1382)
736
737
- Renamed imconfig.h's `IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCS`/`IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCS` to `IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCTIONS`/`IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS` for consistency.
738
+
- Renamed ImFont::Glyph to ImFontGlyph. Keep redirection typedef (will obsolete).
Copy file name to clipboardExpand all lines: imgui.cpp
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -363,7 +363,8 @@ CODE
363
363
When you are not sure about a old symbol or function name, try using the Search/Find function of your IDE to look for comments or references in all imgui files.
364
364
You can read releases logs https://github.com/ocornut/imgui/releases for more details.
365
365
366
-
- 2019/01/04 (1.67) - renamed io.InputCharacters[], marked internal as was always intended. Please don't access directly, and use AddInputCharacter() instead!
366
+
- 2019/01/06 (1.67) - renamed io.InputCharacters[], marked internal as was always intended. Please don't access directly, and use AddInputCharacter() instead!
- 2018/12/10 (1.67) - renamed io.ConfigResizeWindowsFromEdges to io.ConfigWindowsResizeFromEdges as we are doing a large pass on configuration flags.
368
369
- 2018/10/12 (1.66) - renamed misc/stl/imgui_stl.* to misc/cpp/imgui_stdlib.* in prevision for other C++ helper files.
369
370
- 2018/09/28 (1.66) - renamed SetScrollHere() to SetScrollHereY(). Kept redirection function (will obsolete).
@@ -431,6 +432,7 @@ CODE
431
432
removed the IsItemRectHovered()/IsWindowRectHovered() names introduced in 1.51 since they were merely more consistent names for the two functions we are now obsoleting.
432
433
- 2017/10/17 (1.52) - marked the old 5-parameters version of Begin() as obsolete (still available). Use SetNextWindowSize()+Begin() instead!
433
434
- 2017/10/11 (1.52) - renamed AlignFirstTextHeightToWidgets() to AlignTextToFramePadding(). Kept inline redirection function (will obsolete).
- 2017/09/25 (1.52) - removed SetNextWindowPosCenter() because SetNextWindowPos() now has the optional pivot information to do the same and more. Kept redirection function (will obsolete).
435
437
- 2017/08/25 (1.52) - io.MousePos needs to be set to ImVec2(-FLT_MAX,-FLT_MAX) when mouse is unavailable/missing. Previously ImVec2(-1,-1) was enough but we now accept negative mouse coordinates. In your binding if you need to support unavailable mouse, make sure to replace "io.MousePos = ImVec2(-1,-1)" with "io.MousePos = ImVec2(-FLT_MAX,-FLT_MAX)".
436
438
- 2017/08/22 (1.51) - renamed IsItemHoveredRect() to IsItemRectHovered(). Kept inline redirection function (will obsolete). -> (1.52) use IsItemHovered(ImGuiHoveredFlags_RectOnly)!
@@ -822,7 +824,7 @@ CODE
822
824
823
825
// Or create your own custom ranges (e.g. for a game you can feed your entire game script and only build the characters the game need)
voidSetBit(int n) { UsedChars[n >> 3] |= 1 << (n & 7); } // Set bit 'c' in the array
1951
+
voidAddChar(ImWchar c) { SetBit(c); } // Add character
1952
+
IMGUI_API voidAddText(constchar* text, constchar* text_end = NULL); // Add string (each character of the UTF-8 string are added)
1953
+
IMGUI_API voidAddRanges(const ImWchar* ranges); // Add ranges, e.g. builder.AddRanges(ImFontAtlas::GetGlyphRangesDefault()) to force add all of ASCII/Latin+Ext
1954
+
IMGUI_API voidBuildRanges(ImVector<ImWchar>* out_ranges); // Output new ranges
1955
+
};
1956
+
1942
1957
enum ImFontAtlasFlags_
1943
1958
{
1944
1959
ImFontAtlasFlags_None = 0,
@@ -1995,7 +2010,7 @@ struct ImFontAtlas
1995
2010
1996
2011
// Helpers to retrieve list of common Unicode ranges (2 value per range, values are inclusive, zero-terminated list)
1997
2012
// NB: Make sure that your string are UTF-8 and NOT in your local code page. In C++11, you can create UTF-8 string literal using the u8"Hello world" syntax. See FAQ for details.
1998
-
// NB: Consider using GlyphRangesBuilder to build glyph ranges from textual data.
2013
+
// NB: Consider using ImFontGlyphRangesBuilder to build glyph ranges from textual data.
1999
2014
IMGUI_API const ImWchar* GetGlyphRangesDefault(); // Basic Latin, Extended Latin
2000
2015
IMGUI_API const ImWchar* GetGlyphRangesKorean(); // Default + Korean characters
voidSetBit(int n) { UsedChars[n >> 3] |= 1 << (n & 7); } // Set bit 'c' in the array
2014
-
voidAddChar(ImWchar c) { SetBit(c); } // Add character
2015
-
IMGUI_API voidAddText(constchar* text, constchar* text_end = NULL); // Add string (each character of the UTF-8 string are added)
2016
-
IMGUI_API voidAddRanges(const ImWchar* ranges); // Add ranges, e.g. builder.AddRanges(ImFontAtlas::GetGlyphRangesDefault()) to force add all of ASCII/Latin+Ext
2017
-
IMGUI_API voidBuildRanges(ImVector<ImWchar>* out_ranges); // Output new ranges
2018
-
};
2019
-
2020
2022
//-------------------------------------------
2021
2023
// Custom Rectangles/Glyphs API
2022
2024
//-------------------------------------------
@@ -2065,6 +2067,10 @@ struct ImFontAtlas
2065
2067
ImVector<CustomRect> CustomRects; // Rectangles for packing custom texture data into the atlas.
2066
2068
ImVector<ImFontConfig> ConfigData; // Internal data
2067
2069
int CustomRectIds[1]; // Identifiers of custom texture rectangle used by ImFontAtlas/ImDrawList
0 commit comments