]>
git.saurik.com Git - wxWidgets.git/blob - demos/forty/canvas.h
b507518f5ee8e74cc3ef5158a587cb7dab6d925e
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 wxWidgets 2.0
12 /////////////////////////////////////////////////////////////////////////////
19 class PlayerSelectionDialog
;
21 class FortyCanvas
: public wxScrolledWindow
24 FortyCanvas(wxWindow
* parent
, const wxPoint
& pos
, const wxSize
& size
);
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
; }
41 void ShowPlayerDialog();
48 ScoreFile
* m_scoreFile
;
49 wxCursor
* m_arrowCursor
;
50 wxCursor
* m_handCursor
;
54 PlayerSelectionDialog
* m_playerDialog
;