diff options
Diffstat (limited to 'desktop/textarea.h')
-rw-r--r-- | desktop/textarea.h | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/desktop/textarea.h b/desktop/textarea.h index 898609730..82e0de95b 100644 --- a/desktop/textarea.h +++ b/desktop/textarea.h @@ -213,6 +213,16 @@ int textarea_get_text(struct textarea *ta, char *buf, unsigned int len); /** + * Access text data in a text area + * + * \param[in] ta Text area + * \param[out] len Returns byte length of returned text, if passed non-NULL. + * \return textarea string data. + */ +const char * textarea_data(struct textarea *ta, unsigned int *len); + + +/** * Set the caret's position * * \param ta Text area @@ -319,8 +329,12 @@ void textarea_set_dimensions(struct textarea *ta, int width, int height); * \param bottom the new bottom padding of the textarea * \param left the new left padding of the textarea */ -void textarea_set_layout(struct textarea *ta, int width, int height, - int top, int right, int bottom, int left); +void textarea_set_layout( + struct textarea *ta, + const plot_font_style_t *fstyle, + int width, int height, + int top, int right, + int bottom, int left); /** |