- /// Draw the control on the given graphics
- virtual void draw( OSGraphics &rImage, int xDest, int yDest );
+ /// Draw the control on the given graphics
+ virtual void draw( OSGraphics &rImage, int xDest, int yDest );
+
+ /// Get the type of control (custom RTTI)
+ virtual string getType() const { return "image"; }
+
+private:
+ /// Bitmap
+ GenericBitmap* m_pBitmap;
+ /// original Bitmap
+ GenericBitmap* m_pOriginalBitmap;
+ /// Buffer to stored the rendered bitmap
+ OSGraphics *m_pImage;
+ /// Command triggered by a double-click on the image
+ CmdGeneric &m_rCommand;
+ /// Resize method
+ resize_t m_resizeMethod;
+ /// does the image get updated as art
+ bool m_art;
+
+ /// Method called when the observed variable is modified
+ virtual void onUpdate( Subject<VarString> &rVariable, void* );