]>
git.saurik.com Git - wxWidgets.git/blob - contrib/samples/canvas/simple/simple.h
1 /////////////////////////////////////////////////////////////////////////////
6 /////////////////////////////////////////////////////////////////////////////
12 #pragma interface "simple.cpp"
15 // Include wxWindows' headers
21 #include "wx/canvas/canvas.h"
24 //----------------------------------------------------------------------------
26 //----------------------------------------------------------------------------
30 // WDR: class declarations
32 //----------------------------------------------------------------------------
34 //----------------------------------------------------------------------------
36 class MyFrame
: public wxFrame
39 // constructors and destructors
40 MyFrame( wxWindow
*parent
, wxWindowID id
, const wxString
&title
,
41 const wxPoint
& pos
= wxDefaultPosition
,
42 const wxSize
& size
= wxDefaultSize
,
43 long style
= wxDEFAULT_FRAME_STYLE
);
47 // WDR: method declarations for MyFrame
48 void CreateMyMenuBar();
51 // WDR: member variable declarations for MyFrame
52 wxCanvasImage
*m_smile1
;
53 wxCanvasImage
*m_smile2
;
54 wxCanvasAdmin
*m_admin
;
58 // WDR: handler declarations for MyFrame
59 void OnQuit( wxCommandEvent
&event
);
60 void OnCloseWindow( wxCloseEvent
&event
);
61 void OnTimer( wxTimerEvent
&event
);
67 //----------------------------------------------------------------------------
69 //----------------------------------------------------------------------------
71 class MyApp
: public wxApp
76 virtual bool OnInit();