1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling, Julian Smart
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
15 #include "wx/strconv.h"
17 typedef struct _GdkVisual GdkVisual
;
19 //-----------------------------------------------------------------------------
21 //-----------------------------------------------------------------------------
23 class WXDLLIMPEXP_FWD_CORE wxApp
;
24 class WXDLLIMPEXP_FWD_BASE wxLog
;
26 //-----------------------------------------------------------------------------
28 //-----------------------------------------------------------------------------
30 class WXDLLIMPEXP_CORE wxApp
: public wxAppBase
36 /* override for altering the way wxGTK intializes the GUI
37 * (palette/visual/colorcube). under wxMSW, OnInitGui() does nothing by
38 * default. when overriding this method, the code in it is likely to be
39 * platform dependent, otherwise use OnInit(). */
40 virtual bool OnInitGui();
42 // override base class (pure) virtuals
43 virtual void WakeUpIdle();
45 virtual bool Initialize(int& argc
, wxChar
**argv
);
46 virtual void CleanUp();
48 static bool InitialzeVisual();
50 virtual void OnAssertFailure(const wxChar
*file
,
56 bool IsInAssert() const { return m_isInAssert
; }
61 unsigned char *m_colorCube
;
63 // Used by the wxGLApp and wxGLCanvas class for GL-based X visual
65 void *m_glVisualInfo
; // this is actually an XVisualInfo*
66 void *m_glFBCInfo
; // this is actually an GLXFBConfig*
67 // This returns the current visual: either that used by wxRootWindow
68 // or the XVisualInfo* for SGI.
69 GdkVisual
*GetGdkVisual();
72 // true if we're inside an assert modal dialog
75 DECLARE_DYNAMIC_CLASS(wxApp
)