mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-11-03 22:51:06 +01:00 
			
		
		
		
	Merge branch 'master' into docking
# Conflicts: # docs/CHANGELOG.txt # examples/example_win32_directx11/main.cpp # examples/example_win32_directx9/main.cpp # examples/imgui_impl_win32.cpp # examples/imgui_impl_win32.h # imgui.cpp
This commit is contained in:
		
							
								
								
									
										17
									
								
								imgui.h
									
									
									
									
									
								
							
							
						
						
									
										17
									
								
								imgui.h
									
									
									
									
									
								
							@@ -1,4 +1,4 @@
 | 
			
		||||
// dear imgui, v1.75
 | 
			
		||||
// dear imgui, v1.76 WIP
 | 
			
		||||
// (headers)
 | 
			
		||||
 | 
			
		||||
// Help:
 | 
			
		||||
@@ -60,8 +60,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.75"
 | 
			
		||||
#define IMGUI_VERSION_NUM           17500
 | 
			
		||||
#define IMGUI_VERSION               "1.76 WIP"
 | 
			
		||||
#define IMGUI_VERSION_NUM           17502
 | 
			
		||||
#define IMGUI_CHECKVERSION()        ImGui::DebugCheckVersionAndDataLayout(IMGUI_VERSION, sizeof(ImGuiIO), sizeof(ImGuiStyle), sizeof(ImVec2), sizeof(ImVec4), sizeof(ImDrawVert), sizeof(ImDrawIdx))
 | 
			
		||||
#define IMGUI_HAS_VIEWPORT          1 // Viewport WIP branch
 | 
			
		||||
#define IMGUI_HAS_DOCK              1 // Docking WIP branch
 | 
			
		||||
@@ -1232,6 +1232,7 @@ enum ImGuiColorEditFlags_
 | 
			
		||||
    ImGuiColorEditFlags_NoLabel         = 1 << 7,   //              // ColorEdit, ColorPicker: disable display of inline text label (the label is still forwarded to the tooltip and picker).
 | 
			
		||||
    ImGuiColorEditFlags_NoSidePreview   = 1 << 8,   //              // ColorPicker: disable bigger color preview on right side of the picker, use small colored square preview instead.
 | 
			
		||||
    ImGuiColorEditFlags_NoDragDrop      = 1 << 9,   //              // ColorEdit: disable drag and drop target. ColorButton: disable drag and drop source.
 | 
			
		||||
    ImGuiColorEditFlags_NoBorder        = 1 << 10,  //              // ColorButton: disable border (which is enforced by default)
 | 
			
		||||
 | 
			
		||||
    // User Options (right-click on widget to change some of them).
 | 
			
		||||
    ImGuiColorEditFlags_AlphaBar        = 1 << 16,  //              // ColorEdit, ColorPicker: show vertical alpha bar/gradient in picker.
 | 
			
		||||
@@ -2046,8 +2047,8 @@ struct ImDrawList
 | 
			
		||||
 | 
			
		||||
    // Primitives
 | 
			
		||||
    // - For rectangular primitives, "p_min" and "p_max" represent the upper-left and lower-right corners.
 | 
			
		||||
    // - For circle primitives, use "num_segments == 0" to automatically calculate tessellation (preferred). 
 | 
			
		||||
    //   In future versions we will use textures to provide cheaper and higher-quality circles. 
 | 
			
		||||
    // - For circle primitives, use "num_segments == 0" to automatically calculate tessellation (preferred).
 | 
			
		||||
    //   In future versions we will use textures to provide cheaper and higher-quality circles.
 | 
			
		||||
    //   Use AddNgon() and AddNgonFilled() functions if you need to guaranteed a specific number of sides.
 | 
			
		||||
    IMGUI_API void  AddLine(const ImVec2& p1, const ImVec2& p2, ImU32 col, float thickness = 1.0f);
 | 
			
		||||
    IMGUI_API void  AddRect(const ImVec2& p_min, const ImVec2& p_max, ImU32 col, float rounding = 0.0f, ImDrawCornerFlags rounding_corners = ImDrawCornerFlags_All, float thickness = 1.0f);   // a: upper-left, b: lower-right (== upper-left + size), rounding_corners_flags: 4 bits corresponding to which corner to round
 | 
			
		||||
@@ -2171,9 +2172,12 @@ struct ImFontConfig
 | 
			
		||||
    IMGUI_API ImFontConfig();
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
// Hold rendering data for one glyph.
 | 
			
		||||
// (Note: some language parsers may fail to convert the 31+1 bitfield members, in this case maybe drop store a single u32 or we can rework this)
 | 
			
		||||
struct ImFontGlyph
 | 
			
		||||
{
 | 
			
		||||
    ImWchar         Codepoint;          // 0x0000..0xFFFF
 | 
			
		||||
    unsigned int    Codepoint : 31;     // 0x0000..0xFFFF
 | 
			
		||||
    unsigned int    Visible : 1;        // Flag to allow early out when rendering
 | 
			
		||||
    float           AdvanceX;           // Distance to next character (= data from font + ImFontConfig::GlyphExtraSpacing.x baked in)
 | 
			
		||||
    float           X0, Y0, X1, Y1;     // Glyph corners
 | 
			
		||||
    float           U0, V0, U1, V1;     // Texture coordinates
 | 
			
		||||
@@ -2368,6 +2372,7 @@ struct ImFont
 | 
			
		||||
    IMGUI_API void              GrowIndex(int new_size);
 | 
			
		||||
    IMGUI_API void              AddGlyph(ImWchar c, float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1, float advance_x);
 | 
			
		||||
    IMGUI_API void              AddRemapChar(ImWchar dst, ImWchar src, bool overwrite_dst = true); // Makes 'dst' character/glyph points to 'src' character/glyph. Currently needs to be called AFTER fonts have been built.
 | 
			
		||||
    IMGUI_API void              SetGlyphVisible(ImWchar c, bool visible);
 | 
			
		||||
    IMGUI_API void              SetFallbackChar(ImWchar c);
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user