-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtextbox.h
More file actions
21 lines (20 loc) · 908 Bytes
/
Copy pathtextbox.h
File metadata and controls
21 lines (20 loc) · 908 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef _TEXTBOX_H_
#define _TEXTBOX_H_
#include "widget.h"
typedef struct wwTextbox wwTextbox;
typedef void (*wwTextboxCallback)(wwTextbox *textBox, wwWindowAndRenderer*windowAndRenderer);
struct wwTextbox
{
wwWidget widget;
};
wwTextbox* wwTextbox_Create(wwWindowAndRenderer *windowAndRenderer, wchar_t *name, int x, int y, int width, int height);
void wwTextbox_SetCallback(wwTextbox *textBox, wwTextboxCallback callback, void *userData);
void wwTextbox_SetText(wwTextbox *textBox, wchar_t *text);
void wwTextbox_SetX(wwTextbox *textBox, int x);
void wwTextbox_SetY(wwTextbox *textBox, int y);
void wwTextbox_SetWidth(wwTextbox *textBox, int width);
void wwTextbox_SetHeight(wwTextbox *textBox, int height);
/* returns malloc() pointer, should free() after usage */
wchar_t* wwTextbox_GetText(wwTextbox *textBox);
//void wwTextbox_SetColor(wwTextbox *textBox, wwColor color);
#endif /* _TEXTBOX_H_ */