Ylva And Malin
Data Structures | Public Member Functions | Data Fields
ImFontAtlas Struct Reference

#include <imgui.h>

Collaboration diagram for ImFontAtlas:
Collaboration graph

Data Structures

struct  CustomRect
 
struct  GlyphRangesBuilder
 

Public Member Functions

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

Data Fields

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

Constructor & Destructor Documentation

ImFontAtlas::ImFontAtlas ( )
ImFontAtlas::~ImFontAtlas ( )

Member Function Documentation

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

Here is the caller graph for this function:

ImFont * ImFontAtlas::AddFont ( const ImFontConfig font_cfg)

Here is the call graph for this function:

ImFont * ImFontAtlas::AddFontDefault ( const ImFontConfig font_cfg = NULL)
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:

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:

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 
)

Here is the call graph for this function:

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

Here is the call graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

void ImFontAtlas::Clear ( )
void ImFontAtlas::ClearFonts ( )

Here is the call graph for this function:

void ImFontAtlas::ClearInputData ( )

Here is the call graph for this function:

void ImFontAtlas::ClearTexData ( )

Here is the call graph for this function:

Here is the caller graph for this function:

const CustomRect* ImFontAtlas::GetCustomRectByIndex ( int  index) const
inline
const ImWchar * ImFontAtlas::GetGlyphRangesChinese ( )
const ImWchar * ImFontAtlas::GetGlyphRangesCyrillic ( )
const ImWchar * ImFontAtlas::GetGlyphRangesDefault ( )

Here is the caller graph for this function:

const ImWchar * ImFontAtlas::GetGlyphRangesJapanese ( )
const ImWchar * ImFontAtlas::GetGlyphRangesKorean ( )
const ImWchar * ImFontAtlas::GetGlyphRangesThai ( )
bool ImFontAtlas::GetMouseCursorTexData ( ImGuiMouseCursor  cursor,
ImVec2 out_offset,
ImVec2 out_size,
ImVec2  out_uv_border[2],
ImVec2  out_uv_fill[2] 
)

Here is the caller graph for this function:

void ImFontAtlas::GetTexDataAsAlpha8 ( unsigned char **  out_pixels,
int out_width,
int out_height,
int out_bytes_per_pixel = NULL 
)
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:

Here is the caller graph for this function:

void ImFontAtlas::SetTexID ( ImTextureID  id)
inline

Field Documentation

ImVector<ImFontConfig> ImFontAtlas::ConfigData
int ImFontAtlas::CustomRectIds[1]
ImVector<CustomRect> ImFontAtlas::CustomRects
ImFontAtlasFlags ImFontAtlas::Flags
ImVector<ImFont*> ImFontAtlas::Fonts
int ImFontAtlas::TexDesiredWidth
int ImFontAtlas::TexGlyphPadding
int ImFontAtlas::TexHeight
ImTextureID ImFontAtlas::TexID
unsigned char* ImFontAtlas::TexPixelsAlpha8
unsigned int* ImFontAtlas::TexPixelsRGBA32
ImVec2 ImFontAtlas::TexUvScale
ImVec2 ImFontAtlas::TexUvWhitePixel
int ImFontAtlas::TexWidth

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