diff options
author | Vincent Sanders <vince@kyllikki.org> | 2024-02-25 10:00:31 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2024-02-25 10:00:56 +0000 |
commit | edcece91624e87427709f96bf923fd5bc54636e4 (patch) | |
tree | 8d4bbe55d96d65bee1ed4dc8f9de9eb20e207ad0 /frontends/qt/layout.h | |
parent | bfb8ef933a42053c53d0f368eb4baa93903afbfb (diff) | |
download | netsurf-edcece91624e87427709f96bf923fd5bc54636e4.tar.gz netsurf-edcece91624e87427709f96bf923fd5bc54636e4.tar.bz2 |
call text ploting in layoutvince/qt6
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 |