13.12.2012 Views

emWin - SEGGER Microcontroller

emWin - SEGGER Microcontroller

emWin - SEGGER Microcontroller

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

702 CHAPTER Window Objects (Widgets)<br />

TEXT_CreateUser()<br />

Prototype explained at the beginning of the chapter as _CreateUser(). For<br />

a detailed description of the parameters the function TEXT_CreateEx() can be<br />

referred to.<br />

TEXT_GetDefaultFont()<br />

Description<br />

Returns the default font used for text widgets.<br />

Prototype<br />

const GUI_FONT* TEXT_GetDefaultFont(void);<br />

Return value<br />

Pointer to the default font used for text widgets.<br />

TEXT_GetNumLines()<br />

Description<br />

Returns the number of lines currently displayed in the widget.<br />

Prototype<br />

int TEXT_GetNumLines(TEXT_Handle hObj);<br />

Parameter Explanation<br />

hObj Handle of the widget.<br />

Return value<br />

Number of lines.<br />

TEXT_GetText()<br />

Description<br />

Copies the text of the given TEXT widget to the given buffer. The 0-Byte at the end of<br />

the string is written in any case.<br />

Prototype<br />

int TEXT_GetText(TEXT_Handle hObj, char * pDest, U32 BufferSize);<br />

Parameter Explanation<br />

hObj Handle of the widget.<br />

pDest Pointer to a user defined buffer.<br />

BufferSize Size of the buffer.<br />

Return value<br />

Number of bytes copied.<br />

TEXT_GetUserData()<br />

Prototype explained at the beginning of the chapter as _GetUserData().<br />

TEXT_SetBkColor()<br />

Description<br />

Sets the background color of the text widget.<br />

UM03001 User & Reference Guide for <strong>emWin</strong> V5.18 © 1997 - 2012 <strong>SEGGER</strong> <strong>Microcontroller</strong> GmbH & Co. KG

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!