ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/rxvtcolor.h
(Generate patch)

Comparing rxvt-unicode/src/rxvtcolor.h (file contents):
Revision 1.10 by pcg, Mon Mar 29 21:02:11 2004 UTC vs.
Revision 1.13 by root, Fri Jul 30 14:59:12 2004 UTC

46 ~refcache (); 46 ~refcache ();
47}; 47};
48 48
49///////////////////////////////////////////////////////////////////////////// 49/////////////////////////////////////////////////////////////////////////////
50 50
51#ifdef USE_XIM
51struct rxvt_xim : refcounted { 52struct rxvt_xim : refcounted {
52 void destroy (); 53 void destroy ();
53 rxvt_display *display; 54 rxvt_display *display;
54 55
55//public 56//public
57 58
58 rxvt_xim (const char *id) : refcounted (id) { } 59 rxvt_xim (const char *id) : refcounted (id) { }
59 bool init (); 60 bool init ();
60 ~rxvt_xim (); 61 ~rxvt_xim ();
61}; 62};
63#endif
62 64
63struct rxvt_display : refcounted { 65struct rxvt_display : refcounted {
64 Atom xa_xim_servers; 66 Atom xa_xim_servers;
65 67
66 io_manager_vec<xevent_watcher> xw; 68 io_manager_vec<xevent_watcher> xw;
67 69
68 io_watcher x_ev; void x_cb (io_watcher &w, short revents); 70 io_watcher x_ev; void x_cb (io_watcher &w, short revents);
69 71
72#ifdef USE_XIM
70 refcache<rxvt_xim> xims; 73 refcache<rxvt_xim> xims;
71 vector<im_watcher *> imw; 74 vector<im_watcher *> imw;
72 75
73 void im_change_cb (); 76 void im_change_cb ();
77#endif
74 78
75//public 79//public
76 Display *display; 80 Display *display;
77 int depth; 81 int depth;
78 int screen; 82 int screen;
85 bool init (); 89 bool init ();
86 ~rxvt_display (); 90 ~rxvt_display ();
87 91
88 void flush (); 92 void flush ();
89 93
94 void set_selection_owner (rxvt_term *owner);
95
90 void reg (xevent_watcher *w); 96 void reg (xevent_watcher *w);
91 void unreg (xevent_watcher *w); 97 void unreg (xevent_watcher *w);
98
99#ifdef USE_XIM
92 void reg (im_watcher *w); 100 void reg (im_watcher *w);
93 void unreg (im_watcher *w); 101 void unreg (im_watcher *w);
94 102
95 void set_selection_owner (rxvt_term *owner);
96
97 rxvt_xim *get_xim (const char *locale, const char *modifiers); 103 rxvt_xim *get_xim (const char *locale, const char *modifiers);
98 void put_xim (rxvt_xim *xim); 104 void put_xim (rxvt_xim *xim);
105#endif
106
107 Atom atom (const char *name);
99}; 108};
100 109
110#ifdef USE_XIM
101struct im_watcher : watcher, callback0<void> { 111struct im_watcher : watcher, callback0<void> {
102 template<class O1, class O2> 112 template<class O1, class O2>
103 im_watcher (O1 *object, void (O2::*method) ()) 113 im_watcher (O1 *object, void (O2::*method) ())
104 : callback0<void> (object,method) 114 : callback0<void> (object,method)
105 { } 115 { }
111 void stop (rxvt_display *display) 121 void stop (rxvt_display *display)
112 { 122 {
113 display->unreg (this); 123 display->unreg (this);
114 } 124 }
115}; 125};
126#endif
116 127
117struct xevent_watcher : watcher, callback1<void, XEvent &> { 128struct xevent_watcher : watcher, callback1<void, XEvent &> {
118 Window window; 129 Window window;
119 130
120 template<class O1, class O2> 131 template<class O1, class O2>
155 166
156 bool set (rxvt_display *display, Pixel p); 167 bool set (rxvt_display *display, Pixel p);
157 bool set (rxvt_display *display, const char *name); 168 bool set (rxvt_display *display, const char *name);
158 bool set (rxvt_display *display, unsigned short cr, unsigned short cg, unsigned short cb); 169 bool set (rxvt_display *display, unsigned short cr, unsigned short cg, unsigned short cb);
159 170
171 rxvt_color fade (rxvt_display *, int percent);
172
160 void free (rxvt_display *display); 173 void free (rxvt_display *display);
161}; 174};
162 175
163#endif 176#endif
164 177

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines