]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/_app.i
reSWIGged
[wxWidgets.git] / wxPython / src / _app.i
Content-type: text/html ]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/_app.i


500 - Internal Server Error

Malformed UTF-8 character (fatal) at /usr/lib/x86_64-linux-gnu/perl5/5.40/HTML/Entities.pm line 485, <$fd> line 166.
CommitLineData
d14a1e28
RD
1/////////////////////////////////////////////////////////////////////////////
2// Name: _app.i
3// Purpose: SWIG interface for wxApp
4//
5// Author: Robin Dunn
6//
7// Created: 9-Aug-2003
8// RCS-ID: $Id$
9// Copyright: (c) 2003 by Total Control Software
10// Licence: wxWindows license
11/////////////////////////////////////////////////////////////////////////////
12
13// Not a %module
14
15
16//---------------------------------------------------------------------------
17// TODOs:
18//
19// 1. Provide another app object that allows FilterEvent to be overloaded.
20// 2. Wrap wxAppTraits and allow wxApp::CreateTraits to be overloaded.
21//
22//---------------------------------------------------------------------------
23%newgroup;
24
25%{
26%}
27
28enum {
29 wxPYAPP_ASSERT_SUPPRESS = 1,
30 wxPYAPP_ASSERT_EXCEPTION = 2,
31 wxPYAPP_ASSERT_DIALOG = 4,
32 wxPYAPP_ASSERT_LOG = 8
33};
34
35enum
36{
37 wxPRINT_WINDOWS = 1,
38 wxPRINT_POSTSCRIPT = 2
39};
40
41
42
43
44class wxPyApp : public wxEvtHandler {
45public:
46
47 %addtofunc wxPyApp
48 "self._setCallbackInfo(self, PyApp)
49 self._setOORInfo(self)";
50
51 %extend {
52 wxPyApp() {
53 wxPythonApp = new wxPyApp();
54 return wxPythonApp;
55 }
56 }
57
58 ~wxPyApp();
59
60 void _setCallbackInfo(PyObject* self, PyObject* _class);
61
62 // set/get the application name
63 wxString GetAppName() const;
64 void SetAppName(const wxString& name);
65
66 // set/get the app class name
67 wxString GetClassName() const;
68 void SetClassName(const wxString& name);
69
70 // set/get the vendor name
71 const wxString& GetVendorName() const;
72 void SetVendorName(const wxString& name);
73
74 // create the app traits object to which we delegate for everything which
75 // either should be configurable by the user (then he can change the
76 // default behaviour simply by overriding CreateTraits() and returning his
77 // own traits object) or which is GUI/console dependent as then wxAppTraits
78