VR-Vantage 2.6 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Public Attributes
ImFontAtlas Struct Reference

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 () const
 
void SetTexID (ImTextureID id)
 
IMGUI_API const ImWcharGetGlyphRangesDefault ()
 
IMGUI_API const ImWcharGetGlyphRangesKorean ()
 
IMGUI_API const ImWcharGetGlyphRangesJapanese ()
 
IMGUI_API const ImWcharGetGlyphRangesChineseFull ()
 
IMGUI_API const ImWcharGetGlyphRangesChineseSimplifiedCommon ()
 
IMGUI_API const ImWcharGetGlyphRangesCyrillic ()
 
IMGUI_API const ImWcharGetGlyphRangesThai ()
 
IMGUI_API const 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) 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

bool Locked
 
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< ImFontAtlasCustomRectCustomRects
 
ImVector< ImFontConfigConfigData
 
int CustomRectIds [1]
 

Member Typedef Documentation

Constructor & Destructor Documentation

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

Member Function Documentation

IMGUI_API ImFont* ImFontAtlas::AddFont ( const ImFontConfig font_cfg)
IMGUI_API ImFont* ImFontAtlas::AddFontDefault ( const ImFontConfig font_cfg = NULL)
IMGUI_API ImFont* ImFontAtlas::AddFontFromFileTTF ( const char *  filename,
float  size_pixels,
const ImFontConfig font_cfg = NULL,
const ImWchar glyph_ranges = NULL 
)
IMGUI_API ImFont* ImFontAtlas::AddFontFromMemoryTTF ( void *  font_data,
int  font_size,
float  size_pixels,
const ImFontConfig font_cfg = NULL,
const ImWchar glyph_ranges = NULL 
)
IMGUI_API 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 
)
IMGUI_API ImFont* ImFontAtlas::AddFontFromMemoryCompressedBase85TTF ( const char *  compressed_font_data_base85,
float  size_pixels,
const ImFontConfig font_cfg = NULL,
const ImWchar glyph_ranges = NULL 
)
IMGUI_API void ImFontAtlas::ClearInputData ( )
IMGUI_API void ImFontAtlas::ClearTexData ( )
IMGUI_API void ImFontAtlas::ClearFonts ( )
IMGUI_API void ImFontAtlas::Clear ( )
IMGUI_API bool ImFontAtlas::Build ( )
IMGUI_API void ImFontAtlas::GetTexDataAsAlpha8 ( unsigned char **  out_pixels,
int out_width,
int out_height,
int out_bytes_per_pixel = NULL 
)
IMGUI_API void ImFontAtlas::GetTexDataAsRGBA32 ( unsigned char **  out_pixels,
int out_width,
int out_height,
int out_bytes_per_pixel = NULL 
)
bool ImFontAtlas::IsBuilt ( ) const
inline
void ImFontAtlas::SetTexID ( ImTextureID  id)
inline
IMGUI_API const ImWchar* ImFontAtlas::GetGlyphRangesDefault ( )
IMGUI_API const ImWchar* ImFontAtlas::GetGlyphRangesKorean ( )
IMGUI_API const ImWchar* ImFontAtlas::GetGlyphRangesJapanese ( )
IMGUI_API const ImWchar* ImFontAtlas::GetGlyphRangesChineseFull ( )
IMGUI_API const ImWchar* ImFontAtlas::GetGlyphRangesChineseSimplifiedCommon ( )
IMGUI_API const ImWchar* ImFontAtlas::GetGlyphRangesCyrillic ( )
IMGUI_API const ImWchar* ImFontAtlas::GetGlyphRangesThai ( )
IMGUI_API const ImWchar* ImFontAtlas::GetGlyphRangesVietnamese ( )
IMGUI_API int ImFontAtlas::AddCustomRectRegular ( unsigned int  id,
int  width,
int  height 
)
IMGUI_API int ImFontAtlas::AddCustomRectFontGlyph ( ImFont font,
ImWchar  id,
int  width,
int  height,
float  advance_x,
const ImVec2 offset = ImVec2(0, 0) 
)
const ImFontAtlasCustomRect* ImFontAtlas::GetCustomRectByIndex ( int  index) const
inline
IMGUI_API void ImFontAtlas::CalcCustomRectUV ( const ImFontAtlasCustomRect rect,
ImVec2 out_uv_min,
ImVec2 out_uv_max 
) const
IMGUI_API bool ImFontAtlas::GetMouseCursorTexData ( ImGuiMouseCursor  cursor,
ImVec2 out_offset,
ImVec2 out_size,
ImVec2  out_uv_border[2],
ImVec2  out_uv_fill[2] 
)

Member Data Documentation

bool ImFontAtlas::Locked
ImFontAtlasFlags ImFontAtlas::Flags
ImTextureID ImFontAtlas::TexID
int ImFontAtlas::TexDesiredWidth
int ImFontAtlas::TexGlyphPadding
unsigned char* ImFontAtlas::TexPixelsAlpha8
unsigned int* ImFontAtlas::TexPixelsRGBA32
int ImFontAtlas::TexWidth
int ImFontAtlas::TexHeight
ImVec2 ImFontAtlas::TexUvScale
ImVec2 ImFontAtlas::TexUvWhitePixel
ImVector<ImFont*> ImFontAtlas::Fonts

Referenced by ImGui::GetDefaultFont().

ImVector<ImFontAtlasCustomRect> ImFontAtlas::CustomRects
ImVector<ImFontConfig> ImFontAtlas::ConfigData
int ImFontAtlas::CustomRectIds[1]

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


Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)