]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/export.h
corrections related to event.h modifications
[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
24#define wxPyCoreAPI_IMPORT() \
25 wxPyCoreAPIPtr = (wxPyCoreAPI*)PyCObject_Import("wxPython.wxc", "wxPyCoreAPI")
26
27
28#define SWIG_MakePtr(a, b, c) (wxPyCoreAPIPtr->p_SWIG_MakePtr(a, b, c))
29#define SWIG_GetPtr(a, b, c) (wxPyCoreAPIPtr->p_SWIG_GetPtr(a, b, c))
30#define SWIG_GetPtrObj(a, b, c) (wxPyCoreAPIPtr->p_SWIG_GetPtrObj(a, b, c))
31#define SWIG_RegisterMapping(a, b, c) (wxPyCoreAPIPtr->p_SWIG_RegisterMapping(a, b, c))
32#define SWIG_addvarlink(a, b, c, d) (wxPyCoreAPIPtr->p_SWIG_addvarlink(a, b, c, d))
33
34#define wxPyRestoreThread() (wxPyCoreAPIPtr->p_wxPyRestoreThread())
35#define wxPySaveThread(a) (wxPyCoreAPIPtr->p_wxPySaveThread(a))
36#define wxPyConstructObject(a,b,c) (wxPyCoreAPIPtr->p_wxPyConstructObject(a,b,c))
37#define wxPy_ConvertList(a,b) (wxPyCoreAPIPtr->p_wxPy_ConvertList(a,b))
38#define byte_LIST_helper(a) (wxPyCoreAPIPtr->p_byte_LIST_helper(a))
39#define int_LIST_helper(a) (wxPyCoreAPIPtr->p_int_LIST_helper(a))
40#define long_LIST_helper(a) (wxPyCoreAPIPtr->p_long_LIST_helper(a))
41#define string_LIST_helper(a) (wxPyCoreAPIPtr->p_string_LIST_helper(a))
42#define wxPoint_LIST_helper(a) (wxPyCoreAPIPtr->p_wxPoint_LIST_helper(a))
43#define wxBitmap_LIST_helper(a) (wxPyCoreAPIPtr->p_wxBitmap_LIST_helper(a))
44#define wxString_LIST_helper(a) (wxPyCoreAPIPtr->p_wxString_LIST_helper(a))
45#define wxAcceleratorEntry_LIST_helper(a) (wxPyCoreAPIPtr->p_wxAcceleratorEntry_LIST_helper(a))
46
47#define wxSize_helper(a,b) (wxPyCoreAPIPtr->p_wxSize_helper(a,b))
48#define wxPoint_helper(a,b) (wxPyCoreAPIPtr->p_wxPoint_helper(a,b))
49#define wxRealPoint_helper(a,b) (wxPyCoreAPIPtr->p_wxRealPoint_helper(a,b))
50#define wxRect_helper(a,b) (wxPyCoreAPIPtr->p_wxRect_helper(a,b))
51#define wxColour_helper(a,b) (wxPyCoreAPIPtr->p_wxColour_helper(a,b))
52
53#define wxPyCBH_setSelf(a, b, c, d) (wxPyCoreAPIPtr->p_wxPyCBH_setSelf(a,b,c,d))
54#define wxPyCBH_findCallback(a, b) (wxPyCoreAPIPtr->p_wxPyCBH_findCallback(a, b))
55#define wxPyCBH_callCallback(a, b) (wxPyCoreAPIPtr->p_wxPyCBH_callCallback(a, b))
56#define wxPyCBH_callCallbackObj(a, b) (wxPyCoreAPIPtr->p_wxPyCBH_callCallbackObj(a, b))
57#define wxPyCBH_delete(a) (wxPyCoreAPIPtr->p_wxPyCBH_delete(a))
58
59
60// This one is special. It's the first function called in SWIG generated
61// modules, so we'll use it to also import the API.
62#define SWIG_newvarlink() (wxPyCoreAPI_IMPORT(), wxPyCoreAPIPtr->p_SWIG_newvarlink())
63
64
65//----------------------------------------------------------------------
66#endif