Skip to content

Commit fc66567

Browse files
committed
[Bundle] ImFontGlyph: publish CodePoint, Colored, Visible via getters
1 parent 4823cc1 commit fc66567

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
@@ -3746,6 +3746,15 @@ struct ImFontGlyph
37463746
int PackId; // [Internal] ImFontAtlasRectId value (FIXME: Cold data, could be moved elsewhere?)
37473747

37483748
ImFontGlyph() { memset(this, 0, sizeof(*this)); PackId = -1; }
3749+
3750+
#ifdef IMGUI_BUNDLE_PYTHON_API
3751+
3752+
// [ADAPT_IMGUI_BUNDLE]
3753+
bool isColored() const { return Colored != 0; }
3754+
bool isVisible() const { return Visible != 0; }
3755+
unsigned int getCodepoint() const { return Codepoint; }
3756+
// [/ADAPT_IMGUI_BUNDLE]
3757+
#endif // IMGUI_BUNDLE_PYTHON_API
37493758
};
37503759

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

0 commit comments

Comments
 (0)