Path Tracing
Loading...
Searching...
No Matches
ImFontAtlas Struct Reference

#include <imgui.h>

Collaboration diagram for ImFontAtlas:

Public Member Functions

IMGUI_API ImFontAtlas ()
IMGUI_API ~ImFontAtlas ()
IMGUI_API ImFont * AddFont (const ImFontConfig *font_cfg)
IMGUI_API ImFont * AddFontDefault (const ImFontConfig *font_cfg=NULL)
IMGUI_API ImFont * AddFontDefaultVector (const ImFontConfig *font_cfg=NULL)
IMGUI_API ImFont * AddFontDefaultBitmap (const ImFontConfig *font_cfg=NULL)
IMGUI_API ImFont * AddFontFromFileTTF (const char *filename, float size_pixels=0.0f, const ImFontConfig *font_cfg=NULL, const ImWchar *glyph_ranges=NULL)
IMGUI_API ImFont * AddFontFromMemoryTTF (void *font_data, int font_data_size, float size_pixels=0.0f, const ImFontConfig *font_cfg=NULL, const ImWchar *glyph_ranges=NULL)
IMGUI_API ImFont * AddFontFromMemoryCompressedTTF (const void *compressed_font_data, int compressed_font_data_size, float size_pixels=0.0f, const ImFontConfig *font_cfg=NULL, const ImWchar *glyph_ranges=NULL)
IMGUI_API ImFont * AddFontFromMemoryCompressedBase85TTF (const char *compressed_font_data_base85, float size_pixels=0.0f, const ImFontConfig *font_cfg=NULL, const ImWchar *glyph_ranges=NULL)
IMGUI_API void RemoveFont (ImFont *font)
IMGUI_API void Clear ()
IMGUI_API void CompactCache ()
IMGUI_API void SetFontLoader (const ImFontLoader *font_loader)
IMGUI_API void ClearInputData ()
IMGUI_API void ClearFonts ()
IMGUI_API void ClearTexData ()
IMGUI_API bool Build ()
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)
void SetTexID (ImTextureID id)
void SetTexID (ImTextureRef id)
bool IsBuilt () const
IMGUI_API const ImWchar * GetGlyphRangesDefault ()
IMGUI_API const ImWchar * GetGlyphRangesGreek ()
IMGUI_API const ImWchar * GetGlyphRangesKorean ()
IMGUI_API const ImWchar * GetGlyphRangesJapanese ()
IMGUI_API const ImWchar * GetGlyphRangesChineseFull ()
IMGUI_API const ImWchar * GetGlyphRangesChineseSimplifiedCommon ()
IMGUI_API const ImWchar * GetGlyphRangesCyrillic ()
IMGUI_API const ImWchar * GetGlyphRangesThai ()
IMGUI_API const ImWchar * GetGlyphRangesVietnamese ()
IMGUI_API ImFontAtlasRectId AddCustomRect (int width, int height, ImFontAtlasRect *out_r=NULL)
IMGUI_API void RemoveCustomRect (ImFontAtlasRectId id)
IMGUI_API bool GetCustomRect (ImFontAtlasRectId id, ImFontAtlasRect *out_r) const
ImFontAtlasRectId AddCustomRectRegular (int w, int h)
const ImFontAtlasRect * GetCustomRectByIndex (ImFontAtlasRectId id)
void CalcCustomRectUV (const ImFontAtlasRect *r, ImVec2 *out_uv_min, ImVec2 *out_uv_max) const
IMGUI_API ImFontAtlasRectId AddCustomRectFontGlyph (ImFont *font, ImWchar codepoint, int w, int h, float advance_x, const ImVec2 &offset=ImVec2(0, 0))
IMGUI_API ImFontAtlasRectId AddCustomRectFontGlyphForSize (ImFont *font, float font_size, ImWchar codepoint, int w, int h, float advance_x, const ImVec2 &offset=ImVec2(0, 0))

Public Attributes

ImFontAtlasFlags Flags
ImTextureFormat TexDesiredFormat
int TexGlyphPadding
int TexMinWidth
int TexMinHeight
int TexMaxWidth
int TexMaxHeight
void * UserData
union { 
   ImTextureRef   TexRef 
   ImTextureRef   TexID 
}; 
ImTextureData * TexData
ImVector< ImTextureData * > TexList
bool Locked
bool RendererHasTextures
bool TexIsBuilt
bool TexPixelsUseColors
ImVec2 TexUvScale
ImVec2 TexUvWhitePixel
ImVector< ImFont * > Fonts
ImVector< ImFontConfig > Sources
ImVec4 TexUvLines [IM_DRAWLIST_TEX_LINES_WIDTH_MAX+1]
int TexNextUniqueID
int FontNextUniqueID
ImVector< ImDrawListSharedData * > DrawListSharedDatas
ImFontAtlasBuilder * Builder
const ImFontLoader * FontLoader
const char * FontLoaderName
void * FontLoaderData
unsigned int FontLoaderFlags
int RefCount
ImGuiContext * OwnerContext
ImFontAtlasRect TempRect

Constructor & Destructor Documentation

◆ ImFontAtlas()

ImFontAtlas::ImFontAtlas ( )

◆ ~ImFontAtlas()

ImFontAtlas::~ImFontAtlas ( )

Member Function Documentation

◆ AddCustomRect()

ImFontAtlasRectId ImFontAtlas::AddCustomRect ( int width,
int height,
ImFontAtlasRect * out_r = NULL )

◆ AddCustomRectFontGlyph()

ImFontAtlasRectId ImFontAtlas::AddCustomRectFontGlyph ( ImFont * font,
ImWchar codepoint,
int w,
int h,
float advance_x,
const ImVec2 & offset = ImVec2(0, 0) )

◆ AddCustomRectFontGlyphForSize()

ImFontAtlasRectId ImFontAtlas::AddCustomRectFontGlyphForSize ( ImFont * font,
float font_size,
ImWchar codepoint,
int w,
int h,
float advance_x,
const ImVec2 & offset = ImVec2(0, 0) )

◆ AddCustomRectRegular()

ImFontAtlasRectId ImFontAtlas::AddCustomRectRegular ( int w,
int h )
inline

◆ AddFont()

ImFont * ImFontAtlas::AddFont ( const ImFontConfig * font_cfg)

◆ AddFontDefault()

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

◆ AddFontDefaultBitmap()

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

◆ AddFontDefaultVector()

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

◆ AddFontFromFileTTF()

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

◆ AddFontFromMemoryCompressedBase85TTF()

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

◆ AddFontFromMemoryCompressedTTF()

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

◆ AddFontFromMemoryTTF()

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

◆ Build()

bool ImFontAtlas::Build ( )

◆ CalcCustomRectUV()

void ImFontAtlas::CalcCustomRectUV ( const ImFontAtlasRect * r,
ImVec2 * out_uv_min,
ImVec2 * out_uv_max ) const
inline

◆ Clear()

void ImFontAtlas::Clear ( )

◆ ClearFonts()

void ImFontAtlas::ClearFonts ( )

◆ ClearInputData()

void ImFontAtlas::ClearInputData ( )

◆ ClearTexData()

void ImFontAtlas::ClearTexData ( )

◆ CompactCache()

void ImFontAtlas::CompactCache ( )

◆ GetCustomRect()

bool ImFontAtlas::GetCustomRect ( ImFontAtlasRectId id,
ImFontAtlasRect * out_r ) const

◆ GetCustomRectByIndex()

const ImFontAtlasRect * ImFontAtlas::GetCustomRectByIndex ( ImFontAtlasRectId id)
inline

◆ GetGlyphRangesChineseFull()

const ImWchar * ImFontAtlas::GetGlyphRangesChineseFull ( )

◆ GetGlyphRangesChineseSimplifiedCommon()

const ImWchar * ImFontAtlas::GetGlyphRangesChineseSimplifiedCommon ( )

◆ GetGlyphRangesCyrillic()

const ImWchar * ImFontAtlas::GetGlyphRangesCyrillic ( )

◆ GetGlyphRangesDefault()

const ImWchar * ImFontAtlas::GetGlyphRangesDefault ( )

◆ GetGlyphRangesGreek()

const ImWchar * ImFontAtlas::GetGlyphRangesGreek ( )

◆ GetGlyphRangesJapanese()

const ImWchar * ImFontAtlas::GetGlyphRangesJapanese ( )

◆ GetGlyphRangesKorean()

const ImWchar * ImFontAtlas::GetGlyphRangesKorean ( )

◆ GetGlyphRangesThai()

const ImWchar * ImFontAtlas::GetGlyphRangesThai ( )

◆ GetGlyphRangesVietnamese()

const ImWchar * ImFontAtlas::GetGlyphRangesVietnamese ( )

◆ GetTexDataAsAlpha8()

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

◆ GetTexDataAsRGBA32()

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

◆ IsBuilt()

bool ImFontAtlas::IsBuilt ( ) const
inline

◆ RemoveCustomRect()

void ImFontAtlas::RemoveCustomRect ( ImFontAtlasRectId id)

◆ RemoveFont()

void ImFontAtlas::RemoveFont ( ImFont * font)

◆ SetFontLoader()

void ImFontAtlas::SetFontLoader ( const ImFontLoader * font_loader)

◆ SetTexID() [1/2]

void ImFontAtlas::SetTexID ( ImTextureID id)
inline

◆ SetTexID() [2/2]

void ImFontAtlas::SetTexID ( ImTextureRef id)
inline

Member Data Documentation

◆ [union]

union { ... } ImFontAtlas

◆ Builder

ImFontAtlasBuilder* ImFontAtlas::Builder

◆ DrawListSharedDatas

ImVector<ImDrawListSharedData*> ImFontAtlas::DrawListSharedDatas

◆ Flags

ImFontAtlasFlags ImFontAtlas::Flags

◆ FontLoader

const ImFontLoader* ImFontAtlas::FontLoader

◆ FontLoaderData

void* ImFontAtlas::FontLoaderData

◆ FontLoaderFlags

unsigned int ImFontAtlas::FontLoaderFlags

◆ FontLoaderName

const char* ImFontAtlas::FontLoaderName

◆ FontNextUniqueID

int ImFontAtlas::FontNextUniqueID

◆ Fonts

ImVector<ImFont*> ImFontAtlas::Fonts

◆ Locked

bool ImFontAtlas::Locked

◆ OwnerContext

ImGuiContext* ImFontAtlas::OwnerContext

◆ RefCount

int ImFontAtlas::RefCount

◆ RendererHasTextures

bool ImFontAtlas::RendererHasTextures

◆ Sources

ImVector<ImFontConfig> ImFontAtlas::Sources

◆ TempRect

ImFontAtlasRect ImFontAtlas::TempRect

◆ TexData

ImTextureData* ImFontAtlas::TexData

◆ TexDesiredFormat

ImTextureFormat ImFontAtlas::TexDesiredFormat

◆ TexGlyphPadding

int ImFontAtlas::TexGlyphPadding

◆ TexID

ImTextureRef ImFontAtlas::TexID

◆ TexIsBuilt

bool ImFontAtlas::TexIsBuilt

◆ TexList

ImVector<ImTextureData*> ImFontAtlas::TexList

◆ TexMaxHeight

int ImFontAtlas::TexMaxHeight

◆ TexMaxWidth

int ImFontAtlas::TexMaxWidth

◆ TexMinHeight

int ImFontAtlas::TexMinHeight

◆ TexMinWidth

int ImFontAtlas::TexMinWidth

◆ TexNextUniqueID

int ImFontAtlas::TexNextUniqueID

◆ TexPixelsUseColors

bool ImFontAtlas::TexPixelsUseColors

◆ TexRef

ImTextureRef ImFontAtlas::TexRef

◆ TexUvLines

ImVec4 ImFontAtlas::TexUvLines[IM_DRAWLIST_TEX_LINES_WIDTH_MAX+1]

◆ TexUvScale

ImVec2 ImFontAtlas::TexUvScale

◆ TexUvWhitePixel

ImVec2 ImFontAtlas::TexUvWhitePixel

◆ UserData

void* ImFontAtlas::UserData

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