Struct ImFontAtlasPtr
Assembly: ImGui.NET.dll
View Source
Declaration
public struct ImFontAtlasPtr
Properties
NativePtr
View Source
Declaration
public readonly ImFontAtlas* NativePtr { get; }
Flags
View Source
Declaration
public ref ImFontAtlasFlags Flags { get; }
Textures
View Source
Declaration
public ImPtrVector<ImFontAtlasTexturePtr> Textures { get; }
TexDesiredWidth
View Source
Declaration
public ref int TexDesiredWidth { get; }
TexDesiredHeight
View Source
Declaration
public ref int TexDesiredHeight { get; }
TexGlyphPadding
View Source
Declaration
public ref int TexGlyphPadding { get; }
Locked
View Source
Declaration
public ref bool Locked { get; }
TexReady
View Source
Declaration
public ref bool TexReady { get; }
TexPixelsUseColors
View Source
Declaration
public ref bool TexPixelsUseColors { get; }
TexWidth
View Source
Declaration
public ref int TexWidth { get; }
TexHeight
View Source
Declaration
public ref int TexHeight { get; }
TexUvScale
View Source
Declaration
public ref Vector2 TexUvScale { get; }
TexUvWhitePixel
View Source
Declaration
public ref Vector2 TexUvWhitePixel { get; }
Fonts
View Source
Declaration
public ImVector<ImFontPtr> Fonts { get; }
CustomRects
View Source
Declaration
public ImPtrVector<ImFontAtlasCustomRectPtr> CustomRects { get; }
ConfigData
View Source
Declaration
public ImPtrVector<ImFontConfigPtr> ConfigData { get; }
TexUvLines
View Source
Declaration
public RangeAccessor<Vector4> TexUvLines { get; }
FontBuilderIO
View Source
Declaration
public IntPtr FontBuilderIO { get; set; }
FontBuilderFlags
View Source
Declaration
public ref uint FontBuilderFlags { get; }
PackIdMouseCursors
View Source
Declaration
public ref int PackIdMouseCursors { get; }
PackIdLines
View Source
Declaration
public ref int PackIdLines { get; }
Methods
AddCustomRectFontGlyph(ImFontPtr, ushort, int, int, float)
View Source
Declaration
public int AddCustomRectFontGlyph(ImFontPtr font, ushort id, int width, int height, float advance_x)
Returns
System.Int32
Parameters
Type | Name |
---|---|
ImGuiNET.ImFontPtr | font |
System.UInt16 | id |
System.Int32 | width |
System.Int32 | height |
System.Single | advance_x |
AddCustomRectFontGlyph(ImFontPtr, ushort, int, int, float, Vector2)
View Source
Declaration
public int AddCustomRectFontGlyph(ImFontPtr font, ushort id, int width, int height, float advance_x, Vector2 offset)
Returns
System.Int32
Parameters
Type | Name |
---|---|
ImGuiNET.ImFontPtr | font |
System.UInt16 | id |
System.Int32 | width |
System.Int32 | height |
System.Single | advance_x |
System.Numerics.Vector2 | offset |
AddCustomRectRegular(int, int)
View Source
Declaration
public int AddCustomRectRegular(int width, int height)
Returns
System.Int32
Parameters
Type | Name |
---|---|
System.Int32 | width |
System.Int32 | height |
AddFont(ImFontConfigPtr)
View Source
Declaration
public ImFontPtr AddFont(ImFontConfigPtr font_cfg)
Returns
Parameters
Type | Name |
---|---|
ImGuiNET.ImFontConfigPtr | font_cfg |
AddFontDefault()
View Source
Declaration
public ImFontPtr AddFontDefault()
Returns
AddFontDefault(ImFontConfigPtr)
View Source
Declaration
public ImFontPtr AddFontDefault(ImFontConfigPtr font_cfg)
Returns
Parameters
Type | Name |
---|---|
ImGuiNET.ImFontConfigPtr | font_cfg |
AddFontFromFileTTF(string, float)
View Source
Declaration
public ImFontPtr AddFontFromFileTTF(string filename, float size_pixels)
Returns
Parameters
Type | Name |
---|---|
System.String | filename |
System.Single | size_pixels |
AddFontFromFileTTF(string, float, ImFontConfigPtr)
View Source
Declaration
public ImFontPtr AddFontFromFileTTF(string filename, float size_pixels, ImFontConfigPtr font_cfg)
Returns
Parameters
Type | Name |
---|---|
System.String | filename |
System.Single | size_pixels |
ImGuiNET.ImFontConfigPtr | font_cfg |
AddFontFromFileTTF(string, float, ImFontConfigPtr, IntPtr)
View Source
Declaration
public ImFontPtr AddFontFromFileTTF(string filename, float size_pixels, ImFontConfigPtr font_cfg, IntPtr glyph_ranges)
Returns
Parameters
Type | Name |
---|---|
System.String | filename |
System.Single | size_pixels |
ImGuiNET.ImFontConfigPtr | font_cfg |
System.IntPtr | glyph_ranges |
AddFontFromMemoryCompressedBase85TTF(string, float)
View Source
Declaration
public ImFontPtr AddFontFromMemoryCompressedBase85TTF(string compressed_font_data_base85, float size_pixels)
Returns
Parameters
Type | Name |
---|---|
System.String | compressed_font_data_base85 |
System.Single | size_pixels |
AddFontFromMemoryCompressedBase85TTF(string, float, ImFontConfigPtr)
View Source
Declaration
public ImFontPtr AddFontFromMemoryCompressedBase85TTF(string compressed_font_data_base85, float size_pixels, ImFontConfigPtr font_cfg)
Returns
Parameters
Type | Name |
---|---|
System.String | compressed_font_data_base85 |
System.Single | size_pixels |
ImGuiNET.ImFontConfigPtr | font_cfg |
AddFontFromMemoryCompressedBase85TTF(string, float, ImFontConfigPtr, IntPtr)
View Source
Declaration
public ImFontPtr AddFontFromMemoryCompressedBase85TTF(string compressed_font_data_base85, float size_pixels, ImFontConfigPtr font_cfg, IntPtr glyph_ranges)
Returns
Parameters
Type | Name |
---|---|
System.String | compressed_font_data_base85 |
System.Single | size_pixels |
ImGuiNET.ImFontConfigPtr | font_cfg |
System.IntPtr | glyph_ranges |
AddFontFromMemoryCompressedTTF(IntPtr, int, float)
View Source
Declaration
public ImFontPtr AddFontFromMemoryCompressedTTF(IntPtr compressed_font_data, int compressed_font_size, float size_pixels)
Returns
Parameters
Type | Name |
---|---|
System.IntPtr | compressed_font_data |
System.Int32 | compressed_font_size |
System.Single | size_pixels |
AddFontFromMemoryCompressedTTF(IntPtr, int, float, ImFontConfigPtr)
View Source
Declaration
public ImFontPtr AddFontFromMemoryCompressedTTF(IntPtr compressed_font_data, int compressed_font_size, float size_pixels, ImFontConfigPtr font_cfg)
Returns
Parameters
Type | Name |
---|---|
System.IntPtr | compressed_font_data |
System.Int32 | compressed_font_size |
System.Single | size_pixels |
ImGuiNET.ImFontConfigPtr | font_cfg |
AddFontFromMemoryCompressedTTF(IntPtr, int, float, ImFontConfigPtr, IntPtr)
View Source
Declaration
public ImFontPtr AddFontFromMemoryCompressedTTF(IntPtr compressed_font_data, int compressed_font_size, float size_pixels, ImFontConfigPtr font_cfg, IntPtr glyph_ranges)
Returns
Parameters
Type | Name |
---|---|
System.IntPtr | compressed_font_data |
System.Int32 | compressed_font_size |
System.Single | size_pixels |
ImGuiNET.ImFontConfigPtr | font_cfg |
System.IntPtr | glyph_ranges |
AddFontFromMemoryTTF(IntPtr, int, float)
View Source
Declaration
public ImFontPtr AddFontFromMemoryTTF(IntPtr font_data, int font_size, float size_pixels)
Returns
Parameters
Type | Name |
---|---|
System.IntPtr | font_data |
System.Int32 | font_size |
System.Single | size_pixels |
AddFontFromMemoryTTF(IntPtr, int, float, ImFontConfigPtr)
View Source
Declaration
public ImFontPtr AddFontFromMemoryTTF(IntPtr font_data, int font_size, float size_pixels, ImFontConfigPtr font_cfg)
Returns
Parameters
Type | Name |
---|---|
System.IntPtr | font_data |
System.Int32 | font_size |
System.Single | size_pixels |
ImGuiNET.ImFontConfigPtr | font_cfg |
AddFontFromMemoryTTF(IntPtr, int, float, ImFontConfigPtr, IntPtr)
View Source
Declaration
public ImFontPtr AddFontFromMemoryTTF(IntPtr font_data, int font_size, float size_pixels, ImFontConfigPtr font_cfg, IntPtr glyph_ranges)
Returns
Parameters
Type | Name |
---|---|
System.IntPtr | font_data |
System.Int32 | font_size |
System.Single | size_pixels |
ImGuiNET.ImFontConfigPtr | font_cfg |
System.IntPtr | glyph_ranges |
Build()
View Source
Declaration
public bool Build()
Returns
System.Boolean
CalcCustomRectUV(ImFontAtlasCustomRectPtr, out Vector2, out Vector2)
View Source
Declaration
public void CalcCustomRectUV(ImFontAtlasCustomRectPtr rect, out Vector2 out_uv_min, out Vector2 out_uv_max)
Parameters
Type | Name |
---|---|
ImGuiNET.ImFontAtlasCustomRectPtr | rect |
System.Numerics.Vector2 | out_uv_min |
System.Numerics.Vector2 | out_uv_max |
Clear()
View Source
Declaration
public void Clear()
ClearFonts()
View Source
Declaration
public void ClearFonts()
ClearInputData()
View Source
Declaration
public void ClearInputData()
ClearTexData()
View Source
Declaration
public void ClearTexData()
ClearTexID(IntPtr)
View Source
Declaration
public void ClearTexID(IntPtr nullId)
Parameters
Type | Name |
---|---|
System.IntPtr | nullId |
Destroy()
View Source
Declaration
public void Destroy()
GetCustomRectByIndex(int)
View Source
Declaration
public ImFontAtlasCustomRectPtr GetCustomRectByIndex(int index)
Returns
ImGuiNET.ImFontAtlasCustomRectPtr
Parameters
Type | Name |
---|---|
System.Int32 | index |
GetGlyphRangesChineseFull()
View Source
Declaration
public IntPtr GetGlyphRangesChineseFull()
Returns
System.IntPtr
GetGlyphRangesChineseSimplifiedCommon()
View Source
Declaration
public IntPtr GetGlyphRangesChineseSimplifiedCommon()
Returns
System.IntPtr
GetGlyphRangesCyrillic()
View Source
Declaration
public IntPtr GetGlyphRangesCyrillic()
Returns
System.IntPtr
GetGlyphRangesDefault()
View Source
Declaration
public IntPtr GetGlyphRangesDefault()
Returns
System.IntPtr
GetGlyphRangesJapanese()
View Source
Declaration
public IntPtr GetGlyphRangesJapanese()
Returns
System.IntPtr
GetGlyphRangesKorean()
View Source
Declaration
public IntPtr GetGlyphRangesKorean()
Returns
System.IntPtr
GetGlyphRangesThai()
View Source
Declaration
public IntPtr GetGlyphRangesThai()
Returns
System.IntPtr
GetGlyphRangesVietnamese()
View Source
Declaration
public IntPtr GetGlyphRangesVietnamese()
Returns
System.IntPtr
GetMouseCursorTexData(ImGuiMouseCursor, out Vector2, out Vector2, out Vector2, out Vector2, ref int)
View Source
Declaration
public bool GetMouseCursorTexData(ImGuiMouseCursor cursor, out Vector2 out_offset, out Vector2 out_size, out Vector2 out_uv_border, out Vector2 out_uv_fill, ref int texture_index)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ImGuiNET.ImGuiMouseCursor | cursor |
System.Numerics.Vector2 | out_offset |
System.Numerics.Vector2 | out_size |
System.Numerics.Vector2 | out_uv_border |
System.Numerics.Vector2 | out_uv_fill |
System.Int32 | texture_index |
GetTexDataAsAlpha8(int, out byte*, out int, out int)
View Source
Declaration
public void GetTexDataAsAlpha8(int texture_index, out byte* out_pixels, out int out_width, out int out_height)
Parameters
Type | Name |
---|---|
System.Int32 | texture_index |
System.Byte* | out_pixels |
System.Int32 | out_width |
System.Int32 | out_height |
GetTexDataAsAlpha8(int, out byte*, out int, out int, out int)
View Source
Declaration
public void GetTexDataAsAlpha8(int texture_index, out byte* out_pixels, out int out_width, out int out_height, out int out_bytes_per_pixel)
Parameters
Type | Name |
---|---|
System.Int32 | texture_index |
System.Byte* | out_pixels |
System.Int32 | out_width |
System.Int32 | out_height |
System.Int32 | out_bytes_per_pixel |
GetTexDataAsAlpha8(int, out IntPtr, out int, out int)
View Source
Declaration
public void GetTexDataAsAlpha8(int texture_index, out IntPtr out_pixels, out int out_width, out int out_height)
Parameters
Type | Name |
---|---|
System.Int32 | texture_index |
System.IntPtr | out_pixels |
System.Int32 | out_width |
System.Int32 | out_height |
GetTexDataAsAlpha8(int, out IntPtr, out int, out int, out int)
View Source
Declaration
public void GetTexDataAsAlpha8(int texture_index, out IntPtr out_pixels, out int out_width, out int out_height, out int out_bytes_per_pixel)
Parameters
Type | Name |
---|---|
System.Int32 | texture_index |
System.IntPtr | out_pixels |
System.Int32 | out_width |
System.Int32 | out_height |
System.Int32 | out_bytes_per_pixel |
GetTexDataAsRGBA32(int, out byte*, out int, out int)
View Source
Declaration
public void GetTexDataAsRGBA32(int texture_index, out byte* out_pixels, out int out_width, out int out_height)
Parameters
Type | Name |
---|---|
System.Int32 | texture_index |
System.Byte* | out_pixels |
System.Int32 | out_width |
System.Int32 | out_height |
GetTexDataAsRGBA32(int, out byte*, out int, out int, out int)
View Source
Declaration
public void GetTexDataAsRGBA32(int texture_index, out byte* out_pixels, out int out_width, out int out_height, out int out_bytes_per_pixel)
Parameters
Type | Name |
---|---|
System.Int32 | texture_index |
System.Byte* | out_pixels |
System.Int32 | out_width |
System.Int32 | out_height |
System.Int32 | out_bytes_per_pixel |
GetTexDataAsRGBA32(int, out IntPtr, out int, out int)
View Source
Declaration
public void GetTexDataAsRGBA32(int texture_index, out IntPtr out_pixels, out int out_width, out int out_height)
Parameters
Type | Name |
---|---|
System.Int32 | texture_index |
System.IntPtr | out_pixels |
System.Int32 | out_width |
System.Int32 | out_height |
GetTexDataAsRGBA32(int, out IntPtr, out int, out int, out int)
View Source
Declaration
public void GetTexDataAsRGBA32(int texture_index, out IntPtr out_pixels, out int out_width, out int out_height, out int out_bytes_per_pixel)
Parameters
Type | Name |
---|---|
System.Int32 | texture_index |
System.IntPtr | out_pixels |
System.Int32 | out_width |
System.Int32 | out_height |
System.Int32 | out_bytes_per_pixel |
IsBuilt()
View Source
Declaration
public bool IsBuilt()
Returns
System.Boolean
SetTexID(int, IntPtr)
View Source
Declaration
public void SetTexID(int texture_index, IntPtr id)
Parameters
Type | Name |
---|---|
System.Int32 | texture_index |
System.IntPtr | id |