]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/mgl/app.h
[ 1494561 ] wxComboCtrl vertical size fix.
[wxWidgets.git] / include / wx / mgl / app.h
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: app.h
3// Purpose:
4// Author: Vaclav Slavik
5// Id: $Id$
6// Copyright: (c) 2001-2002 SciTech Software, Inc. (www.scitechsoft.com)
7// Licence: wxWindows licence
8/////////////////////////////////////////////////////////////////////////////
9
10#ifndef __WX_APP_H__
11#define __WX_APP_H__
12
13#include "wx/frame.h"
14#include "wx/icon.h"
15
16//-----------------------------------------------------------------------------
17// classes
18//-----------------------------------------------------------------------------
19
20class WXDLLEXPORT wxApp;
21class WXDLLEXPORT wxLog;
22class WXDLLEXPORT wxEventLoop;
23
24//-----------------------------------------------------------------------------
25// wxApp
26//-----------------------------------------------------------------------------
27
28class WXDLLEXPORT wxApp: public wxAppBase
29{
30public:
31 wxApp();
32 ~wxApp();
33
34 /* override for altering the way wxGTK intializes the GUI
35 * (palette/visual/colorcube). under wxMSW, OnInitGui() does nothing by
36 * default. when overriding this method, the code in it is likely to be
37 * platform dependent, otherwise use OnInit(). */
38 virtual bool OnInitGui();
39
40 // override base class (pure) virtuals
41 virtual bool Initialize(int& argc, wxChar **argv);
42 virtual void CleanUp();
43
44 virtual void Exit();
45 virtual void WakeUpIdle();
46 virtual bool Yield(bool onlyIfNeeded = FALSE);
47
48 virtual wxVideoMode GetDisplayMode() const { return m_displayMode; }
49 virtual bool SetDisplayMode(const wxVideoMode& mode);
50
51private:
52 DECLARE_DYNAMIC_CLASS(wxApp)
53 DECLARE_EVENT_TABLE()
54
55 wxVideoMode m_displayMode;
56};
57
58#endif // __WX_APP_H__
59