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

Comparing rxvt-unicode/src/rxvttoolkit.h (file contents):
Revision 1.63 by root, Wed Jun 6 20:22:04 2012 UTC vs.
Revision 1.67 by root, Thu Jun 14 17:16:05 2012 UTC

212 212
213 rxvt_screen (); 213 rxvt_screen ();
214#endif 214#endif
215 215
216 void set (rxvt_display *disp); 216 void set (rxvt_display *disp);
217 void select_visual (int bitdepth); 217 void select_visual (int id);
218 void select_depth (int bitdepth); // select visual by depth
218 void clear (); 219 void clear ();
219}; 220};
220 221
221enum { 222enum
223{
222 DISPLAY_HAS_RENDER = 1 << 0, 224 DISPLAY_HAS_RENDER = 1 << 0,
223 DISPLAY_HAS_RENDER_10 = 1 << 1,
224 DISPLAY_HAS_RENDER_MUL = 1 << 2,
225 DISPLAY_HAS_RENDER_CONV = 1 << 3, 225 DISPLAY_HAS_RENDER_CONV = 1 << 1,
226}; 226};
227 227
228struct rxvt_display : refcounted 228struct rxvt_display : refcounted
229{ 229{
230 event_vec<xevent_watcher> xw; 230 event_vec<xevent_watcher> xw;
317 317
318typedef unsigned long Pixel; 318typedef unsigned long Pixel;
319 319
320struct rgba 320struct rgba
321{ 321{
322 unsigned short r, g, b, a; 322 uint16_t r, g, b, a;
323 323
324 enum { MIN_CC = 0x0000, MAX_CC = 0xffff }; 324 enum { MIN_CC = 0x0000, MAX_CC = 0xffff };
325 325
326 rgba () 326 rgba ()
327 { } 327 { }
328 328
329 rgba (unsigned short r, unsigned short g, unsigned short b, unsigned short a = MAX_CC) 329 rgba (uint16_t r, uint16_t g, uint16_t b, uint16_t a = MAX_CC)
330 : r(r), g(g), b(b), a(a) 330 : r(r), g(g), b(b), a(a)
331 { } 331 { }
332}; 332};
333 333
334struct rxvt_color 334struct rxvt_color
354 } 354 }
355 355
356 bool alloc (rxvt_screen *screen, const rgba &color); 356 bool alloc (rxvt_screen *screen, const rgba &color);
357 void free (rxvt_screen *screen); 357 void free (rxvt_screen *screen);
358 358
359 operator rgba () const
360 {
361 rgba c;
362 get (c);
363 return c;
364 }
359 void get (rgba &color) const; 365 void get (rgba &color) const;
360 void get (XColor &color) const; 366 void get (XColor &color) const;
361 367
362 bool set (rxvt_screen *screen, const char *name); 368 bool set (rxvt_screen *screen, const char *name);
363 bool set (rxvt_screen *screen, const rgba &color); 369 bool set (rxvt_screen *screen, const rgba &color);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines