… | |
… | |
11 | |
11 | |
12 | #include "rxvtlib.h" |
12 | #include "rxvtlib.h" |
13 | #include "rxvtstl.h" |
13 | #include "rxvtstl.h" |
14 | |
14 | |
15 | #include "callback.h" |
15 | #include "callback.h" |
|
|
16 | |
|
|
17 | extern class byteorder { |
|
|
18 | uint32_t e; |
|
|
19 | public: |
|
|
20 | byteorder (); |
|
|
21 | |
|
|
22 | bool big_endian () { return e == 0x11223344; }; |
|
|
23 | bool network () { return e == 0x11223344; }; |
|
|
24 | bool little_endian () { return e == 0x44332211; }; |
|
|
25 | bool vax () { return e == 0x44332211; }; |
|
|
26 | } byteorder; |
16 | |
27 | |
17 | struct rxvt_term; |
28 | struct rxvt_term; |
18 | |
29 | |
19 | struct im_watcher; |
30 | struct im_watcher; |
20 | struct xevent_watcher; |
31 | struct xevent_watcher; |
… | |
… | |
50 | }; |
61 | }; |
51 | |
62 | |
52 | struct rxvt_display : refcounted { |
63 | struct rxvt_display : refcounted { |
53 | Atom xa_xim_servers; |
64 | Atom xa_xim_servers; |
54 | |
65 | |
55 | rxvt_term *selection_owner; |
|
|
56 | |
|
|
57 | io_manager_vec<xevent_watcher> xw; |
66 | io_manager_vec<xevent_watcher> xw; |
58 | |
67 | |
59 | io_watcher x_ev; void x_cb (io_watcher &w, short revents); |
68 | io_watcher x_ev; void x_cb (io_watcher &w, short revents); |
60 | |
69 | |
61 | refcache<rxvt_xim> xims; |
70 | refcache<rxvt_xim> xims; |
… | |
… | |
68 | int depth; |
77 | int depth; |
69 | int screen; |
78 | int screen; |
70 | Visual *visual; |
79 | Visual *visual; |
71 | Colormap cmap; |
80 | Colormap cmap; |
72 | Window root; |
81 | Window root; |
|
|
82 | rxvt_term *selection_owner; |
73 | |
83 | |
74 | rxvt_display (const char *id); |
84 | rxvt_display (const char *id); |
75 | bool init (); |
85 | bool init (); |
76 | ~rxvt_display (); |
86 | ~rxvt_display (); |
77 | |
87 | |