1 *** swig.h.old Wed Feb 04 15:59:40 1998
2 --- swig.h Fri Aug 28 15:46:32 1998
10 + // -------------------------------------------------------------------
11 + // Simple Vector class
12 + // User is responsible for deleting contents before deleteing Vector
13 + // -------------------------------------------------------------------
17 + Vector(size_t allocSize=8);
20 + size_t size() { return m_size; }
21 + size_t count() { return m_count; }
22 + size_t append(void* object);
23 + size_t extend(size_t newSize);
25 + void*& operator[] (size_t idx);
27 + static void* s_nullPtr;
36 /************************************************************************
39 * Defines the basic datatypes supported by the translator.
43 extern char *name_get(char *vname, int suppress=0);
44 extern char *name_set(char *vname, int suppress=0);
45 extern char *name_construct(char *classname, int suppress=0);
46 extern char *name_destroy(char *classname, int suppress=0);
48 + // ----------------------------------------------------------------------
51 + // Class for managing class members (internally)
52 + // ----------------------------------------------------------------------
58 + char *classname; // Real class name
59 + char *classrename; // New name of class (if applicable)
60 + char *classtype; // class type (struct, union, class)
61 + int strip; // Strip off class declarator
62 + int wextern; // Value of extern wrapper variable for this class
63 + int have_constructor; // Status bit indicating if we've seen a constructor
64 + int have_destructor; // Status bit indicating if a destructor has been seen
65 + int is_abstract; // Status bit indicating if this is an abstract class
66 + int generate_default; // Generate default constructors
67 + int objective_c; // Set if this is an objective C class
68 + int error; // Set if this class can't be generated
69 + int line; // Line number
70 + char **baseclass; // Base classes (if any)
71 + Hash *local; // Hash table for local types
72 + Hash *scope; // Local scope hash table
73 + DocEntry *de; // Documentation entry of class
74 + CPP_member *members; // Linked list of members
75 + CPP_class *next; // Next class
76 + static CPP_class *classlist; // List of all classes stored
80 + CPP_class(char *name, char *ctype);
81 + void add_member(CPP_member *m);
82 + CPP_member *search_member(char *name);
83 + void inherit_decls(int mode);
85 + static CPP_class *search(char *name);
86 + void create_default();
87 + static void create_all();
90 + extern CPP_class *current_class;
92 /***********************************************************************
95 * Revision 1.2 1999/07/31 07:54:05 RD
98 * Added the missing wxWindow.GetUpdateRegion() method.
100 * Made a new change in SWIG (update your patches everybody) that
101 * provides a fix for global shadow objects that get an exception in
102 * their __del__ when their extension module has already been deleted.
103 * It was only a 1 line change in .../SWIG/Modules/pycpp.cxx at about
104 * line 496 if you want to do it by hand.
106 * It is now possible to run through MainLoop more than once in any one
107 * process. The cleanup that used to happen as MainLoop completed (and
108 * prevented it from running again) has been delayed until the wxc module
109 * is being unloaded by Python.
111 * wxWindow.PopupMenu() now takes a wxPoint instead of x,y. Added
112 * wxWindow.PopupMenuXY to be consistent with some other methods.
114 * Added wxGrid.SetEditInPlace and wxGrid.GetEditInPlace.
116 * You can now provide your own app.MainLoop method. See
117 * wxPython/demo/demoMainLoop.py for an example and some explaination.
119 * Got the in-place-edit for the wxTreeCtrl fixed and added some demo
120 * code to show how to use it.
122 * Put the wxIcon constructor back in for GTK as it now has one that
125 * Added wxGrid.GetCells
127 * Added wxSystemSettings static methods as functions with names like
128 * wxSystemSettings_GetSystemColour.
130 * Removed wxPyMenu since using menu callbacks have been depreciated in
131 * wxWindows. Use wxMenu and events instead.
133 * Added alternate wxBitmap constructor (for MSW only) as
134 * wxBitmapFromData(data, type, width, height, depth = 1)
136 * Added a helper function named wxPyTypeCast that can convert shadow
137 * objects of one type into shadow objects of another type. (Like doing
138 * a down-cast.) See the implementation in wx.py for some docs.