]>
git.saurik.com Git - wxWidgets.git/blob - demos/forty/canvas.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Forty Thieves patience game
4 // Author: Chris Breeze
7 // Copyright: (c) 1993-1998 Chris Breeze
8 // Licence: wxWindows licence
9 //---------------------------------------------------------------------------
10 // Last modified: 22nd July 1998 - ported to wxWidgets 2.0
11 /////////////////////////////////////////////////////////////////////////////
18 class PlayerSelectionDialog
;
20 class FortyCanvas
: public wxScrolledWindow
23 FortyCanvas(wxWindow
* parent
, const wxPoint
& pos
, const wxSize
& size
);
24 virtual ~FortyCanvas();
26 virtual void OnDraw(wxDC
& dc
);
28 void OnMouseEvent(wxMouseEvent
& event
);
29 void SetCursorStyle(int x
, int y
);
35 ScoreFile
* GetScoreFile() const { return m_scoreFile
; }
37 void EnableHelpingHand(bool enable
) { m_helpingHand
= enable
; }
38 void EnableRightButtonUndo(bool enable
) { m_rightBtnUndo
= enable
; }
40 void ShowPlayerDialog();
47 ScoreFile
* m_scoreFile
;
48 wxCursor
* m_arrowCursor
;
49 wxCursor
* m_handCursor
;
53 PlayerSelectionDialog
* m_playerDialog
;