diff options
Diffstat (limited to 'frontends/qt/layout.h')
-rw-r--r-- | frontends/qt/layout.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/frontends/qt/layout.h b/frontends/qt/layout.h index 62173d69a..effae7f18 100644 --- a/frontends/qt/layout.h +++ b/frontends/qt/layout.h @@ -24,4 +24,18 @@ */ extern struct gui_layout_table *nsqt_layout_table; + +/** + * Text plotting. + * + * \param painter The QT painter to use + * \param fstyle plot style for this text + * \param x x coordinate + * \param y y coordinate + * \param text UTF-8 string to plot + * \param length length of string, in bytes + * \return NSERROR_OK on success else error code. + */ +nserror nsqt_layout_plot(QPainter* painter, const struct plot_font_style *fstyle, int x, int y, const char *text, size_t length); + #endif |