Cafu Engine
MainFrame.hpp
1 /*
2 Cafu Engine, http://www.cafu.de/
3 Copyright (c) Carsten Fuchs and other contributors.
4 This project is licensed under the terms of the MIT license.
5 */
6 
7 #ifndef CAFU_MAIN_FRAME_HPP_INCLUDED
8 #define CAFU_MAIN_FRAME_HPP_INCLUDED
9 
10 #include "wx/wx.h"
11 
12 
13 class GameInfoT;
14 class MainCanvasT;
15 
16 
17 /// This class represents the Cafu main frame.
18 class MainFrameT : public wxFrame
19 {
20  public:
21 
22  /// The constructor.
23  MainFrameT(const GameInfoT& GameInfo);
24 
25  /// Returns the main OpenGL 3D canvas.
26  MainCanvasT* GetMainCanvas() { return m_MainCanvas; }
27 
28 
29  private:
30 
31  void OnClose(wxCloseEvent& CE); ///< Event handler for close events, e.g. after a system close button or command or a call to Close(). See wx Window Deletion Overview for more details.
32 
33  MainCanvasT* m_MainCanvas;
34 
35  DECLARE_EVENT_TABLE()
36 };
37 
38 #endif
This class represents the Cafu main OpenGL 3D canvas.
Definition: MainCanvas.hpp:31
MainFrameT(const GameInfoT &GameInfo)
The constructor.
Definition: MainFrame.cpp:17
This class encapsulates information about a game.
Definition: GameInfo.hpp:14
This class represents the Cafu main frame.
Definition: MainFrame.hpp:18
MainCanvasT * GetMainCanvas()
Returns the main OpenGL 3D canvas.
Definition: MainFrame.hpp:26