PURE API 0.5
PR00F's Ultimate Rendering Engine full documentation
Loading...
Searching...
No Matches
ImFontAtlas Struct Reference

Detailed Description

Definition at line 2767 of file imgui.h.

#include <imgui.h>

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 (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
 
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 ImFontBuilderIO * FontBuilderIO
 
unsigned int FontBuilderFlags
 
int PackIdMouseCursors
 
int PackIdLines
 

Constructor & Destructor Documentation

◆ ImFontAtlas()

IMGUI_API ImFontAtlas::ImFontAtlas ( )

◆ ~ImFontAtlas()

IMGUI_API ImFontAtlas::~ImFontAtlas ( )

Member Function Documentation

◆ AddCustomRectFontGlyph()

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

◆ AddCustomRectRegular()

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

◆ AddFont()

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

◆ AddFontDefault()

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

◆ AddFontFromFileTTF()

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

◆ AddFontFromMemoryCompressedBase85TTF()

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

◆ AddFontFromMemoryCompressedTTF()

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 )

◆ AddFontFromMemoryTTF()

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

◆ Build()

IMGUI_API bool ImFontAtlas::Build ( )

◆ CalcCustomRectUV()

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

◆ Clear()

IMGUI_API void ImFontAtlas::Clear ( )

◆ ClearFonts()

IMGUI_API void ImFontAtlas::ClearFonts ( )

◆ ClearInputData()

IMGUI_API void ImFontAtlas::ClearInputData ( )

◆ ClearTexData()

IMGUI_API void ImFontAtlas::ClearTexData ( )

◆ GetCustomRectByIndex()

ImFontAtlasCustomRect * ImFontAtlas::GetCustomRectByIndex ( int index)
inline

Definition at line 2822 of file imgui.h.

◆ GetGlyphRangesChineseFull()

IMGUI_API const ImWchar * ImFontAtlas::GetGlyphRangesChineseFull ( )

◆ GetGlyphRangesChineseSimplifiedCommon()

IMGUI_API const ImWchar * ImFontAtlas::GetGlyphRangesChineseSimplifiedCommon ( )

◆ GetGlyphRangesCyrillic()

IMGUI_API const ImWchar * ImFontAtlas::GetGlyphRangesCyrillic ( )

◆ GetGlyphRangesDefault()

IMGUI_API const ImWchar * ImFontAtlas::GetGlyphRangesDefault ( )

◆ GetGlyphRangesJapanese()

IMGUI_API const ImWchar * ImFontAtlas::GetGlyphRangesJapanese ( )

◆ GetGlyphRangesKorean()

IMGUI_API const ImWchar * ImFontAtlas::GetGlyphRangesKorean ( )

◆ GetGlyphRangesThai()

IMGUI_API const ImWchar * ImFontAtlas::GetGlyphRangesThai ( )

◆ GetGlyphRangesVietnamese()

IMGUI_API const ImWchar * ImFontAtlas::GetGlyphRangesVietnamese ( )

◆ GetMouseCursorTexData()

IMGUI_API bool ImFontAtlas::GetMouseCursorTexData ( ImGuiMouseCursor cursor,
ImVec2 * out_offset,
ImVec2 * out_size,
ImVec2 out_uv_border[2],
ImVec2 out_uv_fill[2] )

◆ GetTexDataAsAlpha8()

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

◆ GetTexDataAsRGBA32()

IMGUI_API 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

Definition at line 2790 of file imgui.h.

◆ SetTexID()

void ImFontAtlas::SetTexID ( ImTextureID id)
inline

Definition at line 2791 of file imgui.h.

Member Data Documentation

◆ ConfigData

ImVector<ImFontConfig> ImFontAtlas::ConfigData

Definition at line 2850 of file imgui.h.

◆ CustomRects

ImVector<ImFontAtlasCustomRect> ImFontAtlas::CustomRects

Definition at line 2849 of file imgui.h.

◆ Flags

ImFontAtlasFlags ImFontAtlas::Flags

Definition at line 2832 of file imgui.h.

◆ FontBuilderFlags

unsigned int ImFontAtlas::FontBuilderFlags

Definition at line 2855 of file imgui.h.

◆ FontBuilderIO

const ImFontBuilderIO* ImFontAtlas::FontBuilderIO

Definition at line 2854 of file imgui.h.

◆ Fonts

ImVector<ImFont*> ImFontAtlas::Fonts

Definition at line 2848 of file imgui.h.

◆ Locked

bool ImFontAtlas::Locked

Definition at line 2836 of file imgui.h.

◆ PackIdLines

int ImFontAtlas::PackIdLines

Definition at line 2859 of file imgui.h.

◆ PackIdMouseCursors

int ImFontAtlas::PackIdMouseCursors

Definition at line 2858 of file imgui.h.

◆ TexDesiredWidth

int ImFontAtlas::TexDesiredWidth

Definition at line 2834 of file imgui.h.

◆ TexGlyphPadding

int ImFontAtlas::TexGlyphPadding

Definition at line 2835 of file imgui.h.

◆ TexHeight

int ImFontAtlas::TexHeight

Definition at line 2845 of file imgui.h.

◆ TexID

ImTextureID ImFontAtlas::TexID

Definition at line 2833 of file imgui.h.

◆ TexPixelsAlpha8

unsigned char* ImFontAtlas::TexPixelsAlpha8

Definition at line 2842 of file imgui.h.

◆ TexPixelsRGBA32

unsigned int* ImFontAtlas::TexPixelsRGBA32

Definition at line 2843 of file imgui.h.

◆ TexPixelsUseColors

bool ImFontAtlas::TexPixelsUseColors

Definition at line 2841 of file imgui.h.

◆ TexReady

bool ImFontAtlas::TexReady

Definition at line 2840 of file imgui.h.

◆ TexUvLines

ImVec4 ImFontAtlas::TexUvLines[IM_DRAWLIST_TEX_LINES_WIDTH_MAX+1]

Definition at line 2851 of file imgui.h.

◆ TexUvScale

ImVec2 ImFontAtlas::TexUvScale

Definition at line 2846 of file imgui.h.

◆ TexUvWhitePixel

ImVec2 ImFontAtlas::TexUvWhitePixel

Definition at line 2847 of file imgui.h.

◆ TexWidth

int ImFontAtlas::TexWidth

Definition at line 2844 of file imgui.h.


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