redrawing of editors (for drop down lists)

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@155 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2006-12-23 13:26:53 +00:00
parent 2233295cfd
commit dcdd000aef
8 changed files with 39 additions and 12 deletions
+8
View File
@@ -30,6 +30,9 @@ class CardViewer : public wxControl, public DataViewer {
/** May NOT be called while in onPaint/draw */
shared_ptr<DC> overdrawDC();
/// Invalidate and redraw (the area of) a single value viewer
void redraw(const ValueViewer&);
protected:
/// Return the desired size of control
virtual wxSize DoGetBestSize() const;
@@ -37,6 +40,11 @@ class CardViewer : public wxControl, public DataViewer {
virtual void onChange();
virtual void onChangeSize();
/// Should the given viewer be drawn?
bool shouldDraw(const ValueViewer&) const;
virtual void drawViewer(RotatedDC& dc, ValueViewer& v);
private:
DECLARE_EVENT_TABLE();