]> git.saurik.com Git - wxWidgets.git/blame - wxPython/contrib/xrc/xrc.i
Applied patch [ 845171 ] Use transparancy mask in wxBitmapShape
[wxWidgets.git] / wxPython / contrib / xrc / xrc.i
CommitLineData
d56cebe7
RD
1/////////////////////////////////////////////////////////////////////////////
2// Name: xrc.i
3// Purpose: Wrappers for the XML based Resource system
4//
5// Author: Robin Dunn
6//
7// Created: 4-June-2001
8// RCS-ID: $Id$
9// Copyright: (c) 2001 by Total Control Software
10// Licence: wxWindows license
11/////////////////////////////////////////////////////////////////////////////
12
13%module xrc
14
15
16%{
d14a1e28
RD
17#include "wx/wxPython/wxPython.h"
18#include "wx/wxPython/pyclasses.h"
19#include "wx/wxPython/pyistream.h"
628c7f79 20
d14a1e28
RD
21#include <wx/xml/xml.h>
22#include <wx/xrc/xmlres.h>
d56cebe7 23
628c7f79
RD
24 static const wxString wxPyEmptyString(wxT(""));
25 static const wxString wxPyUTF8String(wxT("UTF-8"));
26 static const wxString wxPyStyleString(wxT("style"));
27 static const wxString wxPySizeString(wxT("size"));
28 static const wxString wxPyPosString(wxT("pos"));
29 static const wxString wxPyBitmapString(wxT("bitmap"));
30 static const wxString wxPyIconString(wxT("icon"));
31 static const wxString wxPyFontString(wxT("font"));
32%}
1e4a197e 33
d56cebe7
RD
34//---------------------------------------------------------------------------
35
d14a1e28
RD
36%import core.i
37%pythoncode { wx = core }
628c7f79 38
d14a1e28 39%include _xrc_rename.i
628c7f79 40
628c7f79 41
d14a1e28
RD
42// Include all the files that make up this module
43%include _xmlres.i
44%include _xmlsub.i
45%include _xml.i
46%include _xmlhandler.i
628c7f79 47
628c7f79 48
628c7f79 49
d14a1e28 50//---------------------------------------------------------------------------
d56cebe7
RD
51
52%init %{
53
d56cebe7 54 wxXmlInitResourceModule();
ce914f73 55 wxXmlResource::Get()->InitAllHandlers();
d56cebe7
RD
56
57%}
58
ce914f73 59
d14a1e28 60%pythoncode "_xrc_ex.py";
ce914f73
RD
61
62
d14a1e28 63//---------------------------------------------------------------------------