Minor update to wxCanvas.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8246 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -33,10 +33,18 @@ class wxCanvasObject: public wxEvtHandler
|
||||
public:
|
||||
wxCanvasObject( int x, int y, int width, int height );
|
||||
|
||||
// These are for screen output only therefore use
|
||||
// int as coordinates.
|
||||
virtual void Move( int x, int y );
|
||||
virtual bool IsHit( int x, int y, int margin = 0 );
|
||||
|
||||
virtual void Render( int clip_x, int clip_y, int clip_width, int clip_height );
|
||||
|
||||
// Once we have world coordinates in doubles, this will get
|
||||
// called for every object if the world coordinate system
|
||||
// changes (zooming).
|
||||
virtual void Rerender();
|
||||
|
||||
// Later...
|
||||
virtual void WriteSVG( wxTextOutputStream &stream );
|
||||
|
||||
wxCanvas *GetOwner() { return m_owner; }
|
||||
@@ -188,6 +196,7 @@ public:
|
||||
|
||||
wxImage *GetBuffer() { return &m_buffer; }
|
||||
bool NeedUpdate() { return m_needUpdate; }
|
||||
bool IsFrozen() { return m_frozen; }
|
||||
|
||||
void BlitBuffer( wxDC &dc );
|
||||
|
||||
@@ -200,7 +209,6 @@ private:
|
||||
bool m_frozen;
|
||||
wxCanvasObject *m_lastMouse;
|
||||
|
||||
|
||||
friend class wxCanvasObject;
|
||||
|
||||
private:
|
||||
|
Reference in New Issue
Block a user