]> git.saurik.com Git - wxWidgets.git/blame - contrib/samples/canvas/simple/simple.h
Added new stream tests to typetest.
[wxWidgets.git] / contrib / samples / canvas / simple / simple.h
CommitLineData
f9032263
RR
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"
880d870e 22#include "wx/timer.h"
f9032263
RR
23
24//----------------------------------------------------------------------------
25// constants
26//----------------------------------------------------------------------------
27
28#define ID_QUIT 101
29
30// WDR: class declarations
31
32//----------------------------------------------------------------------------
33// MyFrame
34//----------------------------------------------------------------------------
35
36class MyFrame: public wxFrame
37{
38public:
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 );
880d870e 44 ~MyFrame();
f9032263
RR
45
46private:
47 // WDR: method declarations for MyFrame
48 void CreateMyMenuBar();
49
50private:
51 // WDR: member variable declarations for MyFrame
52 wxCanvasImage *m_smile1;
53 wxCanvasImage *m_smile2;
54 wxCanvasAdmin *m_admin;
880d870e 55 wxTimer *m_timer;
f9032263
RR
56
57private:
58 // WDR: handler declarations for MyFrame
59 void OnQuit( wxCommandEvent &event );
60 void OnCloseWindow( wxCloseEvent &event );
880d870e 61 void OnTimer( wxTimerEvent &event );
f9032263
RR
62
63private:
64 DECLARE_EVENT_TABLE()
65};
66
67//----------------------------------------------------------------------------
68// MyApp
69//----------------------------------------------------------------------------
70
71class MyApp: public wxApp
72{
73public:
74 MyApp();
75
76 virtual bool OnInit();
77 virtual int OnExit();
78};
79
80#endif