#ifndef GRAPHICS_H
#define GRAPHICS_H
#include "../ui/graphics.h"
#include "toolkit.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct UiXlibGraphics {
UiGraphics g;
Display *display;
Widget widget;
Colormap colormap;
GC gc;
} UiXlibGraphics;
typedef struct UiDrawEvent {
ui_drawfunc callback;
UiObject *obj;
void *userdata;
UiXlibGraphics gr;
} UiDrawEvent;
typedef struct UiMouseEventData {
UiObject *obj;
ui_callback callback;
void *userdata;
Time last_event;
} UiMouseEventData;
struct UiTextLayout {
char *text;
size_t length;
Widget widget;
XFontSet fontset;
int maxwidth;
int width;
int height;
int changed;
};
#ifdef __cplusplus
}
#endif
#endif