]>
git.saurik.com Git - wxWidgets.git/blob - samples/forty/canvas.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Forty Thieves patience game
4 // Author: Chris Breeze
8 // Copyright: (c) 1993-1998 Chris Breeze
9 // Licence: wxWindows licence
10 //---------------------------------------------------------------------------
11 // Last modified: 22nd July 1998 - ported to wxWindows 2.0
12 /////////////////////////////////////////////////////////////////////////////
19 class PlayerSelectionDialog
;
21 class FortyCanvas
: public wxScrolledWindow
24 FortyCanvas(wxWindow
* parent
, int x
, int y
, int w
, int h
);
25 virtual ~FortyCanvas();
27 virtual void OnDraw(wxDC
& dc
);
29 void OnMouseEvent(wxMouseEvent
& event
);
30 void SetCursorStyle(int x
, int y
);
36 ScoreFile
* GetScoreFile() const { return m_scoreFile
; }
38 void EnableHelpingHand(bool enable
) { m_helpingHand
= enable
; }
39 void EnableRightButtonUndo(bool enable
) { m_rightBtnUndo
= enable
; }
46 ScoreFile
* m_scoreFile
;
47 wxCursor
* m_arrowCursor
;
48 wxCursor
* m_handCursor
;
52 PlayerSelectionDialog
* m_playerDialog
;