]>
git.saurik.com Git - wxWidgets.git/blob - samples/png/pngdemo.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxBitmap class
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart and Markus Holzem
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
12 #if defined( __GNUG__) && !defined(__APPLE__)
18 // Define a new application
19 class MyApp
: public wxApp
29 class MyFrame
: public wxFrame
33 MyFrame(wxFrame
*parent
, const wxString
& title
, const wxPoint
& pos
, const wxSize
& size
);
36 void OnActivate(bool) {}
37 void OnLoadFile(wxCommandEvent
& event
);
38 void OnSaveFile(wxCommandEvent
& event
);
39 void OnQuit(wxCommandEvent
& event
);
40 void OnAbout(wxCommandEvent
& event
);
44 // Define a new canvas which can receive some events
45 class MyCanvas
: public wxScrolledWindow
48 MyCanvas(wxWindow
*parent
, const wxPoint
& pos
, const wxSize
& size
);
51 void OnPaint(wxPaintEvent
& event
);
55 #define PNGDEMO_QUIT 100
56 #define PNGDEMO_ABOUT 101
57 #define PNGDEMO_LOAD_FILE 102
58 #define PNGDEMO_SAVE_FILE 103