]> git.saurik.com Git - wxWidgets.git/blame_incremental - contrib/samples/canvas/simple/simple.h
declare the wx2os2PenStyle helper in the header.
[wxWidgets.git] / contrib / samples / canvas / simple / simple.h
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: simple.h
3// Author: XX
4// Created: XX/XX/XX
5// Copyright:
6/////////////////////////////////////////////////////////////////////////////
7
8#ifndef __simple_H__
9#define __simple_H__
10
11#ifdef __GNUG__
12 #pragma interface "simple.cpp"
13#endif
14
15// Include wxWindows' headers
16
17#ifndef WX_PRECOMP
18 #include <wx/wx.h>
19#endif
20
21#include "wx/canvas/canvas.h"
22
23//----------------------------------------------------------------------------
24// constants
25//----------------------------------------------------------------------------
26
27#define ID_QUIT 101
28
29// WDR: class declarations
30
31//----------------------------------------------------------------------------
32// MyFrame
33//----------------------------------------------------------------------------
34
35class MyFrame: public wxFrame
36{
37public:
38 // constructors and destructors
39 MyFrame( wxWindow *parent, wxWindowID id, const wxString &title,
40 const wxPoint& pos = wxDefaultPosition,
41 const wxSize& size = wxDefaultSize,
42 long style = wxDEFAULT_FRAME_STYLE );
43
44private:
45 // WDR: method declarations for MyFrame
46 void CreateMyMenuBar();
47
48private:
49 // WDR: member variable declarations for MyFrame
50 wxCanvasImage *m_smile1;
51 wxCanvasImage *m_smile2;
52 wxCanvasAdmin *m_admin;
53
54private:
55 // WDR: handler declarations for MyFrame
56 void OnQuit( wxCommandEvent &event );
57 void OnCloseWindow( wxCloseEvent &event );
58
59private:
60 DECLARE_EVENT_TABLE()
61};
62
63//----------------------------------------------------------------------------
64// MyApp
65//----------------------------------------------------------------------------
66
67class MyApp: public wxApp
68{
69public:
70 MyApp();
71
72 virtual bool OnInit();
73 virtual int OnExit();
74};
75
76#endif