… | |
… | |
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; |
… | |
… | |
83 | |
94 | |
84 | void set_selection_owner (rxvt_term *owner); |
95 | void set_selection_owner (rxvt_term *owner); |
85 | |
96 | |
86 | rxvt_xim *get_xim (const char *locale, const char *modifiers); |
97 | rxvt_xim *get_xim (const char *locale, const char *modifiers); |
87 | void put_xim (rxvt_xim *xim); |
98 | void put_xim (rxvt_xim *xim); |
|
|
99 | |
|
|
100 | Atom atom (const char *name); |
88 | }; |
101 | }; |
89 | |
102 | |
90 | struct im_watcher : watcher, callback0<void> { |
103 | struct im_watcher : watcher, callback0<void> { |
91 | template<class O1, class O2> |
104 | template<class O1, class O2> |
92 | im_watcher (O1 *object, void (O2::*method) ()) |
105 | im_watcher (O1 *object, void (O2::*method) ()) |