2017-01-20 12:25:21 -06:00
|
|
|
// 20 january 2017
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <string.h>
|
2017-05-17 20:41:08 -05:00
|
|
|
#include <stdlib.h>
|
2017-01-20 12:25:21 -06:00
|
|
|
#include "../../ui.h"
|
|
|
|
|
|
|
|
struct example {
|
|
|
|
const char *name;
|
|
|
|
uiControl *panel;
|
|
|
|
void (*draw)(uiAreaDrawParams *p);
|
2017-02-05 23:26:22 -06:00
|
|
|
void (*mouse)(uiAreaMouseEvent *e);
|
2017-02-10 18:22:25 -06:00
|
|
|
int (*key)(uiAreaKeyEvent *e);
|
2017-02-05 23:26:22 -06:00
|
|
|
// TODO key?
|
2017-01-20 12:25:21 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
// main.c
|
|
|
|
extern void redraw(void);
|
|
|
|
|
|
|
|
// basic.c
|
|
|
|
extern struct example *mkBasicExample(void);
|
2017-01-20 19:38:18 -06:00
|
|
|
|
|
|
|
// hittest.c
|
|
|
|
extern struct example *mkHitTestExample(void);
|
2017-02-11 22:19:30 -06:00
|
|
|
|
|
|
|
// attributes.c
|
|
|
|
extern struct example *mkAttributesExample(void);
|
2017-02-24 17:54:35 -06:00
|
|
|
|
|
|
|
// emptystr_hittest.c
|
|
|
|
extern struct example *mkEmptyStringExample(void);
|