blob: b25f9618e4ea4a13faf75feb5ce2cd7e88a6827f [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001/******************************************************************************
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
25typedef void * TEXTBOX;
26
27#ifdef __cplusplus
28 extern "C" {
29#endif
30TEXTBOX *TextBoxInit (void *dfb, int height, int width, const char *font_path);
31void TextBoxDeinit (TEXTBOX *pt);
32void TextBoxSetup(TEXTBOX *pt, const char *text, int x, int y, TEXTALIGN align, unsigned int color);
33void TextBoxSetText (TEXTBOX *pt, const char *text);
34char *TextBoxGetText(TEXTBOX *pt);
35void TextBoxDraw (TEXTBOX *pt);
36void TextBoxSetColor (TEXTBOX *pt, unsigned int color);
37int TextBoxGetWidth (TEXTBOX *pt);
38#ifdef USE_UGUI
39int TextBoxGetHeight (TEXTBOX *pt);
40#endif
41
42#ifdef __cplusplus
43 }
44#endif
45
46#endif //__TEXTBOX_H__
47