Steppable 0.0.1
A CAS project written from scratch in C++
Loading...
Searching...
No Matches
ImFontAtlas Struct Reference

#include <imgui.h>

Collaboration diagram for ImFontAtlas:
[legend]

Public Member Functions

IMGUI_API ImFontAtlas ()
 
IMGUI_API ~ImFontAtlas ()
 
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 ImFontAddFontFromMemoryTTF (void *font_data, int font_data_size, float size_pixels, const ImFontConfig *font_cfg=NULL, const ImWchar *glyph_ranges=NULL)
 
IMGUI_API ImFontAddFontFromMemoryCompressedTTF (const void *compressed_font_data, int compressed_font_data_size, 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 void ClearInputData ()
 
IMGUI_API void ClearTexData ()
 
IMGUI_API void ClearFonts ()
 
IMGUI_API void Clear ()
 
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)
 
bool IsBuilt () const
 
void SetTexID (ImTextureID id)
 
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 int AddCustomRectRegular (int width, int height)
 
IMGUI_API int AddCustomRectFontGlyph (ImFont *font, ImWchar id, int width, int height, float advance_x, const ImVec2 &offset=ImVec2(0, 0))
 
ImFontAtlasCustomRectGetCustomRectByIndex (int index)
 
IMGUI_API void CalcCustomRectUV (const ImFontAtlasCustomRect *rect, ImVec2 *out_uv_min, ImVec2 *out_uv_max) const
 
IMGUI_API bool GetMouseCursorTexData (ImGuiMouseCursor cursor, ImVec2 *out_offset, ImVec2 *out_size, ImVec2 out_uv_border[2], ImVec2 out_uv_fill[2])
 

Public Attributes

ImFontAtlasFlags Flags
 
ImTextureID TexID
 
int TexDesiredWidth
 
int TexGlyphPadding
 
bool Locked
 
void * UserData
 
bool TexReady
 
bool TexPixelsUseColors
 
unsigned char * TexPixelsAlpha8
 
unsigned int * TexPixelsRGBA32
 
int TexWidth
 
int TexHeight
 
ImVec2 TexUvScale
 
ImVec2 TexUvWhitePixel
 
ImVector< ImFont * > Fonts
 
ImVector< ImFontAtlasCustomRectCustomRects
 
ImVector< ImFontConfigConfigData
 
ImVec4 TexUvLines [IM_DRAWLIST_TEX_LINES_WIDTH_MAX+1]
 
const ImFontBuilderIOFontBuilderIO
 
unsigned int FontBuilderFlags
 
int PackIdMouseCursors
 
int PackIdLines
 

Constructor & Destructor Documentation

◆ ImFontAtlas()

ImFontAtlas::ImFontAtlas ( )

◆ ~ImFontAtlas()

ImFontAtlas::~ImFontAtlas ( )
Here is the call graph for this function:

Member Function Documentation

◆ AddCustomRectFontGlyph()

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

◆ AddCustomRectRegular()

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

◆ AddFont()

ImFont * ImFontAtlas::AddFont ( const ImFontConfig * font_cfg)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ AddFontDefault()

ImFont * ImFontAtlas::AddFontDefault ( const ImFontConfig * font_cfg = NULL)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ AddFontFromFileTTF()

ImFont * ImFontAtlas::AddFontFromFileTTF ( const char * filename,
float size_pixels,
const ImFontConfig * font_cfg = NULL,
const ImWchar * glyph_ranges = NULL )
Here is the call graph for this function:

◆ AddFontFromMemoryCompressedBase85TTF()

ImFont * ImFontAtlas::AddFontFromMemoryCompressedBase85TTF ( const char * compressed_font_data_base85,
float size_pixels,
const ImFontConfig * font_cfg = NULL,
const ImWchar * glyph_ranges = NULL )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ AddFontFromMemoryCompressedTTF()

ImFont * ImFontAtlas::AddFontFromMemoryCompressedTTF ( const void * compressed_font_data,
int compressed_font_data_size,
float size_pixels,
const ImFontConfig * font_cfg = NULL,
const ImWchar * glyph_ranges = NULL )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ AddFontFromMemoryTTF()

ImFont * ImFontAtlas::AddFontFromMemoryTTF ( void * font_data,
int font_data_size,
float size_pixels,
const ImFontConfig * font_cfg = NULL,
const ImWchar * glyph_ranges = NULL )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Build()

bool ImFontAtlas::Build ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ CalcCustomRectUV()

void ImFontAtlas::CalcCustomRectUV ( const ImFontAtlasCustomRect * rect,
ImVec2 * out_uv_min,
ImVec2 * out_uv_max ) const
Here is the call graph for this function:

◆ Clear()

void ImFontAtlas::Clear ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ClearFonts()

void ImFontAtlas::ClearFonts ( )
Here is the caller graph for this function:

◆ ClearInputData()

void ImFontAtlas::ClearInputData ( )
Here is the caller graph for this function:

◆ ClearTexData()

void ImFontAtlas::ClearTexData ( )
Here is the caller graph for this function:

◆ GetCustomRectByIndex()

ImFontAtlasCustomRect * ImFontAtlas::GetCustomRectByIndex ( int index)
inline
Here is the caller graph for this function:

◆ GetGlyphRangesChineseFull()

const ImWchar * ImFontAtlas::GetGlyphRangesChineseFull ( )

◆ GetGlyphRangesChineseSimplifiedCommon()

const ImWchar * ImFontAtlas::GetGlyphRangesChineseSimplifiedCommon ( )

◆ GetGlyphRangesCyrillic()

const ImWchar * ImFontAtlas::GetGlyphRangesCyrillic ( )

◆ GetGlyphRangesDefault()

const ImWchar * ImFontAtlas::GetGlyphRangesDefault ( )
Here is the caller graph for this function:

◆ 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 ( )

◆ GetMouseCursorTexData()

bool ImFontAtlas::GetMouseCursorTexData ( ImGuiMouseCursor cursor,
ImVec2 * out_offset,
ImVec2 * out_size,
ImVec2 out_uv_border[2],
ImVec2 out_uv_fill[2] )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetTexDataAsAlpha8()

void ImFontAtlas::GetTexDataAsAlpha8 ( unsigned char ** out_pixels,
int * out_width,
int * out_height,
int * out_bytes_per_pixel = NULL )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetTexDataAsRGBA32()

void ImFontAtlas::GetTexDataAsRGBA32 ( unsigned char ** out_pixels,
int * out_width,
int * out_height,
int * out_bytes_per_pixel = NULL )
Here is the call graph for this function:

◆ IsBuilt()

bool ImFontAtlas::IsBuilt ( ) const
inline
Here is the caller graph for this function:

◆ SetTexID()

void ImFontAtlas::SetTexID ( ImTextureID id)
inline

Member Data Documentation

◆ ConfigData

ImVector<ImFontConfig> ImFontAtlas::ConfigData

◆ CustomRects

ImVector<ImFontAtlasCustomRect> ImFontAtlas::CustomRects

◆ Flags

ImFontAtlasFlags ImFontAtlas::Flags

◆ FontBuilderFlags

unsigned int ImFontAtlas::FontBuilderFlags

◆ FontBuilderIO

const ImFontBuilderIO* ImFontAtlas::FontBuilderIO

◆ Fonts

ImVector<ImFont*> ImFontAtlas::Fonts

◆ Locked

bool ImFontAtlas::Locked

◆ PackIdLines

int ImFontAtlas::PackIdLines

◆ PackIdMouseCursors

int ImFontAtlas::PackIdMouseCursors

◆ TexDesiredWidth

int ImFontAtlas::TexDesiredWidth

◆ TexGlyphPadding

int ImFontAtlas::TexGlyphPadding

◆ TexHeight

int ImFontAtlas::TexHeight

◆ TexID

ImTextureID ImFontAtlas::TexID

◆ TexPixelsAlpha8

unsigned char* ImFontAtlas::TexPixelsAlpha8

◆ TexPixelsRGBA32

unsigned int* ImFontAtlas::TexPixelsRGBA32

◆ TexPixelsUseColors

bool ImFontAtlas::TexPixelsUseColors

◆ TexReady

bool ImFontAtlas::TexReady

◆ TexUvLines

ImVec4 ImFontAtlas::TexUvLines[IM_DRAWLIST_TEX_LINES_WIDTH_MAX+1]

◆ TexUvScale

ImVec2 ImFontAtlas::TexUvScale

◆ TexUvWhitePixel

ImVec2 ImFontAtlas::TexUvWhitePixel

◆ TexWidth

int ImFontAtlas::TexWidth

◆ UserData

void* ImFontAtlas::UserData

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