diff options
Diffstat (limited to 'dw/layout.hh')
-rw-r--r-- | dw/layout.hh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/dw/layout.hh b/dw/layout.hh index d08eb363..4b80456b 100644 --- a/dw/layout.hh +++ b/dw/layout.hh @@ -290,6 +290,11 @@ public: void scrollPosChanged (View *view, int x, int y); void viewportSizeChanged (View *view, int width, int height); + inline Platform *getPlatform () + { + return platform; + } + /* delegated */ inline int textWidth (style::Font *font, const char *text, int len) @@ -297,6 +302,16 @@ public: return platform->textWidth (font, text, len); } + inline char *textToUpper (const char *text, int len) + { + return platform->textToUpper (text, len); + } + + inline char *textToLower (const char *text, int len) + { + return platform->textToLower (text, len); + } + inline int nextGlyph (const char *text, int idx) { return platform->nextGlyph (text, idx); |