]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk1/app.h
No real changes, just make wxWindow::CanScroll() virtual.
[wxWidgets.git] / include / wx / gtk1 / app.h
CommitLineData
c801d85f 1/////////////////////////////////////////////////////////////////////////////
8ef94bfc 2// Name: wx/gtk1/app.h
c801d85f
KB
3// Purpose:
4// Author: Robert Roebling
01111366 5// Copyright: (c) 1998 Robert Roebling, Julian Smart
65571936 6// Licence: wxWindows licence
c801d85f
KB
7/////////////////////////////////////////////////////////////////////////////
8
9#ifndef __GTKAPPH__
10#define __GTKAPPH__
11
c801d85f 12#include "wx/frame.h"
ebea0891 13#include "wx/icon.h"
66bf0099 14#include "wx/strconv.h"
c801d85f 15
29e461a2
PC
16typedef struct _GdkVisual GdkVisual;
17
c801d85f
KB
18//-----------------------------------------------------------------------------
19// classes
20//-----------------------------------------------------------------------------
21
b5dbe15d
VS
22class WXDLLIMPEXP_FWD_CORE wxApp;
23class WXDLLIMPEXP_FWD_BASE wxLog;
c801d85f 24
c801d85f
KB
25//-----------------------------------------------------------------------------
26// wxApp
27//-----------------------------------------------------------------------------
28
20123d49 29class WXDLLIMPEXP_CORE wxApp: public wxAppBase
c801d85f 30{
094637f6 31public:
bbe0af5b 32 wxApp();
a6f5aa49 33 virtual ~wxApp();
a3622daa 34
094637f6
VZ
35 /* override for altering the way wxGTK intializes the GUI
36 * (palette/visual/colorcube). under wxMSW, OnInitGui() does nothing by
37 * default. when overriding this method, the code in it is likely to be
38 * platform dependent, otherwise use OnInit(). */
bbe0af5b 39 virtual bool OnInitGui();
094637f6
VZ
40
41 // override base class (pure) virtuals
e2478fde 42 virtual void WakeUpIdle();
53010e52 43
05e2b077 44 virtual bool Initialize(int& argc, wxChar **argv);
94826170 45 virtual void CleanUp();
a3622daa 46
94826170 47 static bool InitialzeVisual();
a3622daa 48
657a8a35
VZ
49 virtual void OnAssertFailure(const wxChar *file,
50 int line,
51 const wxChar *func,
52 const wxChar *cond,
53 const wxChar *msg);
a5f1fd3e
VZ
54
55 bool IsInAssert() const { return m_isInAssert; }
094637f6 56
29e461a2 57 int m_idleTag;
fe593cc5 58 void RemoveIdleTag();
8ef94bfc 59
f6fcbb63 60 unsigned char *m_colorCube;
a3622daa 61
4c51a665 62 // Used by the wxGLApp and wxGLCanvas class for GL-based X visual
34a34b02
VZ
63 // selection.
64 void *m_glVisualInfo; // this is actually an XVisualInfo*
65 void *m_glFBCInfo; // this is actually an GLXFBConfig*
005f5d18
RR
66 // This returns the current visual: either that used by wxRootWindow
67 // or the XVisualInfo* for SGI.
68 GdkVisual *GetGdkVisual();
8ef94bfc 69
094637f6 70private:
a5f1fd3e 71 // true if we're inside an assert modal dialog
a5f1fd3e 72 bool m_isInAssert;
094637f6 73
8636aed8 74 DECLARE_DYNAMIC_CLASS(wxApp)
c801d85f
KB
75};
76
77#endif // __GTKAPPH__