1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling, Julian Smart
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 #ifndef _WX_GTK_APP_H_
11 #define _WX_GTK_APP_H_
13 //-----------------------------------------------------------------------------
15 //-----------------------------------------------------------------------------
18 class WXDLLIMPEXP_FWD_BASE wxMutex
;
21 //-----------------------------------------------------------------------------
23 //-----------------------------------------------------------------------------
25 class WXDLLIMPEXP_CORE wxApp
: public wxAppBase
31 /* override for altering the way wxGTK intializes the GUI
32 * (palette/visual/colorcube). under wxMSW, OnInitGui() does nothing by
33 * default. when overriding this method, the code in it is likely to be
34 * platform dependent, otherwise use OnInit(). */
35 virtual bool OnInitGui();
37 // override base class (pure) virtuals
38 virtual bool Yield(bool onlyIfNeeded
= FALSE
);
39 virtual void WakeUpIdle();
41 virtual bool Initialize(int& argc
, wxChar
**argv
);
42 virtual void CleanUp();
45 virtual void OnAssertFailure(const wxChar
*file
,
52 // GTK-specific methods
53 // -------------------
55 // this can be overridden to return a specific visual to be used for GTK+
56 // instead of the default one (it's used by wxGLApp)
58 // must return XVisualInfo pointer (it is not freed by caller)
59 virtual void *GetXVisualInfo() { return NULL
; }
62 // implementation only from now on
63 // -------------------------------
65 // This returns the current visual: either that used by wxRootWindow
66 // or the XVisualInfo* for SGI.
67 GdkVisual
*GetGdkVisual();
69 // check for pending events, without interference from our idle source
74 // true if we're inside an assert modal dialog
83 DECLARE_DYNAMIC_CLASS(wxApp
)
86 #endif // _WX_GTK_APP_H_