b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | /******************************************************************************
|
| 2 | *(C) Copyright 2014 Marvell International Ltd.
|
| 3 | * All Rights Reserved
|
| 4 | ******************************************************************************/
|
| 5 | /*******************************************************************************
|
| 6 | *
|
| 7 | * Filename: TextBox.h
|
| 8 | *
|
| 9 | * Authors: Boaz Sommer
|
| 10 | *
|
| 11 | * Description: A Text Box class
|
| 12 | *
|
| 13 | * HISTORY:
|
| 14 | *
|
| 15 | *
|
| 16 | *
|
| 17 | * Notes:
|
| 18 | *
|
| 19 | ******************************************************************************/
|
| 20 | #ifndef __TEXTBOX_H__
|
| 21 | #define __TEXTBOX_H__
|
| 22 |
|
| 23 | #include "Object.h"
|
| 24 |
|
| 25 | typedef void * TEXTBOX;
|
| 26 |
|
| 27 | #ifdef __cplusplus
|
| 28 | extern "C" {
|
| 29 | #endif
|
| 30 | TEXTBOX *TextBoxInit (void *dfb, int height, int width, const char *font_path);
|
| 31 | void TextBoxDeinit (TEXTBOX *pt);
|
| 32 | void TextBoxSetup(TEXTBOX *pt, const char *text, int x, int y, TEXTALIGN align, unsigned int color);
|
| 33 | void TextBoxSetText (TEXTBOX *pt, const char *text);
|
| 34 | char *TextBoxGetText(TEXTBOX *pt);
|
| 35 | void TextBoxDraw (TEXTBOX *pt);
|
| 36 | void TextBoxSetColor (TEXTBOX *pt, unsigned int color);
|
| 37 | int TextBoxGetWidth (TEXTBOX *pt);
|
| 38 | #ifdef USE_UGUI
|
| 39 | int TextBoxGetHeight (TEXTBOX *pt);
|
| 40 | #endif
|
| 41 |
|
| 42 | #ifdef __cplusplus
|
| 43 | }
|
| 44 | #endif
|
| 45 |
|
| 46 | #endif //__TEXTBOX_H__
|
| 47 |
|