]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk1/app.h
Forbid setting hints for multi-line text controls.
[wxWidgets.git] / include / wx / gtk1 / app.h
CommitLineData
c801d85f 1/////////////////////////////////////////////////////////////////////////////
8ef94bfc 2// Name: wx/gtk1/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
10#ifndef __GTKAPPH__
11#define __GTKAPPH__
12
c801d85f 13#include "wx/frame.h"
ebea0891 14#include "wx/icon.h"
66bf0099 15#include "wx/strconv.h"
c801d85f 16
29e461a2
PC
17typedef struct _GdkVisual GdkVisual;
18
c801d85f
KB
19//-----------------------------------------------------------------------------
20// classes
21//-----------------------------------------------------------------------------
22
b5dbe15d
VS
23class WXDLLIMPEXP_FWD_CORE wxApp;
24class WXDLLIMPEXP_FWD_BASE wxLog;
c801d85f 25
c801d85f
KB
26//-----------------------------------------------------------------------------
27// wxApp
28//-----------------------------------------------------------------------------
29
20123d49 30class WXDLLIMPEXP_CORE wxApp: public wxAppBase
c801d85f 31{
094637f6 32public:
bbe0af5b 33 wxApp();
a6f5aa49 34 virtual ~wxApp();
a3622daa 35
094637f6
VZ
36 /* override for altering the way wxGTK intializes the GUI
37 * (palette/visual/colorcube). under wxMSW, OnInitGui() does nothing by
38 * default. when overriding this method, the code in it is likely to be
39 * platform dependent, otherwise use OnInit(). */
bbe0af5b 40 virtual bool OnInitGui();
094637f6
VZ
41
42 // override base class (pure) virtuals
e2478fde 43 virtual void WakeUpIdle();
53010e52 44
05e2b077 45 virtual bool Initialize(int& argc, wxChar **argv);
94826170 46 virtual void CleanUp();
a3622daa 47
94826170 48 static bool InitialzeVisual();
a3622daa 49
657a8a35
VZ
50 virtual void OnAssertFailure(const wxChar *file,
51 int line,
52 const wxChar *func,
53 const wxChar *cond,
54 const wxChar *msg);
a5f1fd3e
VZ
55
56 bool IsInAssert() const { return m_isInAssert; }
094637f6 57
29e461a2 58 int m_idleTag;
fe593cc5 59 void RemoveIdleTag();
8ef94bfc 60
f6fcbb63 61 unsigned char *m_colorCube;
a3622daa 62
4c51a665 63 // Used by the wxGLApp and wxGLCanvas class for GL-based X visual
34a34b02
VZ
64 // selection.
65 void *m_glVisualInfo; // this is actually an XVisualInfo*
66 void *m_glFBCInfo; // this is actually an GLXFBConfig*
005f5d18
RR
67 // This returns the current visual: either that used by wxRootWindow
68 // or the XVisualInfo* for SGI.
69 GdkVisual *GetGdkVisual();
8ef94bfc 70
094637f6 71private:
a5f1fd3e 72 // true if we're inside an assert modal dialog
a5f1fd3e 73 bool m_isInAssert;
094637f6 74
8636aed8 75 DECLARE_DYNAMIC_CLASS(wxApp)
c801d85f
KB
76};
77
78#endif // __GTKAPPH__