2013-07-31 20:20:16 +02:00
|
|
|
/*
|
|
|
|
* Toxic -- Tox Curses Client
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
2013-07-30 01:32:39 +02:00
|
|
|
typedef struct ToxWindow_ ToxWindow;
|
|
|
|
|
|
|
|
struct ToxWindow_ {
|
|
|
|
void(*onKey)(ToxWindow*, int);
|
|
|
|
void(*onDraw)(ToxWindow*);
|
|
|
|
void(*onInit)(ToxWindow*);
|
2013-07-31 19:20:03 +02:00
|
|
|
void(*onFriendRequest)(ToxWindow*, uint8_t*, uint8_t*, uint16_t);
|
|
|
|
void(*onMessage)(ToxWindow*, int, uint8_t*, uint16_t);
|
|
|
|
void(*onNickChange)(ToxWindow*, int, uint8_t*, uint16_t);
|
|
|
|
void(*onStatusChange)(ToxWindow*, int, uint8_t*, uint16_t);
|
2013-07-30 01:32:39 +02:00
|
|
|
char title[256];
|
|
|
|
|
2013-07-31 19:20:03 +02:00
|
|
|
void* x;
|
2013-07-31 20:20:16 +02:00
|
|
|
bool blink;
|
2013-07-31 19:20:03 +02:00
|
|
|
|
2013-07-30 01:32:39 +02:00
|
|
|
WINDOW* window;
|
|
|
|
};
|