]> Dogcows Code - chaz/openbox/blobdiff - otk/pseudorendercontrol.hh
offsets in planar surfaces
[chaz/openbox] / otk / pseudorendercontrol.hh
index 6d3255ee4c28439e92e1293bc60f4fd4bcfadad4..b6d60371a1382578124f8ba5de15648e84abbfe2 100644 (file)
@@ -4,33 +4,23 @@
 
 #include "rendercontrol.hh"
 
-extern "C" {
-
-#ifdef HAVE_STDINT_H
-#  include <stdint.h>
-#else
-#  ifdef HAVE_SYS_TYPES_H
-#    include <sys/types.h>
-#  endif
-#endif
-
-}
-
-#include <vector>
-
 namespace otk {
 
 class PseudoRenderControl : public RenderControl {
 private:
-
-  virtual void drawGradientBackground(Surface &sf,
-                                      const RenderTexture &texture) const;
+  int _bpc;        // number of bits per color
+  int _ncolors;    // number of allocated colors, size of the XColor array
+  XColor *_colors; // the valid allocated colors
+  
+  virtual void reduceDepth(Surface &sf, XImage *im) const;
+
+  const XColor *pickColor(int r, int g, int b) const;
+  
 public:
   PseudoRenderControl(int screen);
   virtual ~PseudoRenderControl();
 
-  virtual void drawBackground(Surface& sf, const RenderTexture &texture) const;
+  virtual void allocateColor(XColor *color) const;
 };
 
 }
This page took 0.021477 seconds and 4 git commands to generate.