]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/export.h
Added dialog tabbing to wxX11.
[wxWidgets.git] / wxPython / src / export.h
CommitLineData
1e7ecb7b
RD
1////////////////////////////////////////////////////////////////////////////
2// Name: export.h
3// Purpose: To be used from modules that are not part of the core
4// wxPython extension in order to get access to some helper
5// functions that live in wxc.
6//
7// Author: Robin Dunn
8//
9// Created: 14-Dec-2000
10// RCS-ID: $Id$
11// Copyright: (c) 2000 by Total Control Software
12// Licence: wxWindows license
13/////////////////////////////////////////////////////////////////////////////
14
15#ifndef __wxp_export__
16#define __wxp_export__
17
18//----------------------------------------------------------------------
19
20#define wxPyUSE_EXPORT
21#include "helpers.h"
22
23
1b62f00d
RD
24static void wxPyCoreAPI_IMPORT() {
25 wxPyCoreAPIPtr = (wxPyCoreAPI*)PyCObject_Import("wxPython.wxc", "wxPyCoreAPI");
26 if (! wxPyCoreAPIPtr)
27 wxPyCoreAPIPtr = (wxPyCoreAPI*)PyCObject_Import("wxc", "wxPyCoreAPI");
28}
1e7ecb7b
RD
29
30#define SWIG_MakePtr(a, b, c) (wxPyCoreAPIPtr->p_SWIG_MakePtr(a, b, c))
31#define SWIG_GetPtr(a, b, c) (wxPyCoreAPIPtr->p_SWIG_GetPtr(a, b, c))
32#define SWIG_GetPtrObj(a, b, c) (wxPyCoreAPIPtr->p_SWIG_GetPtrObj(a, b, c))
33#define SWIG_RegisterMapping(a, b, c) (wxPyCoreAPIPtr->p_SWIG_RegisterMapping(a, b, c))
34#define SWIG_addvarlink(a, b, c, d) (wxPyCoreAPIPtr->p_SWIG_addvarlink(a, b, c, d))
35
4268f798
RD
36#define wxPyBeginAllowThreads() (wxPyCoreAPIPtr->p_wxPyBeginAllowThreads())
37#define wxPyEndAllowThreads(a) (wxPyCoreAPIPtr->p_wxPyEndAllowThreads(a))
19a97bd6 38#define wxPyBeginBlockThreads() (wxPyCoreAPIPtr->p_wxPyBeginBlockThreads())
4268f798 39#define wxPyEndBlockThreads() (wxPyCoreAPIPtr->p_wxPyEndBlockThreads())
19a97bd6 40
1e7ecb7b
RD
41#define wxPyConstructObject(a,b,c) (wxPyCoreAPIPtr->p_wxPyConstructObject(a,b,c))
42#define wxPy_ConvertList(a,b) (wxPyCoreAPIPtr->p_wxPy_ConvertList(a,b))
c8bc7bb8
RD
43
44#define wxString_in_helper(a) (wxPyCoreAPIPtr->p_wxString_in_helper(a))
1e7ecb7b
RD
45#define byte_LIST_helper(a) (wxPyCoreAPIPtr->p_byte_LIST_helper(a))
46#define int_LIST_helper(a) (wxPyCoreAPIPtr->p_int_LIST_helper(a))
47#define long_LIST_helper(a) (wxPyCoreAPIPtr->p_long_LIST_helper(a))
48#define string_LIST_helper(a) (wxPyCoreAPIPtr->p_string_LIST_helper(a))
e0672e2f 49#define wxPoint_LIST_helper(a,b) (wxPyCoreAPIPtr->p_wxPoint_LIST_helper(a, b))
1e7ecb7b
RD
50#define wxBitmap_LIST_helper(a) (wxPyCoreAPIPtr->p_wxBitmap_LIST_helper(a))
51#define wxString_LIST_helper(a) (wxPyCoreAPIPtr->p_wxString_LIST_helper(a))
52#define wxAcceleratorEntry_LIST_helper(a) (wxPyCoreAPIPtr->p_wxAcceleratorEntry_LIST_helper(a))
53
54#define wxSize_helper(a,b) (wxPyCoreAPIPtr->p_wxSize_helper(a,b))
55#define wxPoint_helper(a,b) (wxPyCoreAPIPtr->p_wxPoint_helper(a,b))
56#define wxRealPoint_helper(a,b) (wxPyCoreAPIPtr->p_wxRealPoint_helper(a,b))
57#define wxRect_helper(a,b) (wxPyCoreAPIPtr->p_wxRect_helper(a,b))
58#define wxColour_helper(a,b) (wxPyCoreAPIPtr->p_wxColour_helper(a,b))
59
0122b7e3 60#define wxPyCBH_setCallbackInfo(a, b, c, d) (wxPyCoreAPIPtr->p_wxPyCBH_setCallbackInfo(a,b,c,d))
1e7ecb7b
RD
61#define wxPyCBH_findCallback(a, b) (wxPyCoreAPIPtr->p_wxPyCBH_findCallback(a, b))
62#define wxPyCBH_callCallback(a, b) (wxPyCoreAPIPtr->p_wxPyCBH_callCallback(a, b))
63#define wxPyCBH_callCallbackObj(a, b) (wxPyCoreAPIPtr->p_wxPyCBH_callCallbackObj(a, b))
64#define wxPyCBH_delete(a) (wxPyCoreAPIPtr->p_wxPyCBH_delete(a))
65
9416aa89 66#define wxPyClassExists(a) (wxPyCoreAPIPtr->p_wxPyClassExists(a))
2f4e9287
RD
67#define wxPyMake_wxObject(a) (wxPyCoreAPIPtr->p_wxPyMake_wxObject(a,TRUE))
68#define wxPyMake_wxObject2(a,b) (wxPyCoreAPIPtr->p_wxPyMake_wxObject(a,b))
69#define wxPyMake_wxSizer(a) (wxPyCoreAPIPtr->p_wxPyMake_wxSizer(a))
9416aa89 70#define wxPyPtrTypeMap_Add(a, b) (wxPyCoreAPIPtr->p_wxPyPtrTypeMap_Add(a, b))
7b7ac0ab 71#define wxArrayString2PyList_helper(a) (wxPyCoreAPIPtr->p_wxArrayString2PyList_helper(a))
293a0a86 72#define wxArrayInt2PyList_helper(a) (wxPyCoreAPIPtr->p_wxArrayInt2PyList_helper(a))
9416aa89 73
1e7ecb7b
RD
74
75// This one is special. It's the first function called in SWIG generated
76// modules, so we'll use it to also import the API.
77#define SWIG_newvarlink() (wxPyCoreAPI_IMPORT(), wxPyCoreAPIPtr->p_SWIG_newvarlink())
78
79
80//----------------------------------------------------------------------
81#endif