… | |
… | |
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 (); |