Skip to main content

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
TypeName
ImGuiNET.ImFontPtrfont
System.UInt16id
System.Int32width
System.Int32height
System.Singleadvance_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
TypeName
ImGuiNET.ImFontPtrfont
System.UInt16id
System.Int32width
System.Int32height
System.Singleadvance_x
System.Numerics.Vector2offset

AddCustomRectRegular(int, int)

View Source
Declaration
public int AddCustomRectRegular(int width, int height)
Returns

System.Int32

Parameters
TypeName
System.Int32width
System.Int32height

AddFont(ImFontConfigPtr)

View Source
Declaration
public ImFontPtr AddFont(ImFontConfigPtr font_cfg)
Returns

ImGuiNET.ImFontPtr

Parameters
TypeName
ImGuiNET.ImFontConfigPtrfont_cfg

AddFontDefault()

View Source
Declaration
public ImFontPtr AddFontDefault()
Returns

ImGuiNET.ImFontPtr

AddFontDefault(ImFontConfigPtr)

View Source
Declaration
public ImFontPtr AddFontDefault(ImFontConfigPtr font_cfg)
Returns

ImGuiNET.ImFontPtr

Parameters
TypeName
ImGuiNET.ImFontConfigPtrfont_cfg

AddFontFromFileTTF(string, float)

View Source
Declaration
public ImFontPtr AddFontFromFileTTF(string filename, float size_pixels)
Returns

ImGuiNET.ImFontPtr

Parameters
TypeName
System.Stringfilename
System.Singlesize_pixels

AddFontFromFileTTF(string, float, ImFontConfigPtr)

View Source
Declaration
public ImFontPtr AddFontFromFileTTF(string filename, float size_pixels, ImFontConfigPtr font_cfg)
Returns

ImGuiNET.ImFontPtr

Parameters
TypeName
System.Stringfilename
System.Singlesize_pixels
ImGuiNET.ImFontConfigPtrfont_cfg

AddFontFromFileTTF(string, float, ImFontConfigPtr, IntPtr)

View Source
Declaration
public ImFontPtr AddFontFromFileTTF(string filename, float size_pixels, ImFontConfigPtr font_cfg, IntPtr glyph_ranges)
Returns

ImGuiNET.ImFontPtr

Parameters
TypeName
System.Stringfilename
System.Singlesize_pixels
ImGuiNET.ImFontConfigPtrfont_cfg
System.IntPtrglyph_ranges

AddFontFromMemoryCompressedBase85TTF(string, float)

View Source
Declaration
public ImFontPtr AddFontFromMemoryCompressedBase85TTF(string compressed_font_data_base85, float size_pixels)
Returns

ImGuiNET.ImFontPtr

Parameters
TypeName
System.Stringcompressed_font_data_base85
System.Singlesize_pixels

AddFontFromMemoryCompressedBase85TTF(string, float, ImFontConfigPtr)

View Source
Declaration
public ImFontPtr AddFontFromMemoryCompressedBase85TTF(string compressed_font_data_base85, float size_pixels, ImFontConfigPtr font_cfg)
Returns

ImGuiNET.ImFontPtr

Parameters
TypeName
System.Stringcompressed_font_data_base85
System.Singlesize_pixels
ImGuiNET.ImFontConfigPtrfont_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

ImGuiNET.ImFontPtr

Parameters
TypeName
System.Stringcompressed_font_data_base85
System.Singlesize_pixels
ImGuiNET.ImFontConfigPtrfont_cfg
System.IntPtrglyph_ranges

AddFontFromMemoryCompressedTTF(IntPtr, int, float)

View Source
Declaration
public ImFontPtr AddFontFromMemoryCompressedTTF(IntPtr compressed_font_data, int compressed_font_size, float size_pixels)
Returns

ImGuiNET.ImFontPtr

Parameters
TypeName
System.IntPtrcompressed_font_data
System.Int32compressed_font_size
System.Singlesize_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

ImGuiNET.ImFontPtr

Parameters
TypeName
System.IntPtrcompressed_font_data
System.Int32compressed_font_size
System.Singlesize_pixels
ImGuiNET.ImFontConfigPtrfont_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

ImGuiNET.ImFontPtr

Parameters
TypeName
System.IntPtrcompressed_font_data
System.Int32compressed_font_size
System.Singlesize_pixels
ImGuiNET.ImFontConfigPtrfont_cfg
System.IntPtrglyph_ranges

AddFontFromMemoryTTF(IntPtr, int, float)

View Source
Declaration
public ImFontPtr AddFontFromMemoryTTF(IntPtr font_data, int font_size, float size_pixels)
Returns

ImGuiNET.ImFontPtr

Parameters
TypeName
System.IntPtrfont_data
System.Int32font_size
System.Singlesize_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

ImGuiNET.ImFontPtr

Parameters
TypeName
System.IntPtrfont_data
System.Int32font_size
System.Singlesize_pixels
ImGuiNET.ImFontConfigPtrfont_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

ImGuiNET.ImFontPtr

Parameters
TypeName
System.IntPtrfont_data
System.Int32font_size
System.Singlesize_pixels
ImGuiNET.ImFontConfigPtrfont_cfg
System.IntPtrglyph_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
TypeName
ImGuiNET.ImFontAtlasCustomRectPtrrect
System.Numerics.Vector2out_uv_min
System.Numerics.Vector2out_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
TypeName
System.IntPtrnullId

Destroy()

View Source
Declaration
public void Destroy()

GetCustomRectByIndex(int)

View Source
Declaration
public ImFontAtlasCustomRectPtr GetCustomRectByIndex(int index)
Returns

ImGuiNET.ImFontAtlasCustomRectPtr

Parameters
TypeName
System.Int32index

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
TypeName
ImGuiNET.ImGuiMouseCursorcursor
System.Numerics.Vector2out_offset
System.Numerics.Vector2out_size
System.Numerics.Vector2out_uv_border
System.Numerics.Vector2out_uv_fill
System.Int32texture_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
TypeName
System.Int32texture_index
System.Byte*out_pixels
System.Int32out_width
System.Int32out_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
TypeName
System.Int32texture_index
System.Byte*out_pixels
System.Int32out_width
System.Int32out_height
System.Int32out_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
TypeName
System.Int32texture_index
System.IntPtrout_pixels
System.Int32out_width
System.Int32out_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
TypeName
System.Int32texture_index
System.IntPtrout_pixels
System.Int32out_width
System.Int32out_height
System.Int32out_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
TypeName
System.Int32texture_index
System.Byte*out_pixels
System.Int32out_width
System.Int32out_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
TypeName
System.Int32texture_index
System.Byte*out_pixels
System.Int32out_width
System.Int32out_height
System.Int32out_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
TypeName
System.Int32texture_index
System.IntPtrout_pixels
System.Int32out_width
System.Int32out_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
TypeName
System.Int32texture_index
System.IntPtrout_pixels
System.Int32out_width
System.Int32out_height
System.Int32out_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
TypeName
System.Int32texture_index
System.IntPtrid