added overdrawDC for drawing selection

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@107 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2006-12-10 18:28:26 +00:00
parent 95a5c2f42b
commit 2f1b2756ee
5 changed files with 76 additions and 32 deletions
+8 -1
View File
@@ -19,6 +19,10 @@ class CardViewer : public wxControl, public DataViewer {
public:
CardViewer(Window* parent, int id, long style = 0);
/// Get a dc to draw on the card outside onPaint
/** May NOT be called while in onPaint/draw */
shared_ptr<DC> overdrawDC();
protected:
/// Return the desired size of control
virtual wxSize DoGetBestSize() const;
@@ -30,7 +34,10 @@ class CardViewer : public wxControl, public DataViewer {
void onPaint(wxPaintEvent&);
Bitmap buffer; /// < Off-screen buffer we draw to
Bitmap buffer; ///< Off-screen buffer we draw to
bool up_to_date; ///< Is the buffer up to date?
class OverdrawDC;
};
// ----------------------------------------------------------------------------- : EOF