Public Types | Public Member Functions | Public Attributes | List of all members
ImFontAtlas Struct Reference

#include <imgui.h>

Public Types

typedef ImFontAtlasCustomRect CustomRect
 
typedef ImFontGlyphRangesBuilder GlyphRangesBuilder
 

Public Member Functions

IMGUI_API int AddCustomRectFontGlyph (ImFont *font, ImWchar id, int width, int height, float advance_x, const ImVec2 &offset=ImVec2(0, 0))
 
IMGUI_API int AddCustomRectRegular (unsigned int id, int width, int height)
 
IMGUI_API ImFontAddFont (const ImFontConfig *font_cfg)
 
IMGUI_API ImFontAddFontDefault (const ImFontConfig *font_cfg=NULL)
 
IMGUI_API ImFontAddFontFromFileTTF (const char *filename, float size_pixels, const ImFontConfig *font_cfg=NULL, const ImWchar *glyph_ranges=NULL)
 
IMGUI_API ImFontAddFontFromMemoryCompressedBase85TTF (const char *compressed_font_data_base85, float size_pixels, const ImFontConfig *font_cfg=NULL, const ImWchar *glyph_ranges=NULL)
 
IMGUI_API ImFontAddFontFromMemoryCompressedTTF (const void *compressed_font_data, int compressed_font_size, float size_pixels, const ImFontConfig *font_cfg=NULL, const ImWchar *glyph_ranges=NULL)
 
IMGUI_API ImFontAddFontFromMemoryTTF (void *font_data, int font_size, float size_pixels, const ImFontConfig *font_cfg=NULL, const ImWchar *glyph_ranges=NULL)
 
IMGUI_API bool Build ()
 
IMGUI_API void CalcCustomRectUV (const ImFontAtlasCustomRect *rect, ImVec2 *out_uv_min, ImVec2 *out_uv_max) const
 
IMGUI_API void Clear ()
 
IMGUI_API void ClearFonts ()
 
IMGUI_API void ClearInputData ()
 
IMGUI_API void ClearTexData ()
 
const ImFontAtlasCustomRectGetCustomRectByIndex (int index) const
 
const IMGUI_API ImWcharGetGlyphRangesChineseFull ()
 
const IMGUI_API ImWcharGetGlyphRangesChineseSimplifiedCommon ()
 
const IMGUI_API ImWcharGetGlyphRangesCyrillic ()
 
const IMGUI_API ImWcharGetGlyphRangesDefault ()
 
const IMGUI_API ImWcharGetGlyphRangesJapanese ()
 
const IMGUI_API ImWcharGetGlyphRangesKorean ()
 
const IMGUI_API ImWcharGetGlyphRangesThai ()
 
const IMGUI_API ImWcharGetGlyphRangesVietnamese ()
 
IMGUI_API bool GetMouseCursorTexData (ImGuiMouseCursor cursor, ImVec2 *out_offset, ImVec2 *out_size, ImVec2 out_uv_border[2], ImVec2 out_uv_fill[2])
 
IMGUI_API void GetTexDataAsAlpha8 (unsigned char **out_pixels, int *out_width, int *out_height, int *out_bytes_per_pixel=NULL)
 
IMGUI_API void GetTexDataAsRGBA32 (unsigned char **out_pixels, int *out_width, int *out_height, int *out_bytes_per_pixel=NULL)
 
IMGUI_API ImFontAtlas ()
 
bool IsBuilt () const
 
void SetTexID (ImTextureID id)
 
IMGUI_API ~ImFontAtlas ()
 

Public Attributes

ImVector< ImFontConfigConfigData
 
int CustomRectIds [1]
 
ImVector< ImFontAtlasCustomRectCustomRects
 
ImFontAtlasFlags Flags
 
ImVector< ImFont * > Fonts
 
bool Locked
 
int TexDesiredWidth
 
int TexGlyphPadding
 
int TexHeight
 
ImTextureID TexID
 
unsigned char * TexPixelsAlpha8
 
unsigned int * TexPixelsRGBA32
 
ImVec2 TexUvScale
 
ImVec2 TexUvWhitePixel
 
int TexWidth
 

Detailed Description

Definition at line 2182 of file imgui.h.

Member Typedef Documentation

◆ CustomRect

Definition at line 2265 of file imgui.h.

◆ GlyphRangesBuilder

Definition at line 2266 of file imgui.h.

Constructor & Destructor Documentation

◆ ImFontAtlas()

ImFontAtlas::ImFontAtlas ( )

Definition at line 1591 of file imgui_draw.cpp.

◆ ~ImFontAtlas()

ImFontAtlas::~ImFontAtlas ( )

Definition at line 1608 of file imgui_draw.cpp.

Member Function Documentation

◆ AddCustomRectFontGlyph()

int ImFontAtlas::AddCustomRectFontGlyph ( ImFont font,
ImWchar  id,
int  width,
int  height,
float  advance_x,
const ImVec2 offset = ImVec2(0,0) 
)

Definition at line 1843 of file imgui_draw.cpp.

◆ AddCustomRectRegular()

int ImFontAtlas::AddCustomRectRegular ( unsigned int  id,
int  width,
int  height 
)

Definition at line 1829 of file imgui_draw.cpp.

◆ AddFont()

ImFont * ImFontAtlas::AddFont ( const ImFontConfig font_cfg)

Definition at line 1703 of file imgui_draw.cpp.

◆ AddFontDefault()

ImFont * ImFontAtlas::AddFontDefault ( const ImFontConfig font_cfg = NULL)

Definition at line 1751 of file imgui_draw.cpp.

◆ AddFontFromFileTTF()

ImFont * ImFontAtlas::AddFontFromFileTTF ( const char *  filename,
float  size_pixels,
const ImFontConfig font_cfg = NULL,
const ImWchar glyph_ranges = NULL 
)

Definition at line 1772 of file imgui_draw.cpp.

◆ AddFontFromMemoryCompressedBase85TTF()

ImFont * ImFontAtlas::AddFontFromMemoryCompressedBase85TTF ( const char *  compressed_font_data_base85,
float  size_pixels,
const ImFontConfig font_cfg = NULL,
const ImWchar glyph_ranges = NULL 
)

Definition at line 1819 of file imgui_draw.cpp.

◆ AddFontFromMemoryCompressedTTF()

ImFont * ImFontAtlas::AddFontFromMemoryCompressedTTF ( const void compressed_font_data,
int  compressed_font_size,
float  size_pixels,
const ImFontConfig font_cfg = NULL,
const ImWchar glyph_ranges = NULL 
)

Definition at line 1807 of file imgui_draw.cpp.

◆ AddFontFromMemoryTTF()

ImFont * ImFontAtlas::AddFontFromMemoryTTF ( void font_data,
int  font_size,
float  size_pixels,
const ImFontConfig font_cfg = NULL,
const ImWchar glyph_ranges = NULL 
)

Definition at line 1794 of file imgui_draw.cpp.

◆ Build()

bool ImFontAtlas::Build ( )

Definition at line 1889 of file imgui_draw.cpp.

◆ CalcCustomRectUV()

void ImFontAtlas::CalcCustomRectUV ( const ImFontAtlasCustomRect rect,
ImVec2 out_uv_min,
ImVec2 out_uv_max 
) const

Definition at line 1859 of file imgui_draw.cpp.

◆ Clear()

void ImFontAtlas::Clear ( )

Definition at line 1656 of file imgui_draw.cpp.

◆ ClearFonts()

void ImFontAtlas::ClearFonts ( )

Definition at line 1648 of file imgui_draw.cpp.

◆ ClearInputData()

void ImFontAtlas::ClearInputData ( )

Definition at line 1614 of file imgui_draw.cpp.

◆ ClearTexData()

void ImFontAtlas::ClearTexData ( )

Definition at line 1637 of file imgui_draw.cpp.

◆ GetCustomRectByIndex()

const ImFontAtlasCustomRect* ImFontAtlas::GetCustomRectByIndex ( int  index) const
inline

Definition at line 2235 of file imgui.h.

◆ GetGlyphRangesChineseFull()

const ImWchar * ImFontAtlas::GetGlyphRangesChineseFull ( )

Definition at line 2352 of file imgui_draw.cpp.

◆ GetGlyphRangesChineseSimplifiedCommon()

const ImWchar * ImFontAtlas::GetGlyphRangesChineseSimplifiedCommon ( )

Definition at line 2381 of file imgui_draw.cpp.

◆ GetGlyphRangesCyrillic()

const ImWchar * ImFontAtlas::GetGlyphRangesCyrillic ( )

Definition at line 2506 of file imgui_draw.cpp.

◆ GetGlyphRangesDefault()

const ImWchar * ImFontAtlas::GetGlyphRangesDefault ( )

Definition at line 2330 of file imgui_draw.cpp.

◆ GetGlyphRangesJapanese()

const ImWchar * ImFontAtlas::GetGlyphRangesJapanese ( )

Definition at line 2448 of file imgui_draw.cpp.

◆ GetGlyphRangesKorean()

const ImWchar * ImFontAtlas::GetGlyphRangesKorean ( )

Definition at line 2340 of file imgui_draw.cpp.

◆ GetGlyphRangesThai()

const ImWchar * ImFontAtlas::GetGlyphRangesThai ( )

Definition at line 2519 of file imgui_draw.cpp.

◆ GetGlyphRangesVietnamese()

const ImWchar * ImFontAtlas::GetGlyphRangesVietnamese ( )

Definition at line 2531 of file imgui_draw.cpp.

◆ GetMouseCursorTexData()

bool ImFontAtlas::GetMouseCursorTexData ( ImGuiMouseCursor  cursor,
ImVec2 out_offset,
ImVec2 out_size,
ImVec2  out_uv_border[2],
ImVec2  out_uv_fill[2] 
)

Definition at line 1867 of file imgui_draw.cpp.

◆ GetTexDataAsAlpha8()

void ImFontAtlas::GetTexDataAsAlpha8 ( unsigned char **  out_pixels,
int *  out_width,
int *  out_height,
int *  out_bytes_per_pixel = NULL 
)

Definition at line 1663 of file imgui_draw.cpp.

◆ GetTexDataAsRGBA32()

void ImFontAtlas::GetTexDataAsRGBA32 ( unsigned char **  out_pixels,
int *  out_width,
int *  out_height,
int *  out_bytes_per_pixel = NULL 
)

Definition at line 1679 of file imgui_draw.cpp.

◆ IsBuilt()

bool ImFontAtlas::IsBuilt ( ) const
inline

Definition at line 2205 of file imgui.h.

◆ SetTexID()

void ImFontAtlas::SetTexID ( ImTextureID  id)
inline

Definition at line 2206 of file imgui.h.

Member Data Documentation

◆ ConfigData

ImVector<ImFontConfig> ImFontAtlas::ConfigData

Definition at line 2261 of file imgui.h.

◆ CustomRectIds

int ImFontAtlas::CustomRectIds[1]

Definition at line 2262 of file imgui.h.

◆ CustomRects

ImVector<ImFontAtlasCustomRect> ImFontAtlas::CustomRects

Definition at line 2260 of file imgui.h.

◆ Flags

ImFontAtlasFlags ImFontAtlas::Flags

Definition at line 2246 of file imgui.h.

◆ Fonts

ImVector<ImFont*> ImFontAtlas::Fonts

Definition at line 2259 of file imgui.h.

◆ Locked

bool ImFontAtlas::Locked

Definition at line 2245 of file imgui.h.

◆ TexDesiredWidth

int ImFontAtlas::TexDesiredWidth

Definition at line 2248 of file imgui.h.

◆ TexGlyphPadding

int ImFontAtlas::TexGlyphPadding

Definition at line 2249 of file imgui.h.

◆ TexHeight

int ImFontAtlas::TexHeight

Definition at line 2256 of file imgui.h.

◆ TexID

ImTextureID ImFontAtlas::TexID

Definition at line 2247 of file imgui.h.

◆ TexPixelsAlpha8

unsigned char* ImFontAtlas::TexPixelsAlpha8

Definition at line 2253 of file imgui.h.

◆ TexPixelsRGBA32

unsigned int* ImFontAtlas::TexPixelsRGBA32

Definition at line 2254 of file imgui.h.

◆ TexUvScale

ImVec2 ImFontAtlas::TexUvScale

Definition at line 2257 of file imgui.h.

◆ TexUvWhitePixel

ImVec2 ImFontAtlas::TexUvWhitePixel

Definition at line 2258 of file imgui.h.

◆ TexWidth

int ImFontAtlas::TexWidth

Definition at line 2255 of file imgui.h.


The documentation for this struct was generated from the following files:


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:06