]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/app.h
handle mouse capture lost event in grid windows and reset the grid to normal state...
[wxWidgets.git] / include / wx / gtk / app.h
CommitLineData
c801d85f 1/////////////////////////////////////////////////////////////////////////////
8461e4c2 2// Name: wx/gtk/app.h
c801d85f
KB
3// Purpose:
4// Author: Robert Roebling
dbf858b5 5// Id: $Id$
01111366 6// Copyright: (c) 1998 Robert Roebling, Julian Smart
65571936 7// Licence: wxWindows licence
c801d85f
KB
8/////////////////////////////////////////////////////////////////////////////
9
4f13428c
PC
10#ifndef _WX_GTK_APP_H_
11#define _WX_GTK_APP_H_
c801d85f
KB
12
13//-----------------------------------------------------------------------------
14// classes
15//-----------------------------------------------------------------------------
16
20123d49
MW
17class WXDLLIMPEXP_CORE wxApp;
18class WXDLLIMPEXP_BASE wxLog;
c801d85f 19
c801d85f
KB
20//-----------------------------------------------------------------------------
21// wxApp
22//-----------------------------------------------------------------------------
23
20123d49 24class WXDLLIMPEXP_CORE wxApp: public wxAppBase
c801d85f 25{
094637f6 26public:
bbe0af5b 27 wxApp();
a6f5aa49 28 virtual ~wxApp();
a3622daa 29
094637f6
VZ
30 /* override for altering the way wxGTK intializes the GUI
31 * (palette/visual/colorcube). under wxMSW, OnInitGui() does nothing by
32 * default. when overriding this method, the code in it is likely to be
33 * platform dependent, otherwise use OnInit(). */
bbe0af5b 34 virtual bool OnInitGui();
094637f6
VZ
35
36 // override base class (pure) virtuals
8461e4c2 37 virtual bool Yield(bool onlyIfNeeded = FALSE);
e2478fde 38 virtual void WakeUpIdle();
53010e52 39
05e2b077 40 virtual bool Initialize(int& argc, wxChar **argv);
94826170 41 virtual void CleanUp();
a3622daa 42
94826170 43 static bool InitialzeVisual();
a3622daa 44
a5f1fd3e 45#ifdef __WXDEBUG__
2d97237d
VZ
46 virtual void OnAssertFailure(const wxChar *file,
47 int line,
48 const wxChar *func,
49 const wxChar *cond,
50 const wxChar *msg);
a5f1fd3e
VZ
51
52 bool IsInAssert() const { return m_isInAssert; }
53#endif // __WXDEBUG__
094637f6 54
4f13428c 55 guint m_idleTag;
67461bd1
PC
56 // temporarily disable idle events
57 void SuspendIdleCallback();
a3622daa 58
005f5d18 59 // Used by the the wxGLApp and wxGLCanvas class for GL-based X visual
34a34b02
VZ
60 // selection.
61 void *m_glVisualInfo; // this is actually an XVisualInfo*
62 void *m_glFBCInfo; // this is actually an GLXFBConfig*
005f5d18
RR
63 // This returns the current visual: either that used by wxRootWindow
64 // or the XVisualInfo* for SGI.
65 GdkVisual *GetGdkVisual();
66bf0099 66
094637f6 67private:
a5f1fd3e
VZ
68 // true if we're inside an assert modal dialog
69#ifdef __WXDEBUG__
70 bool m_isInAssert;
71#endif // __WXDEBUG__
094637f6 72
8636aed8 73 DECLARE_DYNAMIC_CLASS(wxApp)
094637f6 74 DECLARE_EVENT_TABLE()
c801d85f
KB
75};
76
4f13428c 77#endif // _WX_GTK_APP_H_