]> git.sesse.net Git - vlc/blobdiff - modules/gui/skins2/controls/ctrl_image.hpp
skins2: improve refresh of layouts
[vlc] / modules / gui / skins2 / controls / ctrl_image.hpp
index eef74985805e62461d177d52bba11f600ae82714..f1d18f17ae10070fa41cc717048ea565a896f22c 100644 (file)
@@ -60,7 +60,7 @@ public:
     virtual bool mouseOver( int x, int y ) const;
 
     /// Draw the control on the given graphics
-    virtual void draw( OSGraphics &rImage, int xDest, int yDest );
+    virtual void draw( OSGraphics &rImage, int xDest, int yDest, int w, int h );
 
     /// Get the type of control (custom RTTI)
     virtual string getType() const { return "image"; }
@@ -78,6 +78,9 @@ private:
     resize_t m_resizeMethod;
     /// does the image get updated as art
     bool m_art;
+    /// offset for image inside the control
+    int m_x;
+    int m_y;
 
     /// Method called when the observed variable is modified
     virtual void onUpdate( Subject<VarString> &rVariable, void* );