MCPcopy Create free account
hub / github.com/KebsCS/KBotExt / ImFontAtlasCustomRect

Class ImFontAtlasCustomRect

KBotExt/imgui/imgui.h:2831–2841  ·  view source on GitHub ↗

See ImFontAtlas::AddCustomRectXXX functions.

Source from the content-addressed store, hash-verified

2829
2830// See ImFontAtlas::AddCustomRectXXX functions.
2831struct ImFontAtlasCustomRect
2832{
2833 unsigned short Width, Height; // Input // Desired rectangle dimension
2834 unsigned short X, Y; // Output // Packed position in Atlas
2835 unsigned int GlyphID; // Input // For custom font glyphs only (ID < 0x110000)
2836 float GlyphAdvanceX; // Input // For custom font glyphs only: glyph xadvance
2837 ImVec2 GlyphOffset; // Input // For custom font glyphs only: glyph display offset
2838 ImFont* Font; // Input // For custom font glyphs only: target font
2839 ImFontAtlasCustomRect() { Width = Height = 0; X = Y = 0xFFFF; GlyphID = 0; GlyphAdvanceX = 0.0f; GlyphOffset = ImVec2(0, 0); Font = NULL; }
2840 bool IsPacked() const { return X != 0xFFFF; }
2841};
2842
2843// Flags for ImFontAtlas build
2844enum ImFontAtlasFlags_

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected