mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-30 20:51:06 +01:00 
			
		
		
		
	Merge branch 'master' into docking
# Conflicts: # backends/imgui_impl_win32.cpp # docs/CHANGELOG.txt # imgui.cpp
This commit is contained in:
		
							
								
								
									
										15
									
								
								imgui.h
									
									
									
									
									
								
							
							
						
						
									
										15
									
								
								imgui.h
									
									
									
									
									
								
							| @@ -1,4 +1,4 @@ | ||||
| // dear imgui, v1.80 | ||||
| // dear imgui, v1.81 WIP | ||||
| // (headers) | ||||
|  | ||||
| // Help: | ||||
| @@ -59,8 +59,8 @@ Index of this file: | ||||
|  | ||||
| // Version | ||||
| // (Integer encoded as XYYZZ for use in #if preprocessor conditionals. Work in progress versions typically starts at XYY99 then bounce up to XYY00, XYY01 etc. when release tagging happens) | ||||
| #define IMGUI_VERSION               "1.80" | ||||
| #define IMGUI_VERSION_NUM           18000 | ||||
| #define IMGUI_VERSION               "1.81 WIP" | ||||
| #define IMGUI_VERSION_NUM           18002 | ||||
| #define IMGUI_CHECKVERSION()        ImGui::DebugCheckVersionAndDataLayout(IMGUI_VERSION, sizeof(ImGuiIO), sizeof(ImGuiStyle), sizeof(ImVec2), sizeof(ImVec4), sizeof(ImDrawVert), sizeof(ImDrawIdx)) | ||||
| #define IMGUI_HAS_TABLE | ||||
| #define IMGUI_HAS_VIEWPORT          // Viewport WIP branch | ||||
| @@ -128,6 +128,7 @@ struct ImDrawListSplitter;          // Helper to split a draw list into differen | ||||
| struct ImDrawVert;                  // A single vertex (pos + uv + col = 20 bytes by default. Override layout with IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT) | ||||
| struct ImFont;                      // Runtime data for a single font within a parent ImFontAtlas | ||||
| struct ImFontAtlas;                 // Runtime data for multiple fonts, bake multiple fonts into a single texture, TTF/OTF font loader | ||||
| struct ImFontBuilderIO;             // Opaque interface to a font builder (stb_truetype or FreeType). | ||||
| struct ImFontConfig;                // Configuration data when adding a font or merging fonts | ||||
| struct ImFontGlyph;                 // A single font glyph (code point + coordinates within in ImFontAtlas + offset) | ||||
| struct ImFontGlyphRangesBuilder;    // Helper to build glyph ranges from text/string data | ||||
| @@ -386,7 +387,7 @@ namespace ImGui | ||||
|     IMGUI_API void          PopButtonRepeat(); | ||||
|  | ||||
|     // Parameters stacks (current window) | ||||
|     IMGUI_API void          PushItemWidth(float item_width);                                // push width of items for common large "item+label" widgets. >0.0f: width in pixels, <0.0f align xx pixels to the right of window (so -FLT_MIN always align width to the right side). 0.0f = default to ~2/3 of windows width, | ||||
|     IMGUI_API void          PushItemWidth(float item_width);                                // push width of items for common large "item+label" widgets. >0.0f: width in pixels, <0.0f align xx pixels to the right of window (so -FLT_MIN always align width to the right side). | ||||
|     IMGUI_API void          PopItemWidth(); | ||||
|     IMGUI_API void          SetNextItemWidth(float item_width);                             // set width of the _next_ common large "item+label" widget. >0.0f: width in pixels, <0.0f align xx pixels to the right of window (so -FLT_MIN always align width to the right side) | ||||
|     IMGUI_API float         CalcItemWidth();                                                // width of item given pushed settings and current cursor position. NOT necessarily the width of last item unlike most 'Item' functions. | ||||
| @@ -2594,7 +2595,7 @@ struct ImFontConfig | ||||
|     float           GlyphMinAdvanceX;       // 0        // Minimum AdvanceX for glyphs, set Min to align font icons, set both Min/Max to enforce mono-space font | ||||
|     float           GlyphMaxAdvanceX;       // FLT_MAX  // Maximum AdvanceX for glyphs | ||||
|     bool            MergeMode;              // false    // Merge into previous ImFont, so you can combine multiple inputs font into one ImFont (e.g. ASCII font + icons + Japanese glyphs). You may want to use GlyphOffset.y when merge font of different heights. | ||||
|     unsigned int    RasterizerFlags;        // 0x00     // Settings for custom font rasterizer (e.g. ImGuiFreeType). Leave as zero if you aren't using one. | ||||
|     unsigned int    FontBuilderFlags;       // 0        // Settings for custom font builder. THIS IS BUILDER IMPLEMENTATION DEPENDENT. Leave as zero if unsure. | ||||
|     float           RasterizerMultiply;     // 1.0f     // Brighten (>1.0f) or darken (<1.0f) font output. Brightening small fonts may be a good workaround to make them more readable. | ||||
|     ImWchar         EllipsisChar;           // -1       // Explicitly specify unicode codepoint of ellipsis character. When fonts are being merged first specified ellipsis will be used. | ||||
|  | ||||
| @@ -2754,6 +2755,10 @@ struct ImFontAtlas | ||||
|     ImVector<ImFontConfig>      ConfigData;         // Configuration data | ||||
|     ImVec4                      TexUvLines[IM_DRAWLIST_TEX_LINES_WIDTH_MAX + 1];  // UVs for baked anti-aliased lines | ||||
|  | ||||
|     // [Internal] Font builder | ||||
|     const ImFontBuilderIO*      FontBuilderIO;      // Opaque interface to a font builder (default to stb_truetype, can be changed to use FreeType by defining IMGUI_ENABLE_FREETYPE). | ||||
|     unsigned int                FontBuilderFlags;   // Shared flags (for all fonts) for custom font builder. THIS IS BUILD IMPLEMENTATION DEPENDENT. Per-font override is also available in ImFontConfig. | ||||
|  | ||||
|     // [Internal] Packing data | ||||
|     int                         PackIdMouseCursors; // Custom texture rectangle ID for white pixel and mouse cursors | ||||
|     int                         PackIdLines;        // Custom texture rectangle ID for baked anti-aliased lines | ||||
|   | ||||
		Reference in New Issue
	
	Block a user