]> Dogcows Code - chaz/openbox/blobdiff - otk/rendercontrol.hh
add a struct for pixmap masks
[chaz/openbox] / otk / rendercontrol.hh
index 5e21da291f0cc3528428d0eec0184e366d27aad2..9e140db07d462ca956521765c5417b2a84917bc7 100644 (file)
@@ -28,6 +28,7 @@ protected:
 
   inline void highlight(pixel32 *x, pixel32 *y, bool raised) const;
   void verticalGradient(Surface &sf, const RenderTexture &texture) const;
+  void horizontalGradient(Surface &sf, const RenderTexture &texture) const;
   void diagonalGradient(Surface &sf, const RenderTexture &texture) const;
   void crossDiagonalGradient(Surface &sf, const RenderTexture &texture) const;
   virtual void drawGradientBackground(Surface &sf,
@@ -46,7 +47,7 @@ protected:
 public:
   virtual ~RenderControl();
 
-  static RenderControl *getRenderControl(int screen);
+  static RenderControl *createRenderControl(int screen);
 
   //! Draws a background onto a Surface, as specified by a RenderTexture
   /*!
@@ -64,6 +65,9 @@ public:
   virtual void drawImage(Surface &sf, int w, int h,
                          unsigned long *data) const;
   
+  //! Draws an image onto the surface
+  virtual void drawImage(Surface &sf, Pixmap pixmap, Pixmap mask) const;
+
   //! Draws a string onto a Surface
   virtual void drawString(Surface &sf, const Font &font, int x, int y,
                          const RenderColor &color,
This page took 0.024286 seconds and 4 git commands to generate.