… | |
… | |
34 | |
34 | |
35 | template<class T> |
35 | template<class T> |
36 | struct refcache : vector<T *> { |
36 | struct refcache : vector<T *> { |
37 | T *get (const char *id); |
37 | T *get (const char *id); |
38 | void put (T *obj); |
38 | void put (T *obj); |
|
|
39 | void clear (); |
|
|
40 | |
39 | ~refcache (); |
41 | ~refcache () |
|
|
42 | { |
|
|
43 | clear (); |
|
|
44 | } |
40 | }; |
45 | }; |
41 | |
46 | |
42 | ///////////////////////////////////////////////////////////////////////////// |
47 | ///////////////////////////////////////////////////////////////////////////// |
43 | |
48 | |
44 | #ifdef USE_XIM |
49 | #ifdef USE_XIM |
… | |
… | |
69 | void im_change_cb (); |
74 | void im_change_cb (); |
70 | void im_change_check (); |
75 | void im_change_check (); |
71 | #endif |
76 | #endif |
72 | |
77 | |
73 | //public |
78 | //public |
74 | Display *display; |
79 | Display *display; |
75 | int depth; |
80 | int depth; |
76 | int screen; |
81 | int screen; |
77 | Visual *visual; |
82 | Visual *visual; |
78 | Colormap cmap; |
83 | Colormap cmap; |
79 | Window root; |
84 | Window root; |
80 | rxvt_term *selection_owner; |
85 | rxvt_term *selection_owner; |
81 | #ifndef NO_SLOW_LINK_SUPPORT |
86 | #ifndef NO_SLOW_LINK_SUPPORT |
82 | bool is_local; |
87 | bool is_local; |
|
|
88 | #endif |
|
|
89 | #ifdef POINTER_BLANK |
|
|
90 | Cursor blank_cursor; |
83 | #endif |
91 | #endif |
84 | |
92 | |
85 | rxvt_display (const char *id); |
93 | rxvt_display (const char *id); |
86 | bool init (); |
94 | bool init (); |
87 | ~rxvt_display (); |
95 | ~rxvt_display (); |
88 | |
96 | |
89 | operator Display *() const { return display; } |
97 | operator Display *() const { return display; } |
90 | |
98 | |
91 | void flush (); |
99 | void flush (); |
92 | |
100 | Atom atom (const char *name); |
93 | void set_selection_owner (rxvt_term *owner); |
101 | void set_selection_owner (rxvt_term *owner); |
94 | |
102 | |
95 | void reg (xevent_watcher *w); |
103 | void reg (xevent_watcher *w); |
96 | void unreg (xevent_watcher *w); |
104 | void unreg (xevent_watcher *w); |
97 | |
105 | |
… | |
… | |
100 | void unreg (im_watcher *w); |
108 | void unreg (im_watcher *w); |
101 | |
109 | |
102 | rxvt_xim *get_xim (const char *locale, const char *modifiers); |
110 | rxvt_xim *get_xim (const char *locale, const char *modifiers); |
103 | void put_xim (rxvt_xim *xim); |
111 | void put_xim (rxvt_xim *xim); |
104 | #endif |
112 | #endif |
105 | |
|
|
106 | Atom atom (const char *name); |
|
|
107 | }; |
113 | }; |
108 | |
114 | |
109 | #ifdef USE_XIM |
115 | #ifdef USE_XIM |
110 | struct im_watcher : watcher, callback0<void> { |
116 | struct im_watcher : watcher, callback0<void> { |
111 | template<class O1, class O2> |
117 | template<class O1, class O2> |