noirchat/x11/x11_assets.h

53 lines
702 B
C

#ifndef X11_ASSETS_H
#define X11_ASSETS_H
#define INPUT_BUTTON 1
#define INPUT_TEXT 2
#define STATE_INACTIVE 0
#define STATE_ACTIVE 1
int button_count;
typedef struct {
int x;
int y;
int width;
int height;
int state;
int length;
char *string;
struct Button *next;
struct Button *previous;
void(*callback)();
} Button;
typedef struct {
int type;
int x;
int y;
int width;
int height;
int state;
int size;
int position;
void *data;
struct Input *next;
struct Input *previous;
void(*callback)();
} Input;
int input_count;
Input *last_input;
Input *inputs[128];
Input *active_input;
Button *last_button;
Button *buttons[128];
int active_count;
Input *active_list[15];
#endif