blob: 46ed90053cd85dd1847b35a13d5b8de134c70551 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#ifndef _RUNES_WINDOW_XLIB_H
#define _RUNES_WINDOW_XLIB_H
#include <cairo.h>
#include <time.h>
#include <X11/Xlib.h>
struct runes_window {
RunesWindowBackend *wb;
Window w;
Window border_w;
XIC ic;
struct timespec last_redraw;
cairo_t *backend_cr;
unsigned int multi_clicks;
void *multi_click_timer_event;
unsigned int owns_selection: 1;
unsigned int visual_bell_is_ringing: 1;
unsigned int delaying: 1;
};
RunesWindow *runes_window_new(RunesWindowBackend *wb);
void runes_window_create_window(RunesTerm *t, int argc, char *argv[]);
void runes_window_init_loop(RunesTerm *t, RunesLoop *loop);
void runes_window_flush(RunesTerm *t);
void runes_window_request_close(RunesTerm *t);
unsigned long runes_window_get_window_id(RunesTerm *t);
void runes_window_get_size(RunesTerm *t, int *xpixel, int *ypixel);
void runes_window_set_icon_name(RunesTerm *t, char *name, size_t len);
void runes_window_set_window_title(RunesTerm *t, char *name, size_t len);
void runes_window_delete(RunesWindow *w);
#endif
|