1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
5 // Copyright: (c) 1998 Robert Roebling, Julian Smart
6 // Licence: wxWindows licence
7 /////////////////////////////////////////////////////////////////////////////
14 #include "wx/strconv.h"
16 typedef struct _GdkVisual GdkVisual
;
18 //-----------------------------------------------------------------------------
20 //-----------------------------------------------------------------------------
22 class WXDLLIMPEXP_FWD_CORE wxApp
;
23 class WXDLLIMPEXP_FWD_BASE wxLog
;
25 //-----------------------------------------------------------------------------
27 //-----------------------------------------------------------------------------
29 class WXDLLIMPEXP_CORE wxApp
: public wxAppBase
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(). */
39 virtual bool OnInitGui();
41 // override base class (pure) virtuals
42 virtual void WakeUpIdle();
44 virtual bool Initialize(int& argc
, wxChar
**argv
);
45 virtual void CleanUp();
47 static bool InitialzeVisual();
49 virtual void OnAssertFailure(const wxChar
*file
,
55 bool IsInAssert() const { return m_isInAssert
; }
60 unsigned char *m_colorCube
;
62 // Used by the wxGLApp and wxGLCanvas class for GL-based X visual
64 void *m_glVisualInfo
; // this is actually an XVisualInfo*
65 void *m_glFBCInfo
; // this is actually an GLXFBConfig*
66 // This returns the current visual: either that used by wxRootWindow
67 // or the XVisualInfo* for SGI.
68 GdkVisual
*GetGdkVisual();
71 // true if we're inside an assert modal dialog
74 DECLARE_DYNAMIC_CLASS(wxApp
)