]> Dogcows Code - chaz/openbox/blob - otk/truerendercontrol.hh
add a keyboard plugin
[chaz/openbox] / otk / truerendercontrol.hh
1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
2 #ifndef __truerendercontrol_hh
3 #define __truerendercontrol_hh
4
5 #include "rendercontrol.hh"
6
7 #include <vector>
8
9 namespace otk {
10
11 class TrueRenderControl : public RenderControl {
12 private:
13 // the number of bits to shift a color value (from 0-255) to the right, to
14 // fit it into the the color mask (do this before the offset)
15 int _red_shift;
16 int _green_shift;
17 int _blue_shift;
18
19 // the offset of each color in a color mask
20 int _red_offset;
21 int _green_offset;
22 int _blue_offset;
23
24 virtual void reduceDepth(Surface &sf, XImage *im) const;
25
26 public:
27 TrueRenderControl(int screen);
28 virtual ~TrueRenderControl();
29
30 virtual void allocateColor(XColor *color) const;
31 };
32
33 }
34
35 #endif // __truerendercontrol_hh
This page took 0.032989 seconds and 4 git commands to generate.