]>
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)
20 //-----------------------------------------------------------------------------
22 //-----------------------------------------------------------------------------
27 //-----------------------------------------------------------------------------
29 //-----------------------------------------------------------------------------
31 class wxApp
: public wxAppBase
37 /* override for altering the way wxGTK intializes the GUI
38 * (palette/visual/colorcube). under wxMSW, OnInitGui() does nothing by
39 * default. when overriding this method, the code in it is likely to be
40 * platform dependent, otherwise use OnInit(). */
41 virtual bool OnInitGui();
43 // override base class (pure) virtuals
44 virtual int MainLoop();
45 virtual void ExitMainLoop();
46 virtual bool Initialized();
47 virtual bool Pending();
48 virtual bool Dispatch();
52 virtual bool Yield(bool onlyIfNeeded
= FALSE
);
53 virtual void WakeUpIdle();
55 virtual bool Initialize(int& argc
, wxChar
**argv
);
56 virtual void CleanUp();
58 static bool InitialzeVisual();
61 virtual void OnAssert(const wxChar
*file
, int line
, const wxChar
*cond
, const wxChar
*msg
);
63 bool IsInAssert() const { return m_isInAssert
; }
70 gint m_wakeUpTimerTag
;
72 unsigned char *m_colorCube
;
74 // Used by the the wxGLApp and wxGLCanvas class for GL-based X visual
75 // selection; this is actually an XVisualInfo*
77 // This returns the current visual: either that used by wxRootWindow
78 // or the XVisualInfo* for SGI.
79 GdkVisual
*GetGdkVisual();
82 // true if we're inside an assert modal dialog
87 DECLARE_DYNAMIC_CLASS(wxApp
)