Elaztek Developer Hub
Blamite Game Engine - blam!  00346.12.11.21.0529.blamite
The core library for the Blamite Game Engine.
ImFontAtlas Struct Reference

#include <imgui.h>

Public Types

typedef ImFontAtlasCustomRect CustomRect
 
typedef ImFontGlyphRangesBuilder GlyphRangesBuilder
 

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_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_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 ()
 
void SetTexID (ImTextureID id)
 
const IMGUI_API ImWcharGetGlyphRangesDefault ()
 
const IMGUI_API ImWcharGetGlyphRangesKorean ()
 
const IMGUI_API ImWcharGetGlyphRangesJapanese ()
 
const IMGUI_API ImWcharGetGlyphRangesChineseFull ()
 
const IMGUI_API ImWcharGetGlyphRangesChineseSimplifiedCommon ()
 
const IMGUI_API ImWcharGetGlyphRangesCyrillic ()
 
const IMGUI_API ImWcharGetGlyphRangesThai ()
 
const IMGUI_API ImWcharGetGlyphRangesVietnamese ()
 
IMGUI_API int AddCustomRectRegular (unsigned int id, 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))
 
const ImFontAtlasCustomRectGetCustomRectByIndex (int index) const
 
IMGUI_API void CalcCustomRectUV (const ImFontAtlasCustomRect *rect, ImVec2 *out_uv_min, ImVec2 *out_uv_max)
 
IMGUI_API bool GetMouseCursorTexData (ImGuiMouseCursor cursor, ImVec2 *out_offset, ImVec2 *out_size, ImVec2 out_uv_border[2], ImVec2 out_uv_fill[2])
 

Public Attributes

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

Member Typedef Documentation

◆ CustomRect

◆ GlyphRangesBuilder

Constructor & Destructor Documentation

◆ ImFontAtlas()

ImFontAtlas::ImFontAtlas ( )

◆ ~ImFontAtlas()

ImFontAtlas::~ImFontAtlas ( )

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 ( unsigned int  id,
int  width,
int  height 
)

◆ AddFont()

ImFont * ImFontAtlas::AddFont ( const ImFontConfig font_cfg)

◆ AddFontDefault()

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

◆ AddFontFromFileTTF()

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

◆ AddFontFromMemoryCompressedBase85TTF()

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

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

◆ AddFontFromMemoryTTF()

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

◆ Build()

bool ImFontAtlas::Build ( )

◆ CalcCustomRectUV()

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

◆ Clear()

void ImFontAtlas::Clear ( )

◆ ClearFonts()

void ImFontAtlas::ClearFonts ( )

◆ ClearInputData()

void ImFontAtlas::ClearInputData ( )

◆ ClearTexData()

void ImFontAtlas::ClearTexData ( )

◆ GetCustomRectByIndex()

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

◆ GetGlyphRangesChineseFull()

const ImWchar * ImFontAtlas::GetGlyphRangesChineseFull ( )

◆ GetGlyphRangesChineseSimplifiedCommon()

const ImWchar * ImFontAtlas::GetGlyphRangesChineseSimplifiedCommon ( )

◆ GetGlyphRangesCyrillic()

const ImWchar * ImFontAtlas::GetGlyphRangesCyrillic ( )

◆ GetGlyphRangesDefault()

const ImWchar * ImFontAtlas::GetGlyphRangesDefault ( )

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

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

◆ SetTexID()

void ImFontAtlas::SetTexID ( ImTextureID  id)
inline

Member Data Documentation

◆ ConfigData

ImVector<ImFontConfig> ImFontAtlas::ConfigData

◆ CustomRectIds

int ImFontAtlas::CustomRectIds[1]

◆ CustomRects

ImVector<ImFontAtlasCustomRect> ImFontAtlas::CustomRects

◆ Flags

ImFontAtlasFlags ImFontAtlas::Flags

◆ Fonts

ImVector<ImFont*> ImFontAtlas::Fonts

◆ Locked

bool ImFontAtlas::Locked

◆ 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

◆ TexUvScale

ImVec2 ImFontAtlas::TexUvScale

◆ TexUvWhitePixel

ImVec2 ImFontAtlas::TexUvWhitePixel

◆ TexWidth

int ImFontAtlas::TexWidth

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