]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/app.h
1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling, Julian Smart
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
13 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
19 #include "wx/strconv.h"
21 //-----------------------------------------------------------------------------
23 //-----------------------------------------------------------------------------
25 class WXDLLIMPEXP_CORE wxApp
;
26 class WXDLLIMPEXP_BASE wxLog
;
28 //-----------------------------------------------------------------------------
30 //-----------------------------------------------------------------------------
32 class WXDLLIMPEXP_CORE wxApp
: public wxAppBase
38 /* override for altering the way wxGTK intializes the GUI
39 * (palette/visual/colorcube). under wxMSW, OnInitGui() does nothing by
40 * default. when overriding this method, the code in it is likely to be
41 * platform dependent, otherwise use OnInit(). */
42 virtual bool OnInitGui();
44 // override base class (pure) virtuals
45 virtual bool Yield(bool onlyIfNeeded
= FALSE
);
46 virtual void WakeUpIdle();
48 virtual bool Initialize(int& argc
, wxChar
**argv
);
49 virtual void CleanUp();
51 static bool InitialzeVisual();
54 virtual void OnAssert(const wxChar
*file
, int line
, const wxChar
*cond
, const wxChar
*msg
);
56 bool IsInAssert() const { return m_isInAssert
; }
62 unsigned char *m_colorCube
;
64 // Used by the the wxGLApp and wxGLCanvas class for GL-based X visual
66 void *m_glVisualInfo
; // this is actually an XVisualInfo*
67 void *m_glFBCInfo
; // this is actually an GLXFBConfig*
68 // This returns the current visual: either that used by wxRootWindow
69 // or the XVisualInfo* for SGI.
70 GdkVisual
*GetGdkVisual();
73 // true if we're inside an assert modal dialog
78 DECLARE_DYNAMIC_CLASS(wxApp
)