Skip to content

Commit 9fa6f00

Browse files
committed
[Bundle] ImFontGlyph: publish CodePoint, Colored, Visible via getters
1 parent f113c20 commit 9fa6f00

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

imgui.h

+9
Original file line numberDiff line numberDiff line change
@@ -3768,6 +3768,15 @@ struct ImFontGlyph
37683768
int PackId; // [Internal] ImFontAtlasRectId value (FIXME: Cold data, could be moved elsewhere?)
37693769

37703770
ImFontGlyph() { memset(this, 0, sizeof(*this)); PackId = -1; }
3771+
3772+
#ifdef IMGUI_BUNDLE_PYTHON_API
3773+
3774+
// [ADAPT_IMGUI_BUNDLE]
3775+
bool isColored() const { return Colored != 0; }
3776+
bool isVisible() const { return Visible != 0; }
3777+
unsigned int getCodepoint() const { return Codepoint; }
3778+
// [/ADAPT_IMGUI_BUNDLE]
3779+
#endif // IMGUI_BUNDLE_PYTHON_API
37713780
};
37723781

37733782
// Helper to build glyph ranges from text/string data. Feed your application strings/characters to it then call BuildRanges().

0 commit comments

Comments
 (0)