mirror of
https://github.com/olikraus/u8g2.git
synced 2026-09-11 09:12:33 +00:00
fixed #2797
This commit is contained in:
@@ -368,4 +368,5 @@ https://github.com/olikraus/u8g2 ChangeLog
|
||||
* SBN1661 80x32 (issue 2776)
|
||||
* UC1698 240x64 (issue 2777)
|
||||
* Bugfix: Error with MUI include (C++ and missing U8g2 include) (issue 2730)
|
||||
|
||||
* Fix flipmode for SSD1362z 256x64 (PR 2786)
|
||||
* Added isGlyph() to the C++ API (issue 2797)
|
||||
+8
-4
@@ -284,10 +284,10 @@ class U8G2
|
||||
|
||||
|
||||
/*
|
||||
uint8_t u8g2_IsGlyph(u8g2_t *u8g2, uint16_t requested_encoding);
|
||||
int8_t u8g2_GetGlyphWidth(u8g2_t *u8g2, uint16_t requested_encoding);
|
||||
u8g2_uint_t u8g2_GetStrWidth(u8g2_t *u8g2, const char *s);
|
||||
u8g2_uint_t u8g2_GetUTF8Width(u8g2_t *u8g2, const char *str);
|
||||
uint8_t u8g2_IsGlyph(u8g2_t *u8g2, uint16_t requested_encoding); --> Added
|
||||
int8_t u8g2_GetGlyphWidth(u8g2_t *u8g2, uint16_t requested_encoding); --> Added
|
||||
u8g2_uint_t u8g2_GetStrWidth(u8g2_t *u8g2, const char *s); --> Already added
|
||||
u8g2_uint_t u8g2_GetUTF8Width(u8g2_t *u8g2, const char *str); --> Already added
|
||||
*/
|
||||
|
||||
u8g2_uint_t drawGlyph(u8g2_uint_t x, u8g2_uint_t y, uint16_t encoding) { return u8g2_DrawGlyph(&u8g2, x, y, encoding); }
|
||||
@@ -303,6 +303,10 @@ u8g2_uint_t u8g2_GetUTF8Width(u8g2_t *u8g2, const char *str);
|
||||
u8g2_uint_t getStrWidth(const char *s) { return u8g2_GetStrWidth(&u8g2, s); }
|
||||
u8g2_uint_t getUTF8Width(const char *s) { return u8g2_GetUTF8Width(&u8g2, s); }
|
||||
|
||||
uint8_t isGlyph(uint16_t encoding) { return u8g2_IsGlyph(&u8g2, encoding); }
|
||||
int8_t getGlyphWidth(uint16_t encoding) { return u8g2_GetGlyphWidth(&u8g2, encoding); }
|
||||
|
||||
|
||||
int8_t getXOffsetGlyph(uint16_t encoding) { return u8g2_GetXOffsetGlyph(&u8g2, encoding); }
|
||||
int8_t getXOffsetUTF8(const char *utf8) { return u8g2_GetXOffsetUTF8(&u8g2, utf8); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user