1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling, Julian Smart
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
15 #include "wx/strconv.h"
17 //-----------------------------------------------------------------------------
19 //-----------------------------------------------------------------------------
21 class WXDLLIMPEXP_FWD_CORE wxApp
;
22 class WXDLLIMPEXP_FWD_BASE wxLog
;
24 //-----------------------------------------------------------------------------
26 //-----------------------------------------------------------------------------
28 class WXDLLIMPEXP_CORE wxApp
: public wxAppBase
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();
40 // override base class (pure) virtuals
41 virtual void WakeUpIdle();
43 virtual bool Initialize(int& argc
, wxChar
**argv
);
44 virtual void CleanUp();
46 static bool InitialzeVisual();
49 virtual void OnAssert(const wxChar
*file
, int line
, const wxChar
*cond
, const wxChar
*msg
);
51 bool IsInAssert() const { return m_isInAssert
; }
57 unsigned char *m_colorCube
;
59 // Used by the the wxGLApp and wxGLCanvas class for GL-based X visual
61 void *m_glVisualInfo
; // this is actually an XVisualInfo*
62 void *m_glFBCInfo
; // this is actually an GLXFBConfig*
63 // This returns the current visual: either that used by wxRootWindow
64 // or the XVisualInfo* for SGI.
65 GdkVisual
*GetGdkVisual();
68 // true if we're inside an assert modal dialog
73 DECLARE_DYNAMIC_CLASS(wxApp
)