diff options
author | inmarket <andrewh@inmarket.com.au> | 2015-08-16 21:53:47 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2015-08-16 21:53:47 +1000 |
commit | 15e7342fd7b21b76a565561a3caafee394e70c88 (patch) | |
tree | aeb6898cfdbcb875f4b109d202f2b4560df42021 /src/gwin/gwin_textedit.h | |
parent | 377fe644d1233e955dfd05e40fa9d335447de325 (diff) | |
download | uGFX-15e7342fd7b21b76a565561a3caafee394e70c88.tar.gz uGFX-15e7342fd7b21b76a565561a3caafee394e70c88.tar.bz2 uGFX-15e7342fd7b21b76a565561a3caafee394e70c88.zip |
Updates to focus.
Diffstat (limited to 'src/gwin/gwin_textedit.h')
-rw-r--r-- | src/gwin/gwin_textedit.h | 25 |
1 files changed, 7 insertions, 18 deletions
diff --git a/src/gwin/gwin_textedit.h b/src/gwin/gwin_textedit.h index 5b0cea85..f83233b4 100644 --- a/src/gwin/gwin_textedit.h +++ b/src/gwin/gwin_textedit.h @@ -33,7 +33,7 @@ typedef struct GTexteditObject { GWidgetObject w; char* textBuffer; - size_t bufferSize; + size_t maxSize; uint16_t cursorPos; } GTexteditObject; @@ -48,28 +48,17 @@ extern "C" { * is abstracted through the GINPUT module. * * @param[in] g The GDisplay on which the textedit should be displayed - * @param[in] widget The TextEdit structure to initialise. If this is NULL, the structure is dynamically allocated. + * @param[in] wt The TextEdit structure to initialise. If this is NULL, the structure is dynamically allocated. * @param[in] pInit The initialisation parameters to use. - * @param[in] bufSize The maximum number of characters the TextEdit widget can hold. + * @param[in] maxSize The maximum number of characters the TextEdit widget can hold. * - * @return NULL if there is no resultat drawing area, otherwise the widget handle. + * @return NULL if there is no resultant drawing area, otherwise the widget handle. * + * @note If the initial text set is larger than maxSize then the text is truncated at maxSize characters. * @api */ -GHandle gwinGTexteditCreate(GDisplay* g, GTexteditObject* widget, GWidgetInit* pInit, size_t bufSize); -#define gwinTexteditCreate(w, pInit, bufSize) gwinGTexteditCreate(GDISP, w, pInit, bufSize) - -/** - * @brief Border settings for the default rendering routine - * - * @note Border is enabled by default. - * - * @param[in] gh The widget handle (must be a TextEdit handle) - * @param[in] border Shall a border be rendered? - * - * @api - */ -void gwinTexteditSetBorder(GHandle gh, bool_t border); +GHandle gwinGTexteditCreate(GDisplay* g, GTexteditObject* wt, GWidgetInit* pInit, size_t maxSize); +#define gwinTexteditCreate(wt, pInit, maxSize) gwinGTexteditCreate(GDISP, wt, pInit, maxSize) #ifdef __cplusplus } |