hexagram/include/hexagram/window.h

25 lines
849 B
C

#ifndef _HEXAGRAM_WINDOW_H
#define _HEXAGRAM_WINDOW_H
#include <X11/Xlib.h>
#define HEXAGRAM_WINDOW_EVENT_MASK (ButtonMotionMask | ButtonPressMask | \
ButtonReleaseMask | ExposureMask | \
StructureNotifyMask)
#define HEXAGRAM_WINDOW_GC_FLAGS (GCForeground | GCBackground | \
GCGraphicsExposures)
typedef struct _hexagram_window hexagram_window;
hexagram_window *hexagram_window_new_x11(const char *display,
unsigned int width,
unsigned int height);
int hexagram_window_get_display_fd(hexagram_window *window);
int hexagram_window_show(hexagram_window *window);
void hexagram_window_destroy(hexagram_window *window);
#endif /* _HEXAGRAM_WINDOW_H */