- public:
- wxBitmap *m_Image;
- double m_Scale;
- wxHtmlImageMapCell *m_ImageMap;
- wxString m_MapName;
-
- wxHtmlImageCell(wxFSFile *input, int w = -1, int h = -1, double scale = 1.0, int align = wxHTML_ALIGN_BOTTOM, wxString mapname = wxEmptyString);
- ~wxHtmlImageCell() {if (m_Image) delete m_Image; }
- void Draw(wxDC& dc, int x, int y, int view_y1, int view_y2);
- virtual wxHtmlLinkInfo *GetLink( int x = 0, int y = 0 ) const;
+public:
+ wxHtmlImageCell(wxWindow *window,
+ wxFSFile *input, int w = wxDefaultCoord, int h = wxDefaultCoord,
+ double scale = 1.0, int align = wxHTML_ALIGN_BOTTOM,
+ const wxString& mapname = wxEmptyString);
+ ~wxHtmlImageCell();
+ void Draw(wxDC& dc, int x, int y, int view_y1, int view_y2,
+ wxHtmlRenderingInfo& info);
+ virtual wxHtmlLinkInfo *GetLink(int x = 0, int y = 0) const;
+
+ void SetImage(const wxImage& img);
+#if wxUSE_GIF && wxUSE_TIMER
+ void AdvanceAnimation(wxTimer *timer);
+ virtual void Layout(int w);
+#endif
+
+private:
+ wxBitmap *m_bitmap;
+ int m_bmpW, m_bmpH;
+ bool m_showFrame:1;
+ wxScrolledWindow *m_window;
+#if wxUSE_GIF && wxUSE_TIMER
+ wxGIFDecoder *m_gifDecoder;
+ wxTimer *m_gifTimer;
+ int m_physX, m_physY;
+#endif
+ double m_scale;
+ wxHtmlImageMapCell *m_imageMap;
+ wxString m_mapName;
+
+ DECLARE_NO_COPY_CLASS(wxHtmlImageCell)