Listbox for Property tool property field

This commit is contained in:
Simon Robertshaw
2011-11-12 16:24:21 +00:00
parent b9f15e16cc
commit 2bd9d61ab5
2 changed files with 147 additions and 51 deletions

View File

@@ -114,6 +114,14 @@ struct ui_edit
};
typedef struct ui_edit ui_edit;
struct ui_list
{
int x, y, w, h;
char str[256],*def,**items;
int selected, focus, count;
};
typedef struct ui_list ui_list;
struct ui_copytext
{
int x, y, width, height;
@@ -234,6 +242,10 @@ void ui_edit_draw(pixel *vid_buf, ui_edit *ed);
void ui_edit_process(int mx, int my, int mb, ui_edit *ed);
void ui_list_draw(pixel *vid_buf, ui_list *ed);
void ui_list_process(pixel * vid_buf, int mx, int my, int mb, ui_list *ed);
void ui_checkbox_draw(pixel *vid_buf, ui_checkbox *ed);
void ui_checkbox_process(int mx, int my, int mb, int mbq, ui_checkbox *ed);