Thread: [Fxruby-commits] CVS: FXRuby/swig-interfaces FXApp.i,1.38.2.4,1.38.2.5 FXColorSelector.i,1.15,1.15.2
Status: Inactive
Brought to you by:
lyle
Update of /cvsroot/fxruby/FXRuby/swig-interfaces In directory usw-pr-cvs1:/tmp/cvs-serv29682/swig-interfaces Modified Files: Tag: release10 FXApp.i FXColorSelector.i FXComboBox.i FXDC.i FXDebugTarget.i FXDial.i FXDict.i FXFileDialog.i FXFileDict.i FXFileSelector.i FXFont.i FXFontDialog.i FXFontSelector.i FXGLObject.i FXGLShape.i FXGLViewer.i FXHMat.i FXHVec.i FXHeader.i FXIconList.i FXId.i FXImage.i FXInputDialog.i FXList.i FXListBox.i FXPrintDialog.i FXQuat.i FXRange.i FXRegion.i FXScintilla.i FXScrollArea.i FXSlider.i FXSpinner.i FXStatusline.i FXStream.i FXTable.i FXText.i FXTreeList.i FXTreeListBox.i FXVec.i FXWindow.i Log Message: Replaced %addmethods directives with %extend in a number of SWIG interface files. Fixed the default argument values for FXIconDict and FXRbIconDict constructors (in FXFileDict.i) from "FXIconDict::defaultIconPath" to just "defaultIconPath"; otherwise SWIG expands this incorrectly. Index: FXApp.i =================================================================== RCS file: /cvsroot/fxruby/FXRuby/swig-interfaces/FXApp.i,v retrieving revision 1.38.2.4 retrieving revision 1.38.2.5 diff -C2 -d -r1.38.2.4 -r1.38.2.5 *** FXApp.i 1 May 2002 14:18:06 -0000 1.38.2.4 --- FXApp.i 6 May 2002 19:16:29 -0000 1.38.2.5 *************** *** 145,149 **** #ifdef SWIGRUBY ! %addmethods { // Copyright notice for library static VALUE copyright() { --- 145,149 ---- #ifdef SWIGRUBY ! %extend { // Copyright notice for library static VALUE copyright() { *************** *** 221,225 **** FXChore* removeChore(FXChore *c); ! %addmethods { /** * Add signal processing message to be sent to target object when --- 221,225 ---- FXChore* removeChore(FXChore *c); ! %extend { /** * Add signal processing message to be sent to target object when *************** *** 390,394 **** */ // virtual void init(int& argc,char** argv,FXbool connect=TRUE); ! %addmethods { void init(VALUE arr,FXbool connect=TRUE) { int i; --- 390,394 ---- */ // virtual void init(int& argc,char** argv,FXbool connect=TRUE); ! %extend { void init(VALUE arr,FXbool connect=TRUE) { int i; Index: FXColorSelector.i =================================================================== RCS file: /cvsroot/fxruby/FXRuby/swig-interfaces/FXColorSelector.i,v retrieving revision 1.15 retrieving revision 1.15.2.1 diff -C2 -d -r1.15 -r1.15.2.1 *** FXColorSelector.i 19 Mar 2002 23:18:40 -0000 1.15 --- FXColorSelector.i 6 May 2002 19:16:29 -0000 1.15.2.1 *************** *** 61,65 **** protected: #ifdef 0 ! %addmethods { // Returns a read-only array of the names, which isn't quite right :( static VALUE wellname() { --- 61,65 ---- protected: #ifdef 0 ! %extend { // Returns a read-only array of the names, which isn't quite right :( static VALUE wellname() { Index: FXComboBox.i =================================================================== RCS file: /cvsroot/fxruby/FXRuby/swig-interfaces/FXComboBox.i,v retrieving revision 1.23 retrieving revision 1.23.2.1 diff -C2 -d -r1.23 -r1.23.2.1 *** FXComboBox.i 19 Mar 2002 23:18:40 -0000 1.23 --- FXComboBox.i 6 May 2002 19:16:29 -0000 1.23.2.1 *************** *** 134,138 **** FXString getItemText(FXint index) const; ! %addmethods { /// Set data pointer for specified item void setItemData(FXint index, VALUE ptr) { --- 134,138 ---- FXString getItemText(FXint index) const; ! %extend { /// Set data pointer for specified item void setItemData(FXint index, VALUE ptr) { Index: FXDC.i =================================================================== RCS file: /cvsroot/fxruby/FXRuby/swig-interfaces/FXDC.i,v retrieving revision 1.21 retrieving revision 1.21.2.1 diff -C2 -d -r1.21 -r1.21.2.1 *** FXDC.i 3 Apr 2002 21:40:57 -0000 1.21 --- FXDC.i 6 May 2002 19:16:29 -0000 1.21.2.1 *************** *** 204,208 **** virtual void drawLine(FXint x1,FXint y1,FXint x2,FXint y2); #ifdef SWIGPYTHON ! %addmethods { // points is assumed to be a list of (x, y) tuples void drawLines(PyObject* pointlist){ --- 204,208 ---- virtual void drawLine(FXint x1,FXint y1,FXint x2,FXint y2); #ifdef SWIGPYTHON ! %extend { // points is assumed to be a list of (x, y) tuples void drawLines(PyObject* pointlist){ *************** *** 312,316 **** virtual void setDashes(FXuint dashoffset,const FXchar *dashpattern,FXuint dashlength); ! %addmethods { /// Get dash pattern VALUE getDashPattern() const { --- 312,316 ---- virtual void setDashes(FXuint dashoffset,const FXchar *dashpattern,FXuint dashlength); ! %extend { /// Get dash pattern VALUE getDashPattern() const { Index: FXDebugTarget.i =================================================================== RCS file: /cvsroot/fxruby/FXRuby/swig-interfaces/FXDebugTarget.i,v retrieving revision 1.12 retrieving revision 1.12.2.1 diff -C2 -d -r1.12 -r1.12.2.1 *** FXDebugTarget.i 19 Mar 2002 23:18:40 -0000 1.12 --- FXDebugTarget.i 6 May 2002 19:16:29 -0000 1.12.2.1 *************** *** 35,39 **** public: #ifdef SWIGRUBY ! %addmethods { static VALUE messageTypeName() { VALUE messageTypeNames = rb_ary_new(); --- 35,39 ---- public: #ifdef SWIGRUBY ! %extend { static VALUE messageTypeName() { VALUE messageTypeNames = rb_ary_new(); Index: FXDial.i =================================================================== RCS file: /cvsroot/fxruby/FXRuby/swig-interfaces/FXDial.i,v retrieving revision 1.17 retrieving revision 1.17.2.1 diff -C2 -d -r1.17 -r1.17.2.1 *** FXDial.i 19 Mar 2002 23:18:40 -0000 1.17 --- FXDial.i 6 May 2002 19:16:29 -0000 1.17.2.1 *************** *** 81,85 **** #ifdef SWIGRUBY ! %addmethods { /// Obtain the current range of the dial VALUE getRange() const { --- 81,85 ---- #ifdef SWIGRUBY ! %extend { /// Obtain the current range of the dial VALUE getRange() const { *************** *** 94,98 **** #endif #ifdef SWIGPYTHON ! %addmethods { PyObject* getRange() const { FXint lo,hi; --- 94,98 ---- #endif #ifdef SWIGPYTHON ! %extend { PyObject* getRange() const { FXint lo,hi; Index: FXDict.i =================================================================== RCS file: /cvsroot/fxruby/FXRuby/swig-interfaces/FXDict.i,v retrieving revision 1.17 retrieving revision 1.17.2.1 diff -C2 -d -r1.17 -r1.17.2.1 *** FXDict.i 19 Mar 2002 23:18:40 -0000 1.17 --- FXDict.i 6 May 2002 19:16:29 -0000 1.17.2.1 *************** *** 110,114 **** #ifdef SWIGRUBY ! %addmethods { // Returns a new array populated with the keys from this hash VALUE keys() const { --- 110,114 ---- #ifdef SWIGRUBY ! %extend { // Returns a new array populated with the keys from this hash VALUE keys() const { *************** *** 118,122 **** } ! %addmethods { // Returns true if the given key is present FXbool has_key(const FXchar* ky) { --- 118,122 ---- } ! %extend { // Returns true if the given key is present FXbool has_key(const FXchar* ky) { *************** *** 125,129 **** } ! %addmethods { // Returns true if hash contains no key-value pairs FXbool empty() const { --- 125,129 ---- } ! %extend { // Returns true if hash contains no key-value pairs FXbool empty() const { Index: FXFileDialog.i =================================================================== RCS file: /cvsroot/fxruby/FXRuby/swig-interfaces/FXFileDialog.i,v retrieving revision 1.16 retrieving revision 1.16.2.1 diff -C2 -d -r1.16 -r1.16.2.1 *** FXFileDialog.i 19 Mar 2002 23:18:40 -0000 1.16 --- FXFileDialog.i 6 May 2002 19:16:29 -0000 1.16.2.1 *************** *** 43,47 **** #ifdef SWIGRUBY ! %addmethods { // Return list of selected file names. VALUE getFilenames() const { --- 43,47 ---- #ifdef SWIGRUBY ! %extend { // Return list of selected file names. VALUE getFilenames() const { *************** *** 60,64 **** } #else ! %addmethods { PyObject* getFilenames() const { FXString* filenames=self->getFilenames(); --- 60,64 ---- } #else ! %extend { PyObject* getFilenames() const { FXString* filenames=self->getFilenames(); *************** *** 104,108 **** */ #ifdef SWIGRUBY ! %addmethods { // Takes an array of strings as described above void setPatternList(VALUE ary) { --- 104,108 ---- */ #ifdef SWIGRUBY ! %extend { // Takes an array of strings as described above void setPatternList(VALUE ary) { *************** *** 189,193 **** #ifdef SWIGRUBY ! %addmethods { // Open multiple existing files static VALUE getOpenFilenames(FXWindow* owner, --- 189,193 ---- #ifdef SWIGRUBY ! %extend { // Open multiple existing files static VALUE getOpenFilenames(FXWindow* owner, Index: FXFileDict.i =================================================================== RCS file: /cvsroot/fxruby/FXRuby/swig-interfaces/FXFileDict.i,v retrieving revision 1.19 retrieving revision 1.19.2.1 diff -C2 -d -r1.19 -r1.19.2.1 *** FXFileDict.i 28 Mar 2002 16:32:52 -0000 1.19 --- FXFileDict.i 6 May 2002 19:16:29 -0000 1.19.2.1 *************** *** 45,49 **** virtual void deleteData(void*); public: ! %addmethods { /// Default icon search path static VALUE defaultIconPath(){ --- 45,49 ---- virtual void deleteData(void*); public: ! %extend { /// Default icon search path static VALUE defaultIconPath(){ *************** *** 55,59 **** /// Construct an icon dictionary, with given path ! FXIconDict(FXApp* a,const FXString& p=FXIconDict::defaultIconPath); /// Get application --- 55,60 ---- /// Construct an icon dictionary, with given path ! // FXIconDict(FXApp* a,const FXString& p=FXIconDict::defaultIconPath); ! FXIconDict(FXApp* a,const FXString& p=defaultIconPath); /// Get application *************** *** 84,88 **** public: // Construct an icon dictionary, with given path ! FXRbIconDict(FXApp* a,const FXString& p=FXIconDict::defaultIconPath); // Destructor --- 85,90 ---- public: // Construct an icon dictionary, with given path ! // FXRbIconDict(FXApp* a,const FXString& p=FXIconDict::defaultIconPath); ! FXRbIconDict(FXApp* a,const FXString& p=defaultIconPath); // Destructor *************** *** 106,110 **** public: #ifdef SWIGRUBY ! %addmethods { /// Registry key used to find fallback executable icons static VALUE defaultExecBinding(){ --- 108,112 ---- public: #ifdef SWIGRUBY ! %extend { /// Registry key used to find fallback executable icons static VALUE defaultExecBinding(){ Index: FXFileSelector.i =================================================================== RCS file: /cvsroot/fxruby/FXRuby/swig-interfaces/FXFileSelector.i,v retrieving revision 1.19 retrieving revision 1.19.2.1 diff -C2 -d -r1.19 -r1.19.2.1 *** FXFileSelector.i 19 Mar 2002 23:18:40 -0000 1.19 --- FXFileSelector.i 6 May 2002 19:16:29 -0000 1.19.2.1 *************** *** 131,135 **** #ifdef SWIGRUBY ! %addmethods { // Return list of selected file names. VALUE getFilenames() const { --- 131,135 ---- #ifdef SWIGRUBY ! %extend { // Return list of selected file names. VALUE getFilenames() const { *************** *** 149,153 **** #endif #ifdef SWIGPYTHON ! %addmethods { PyObject* getFilenames() const { FXString* filenames=self->getFilenames(); --- 149,153 ---- #endif #ifdef SWIGPYTHON ! %extend { PyObject* getFilenames() const { FXString* filenames=self->getFilenames(); *************** *** 193,197 **** */ #ifdef SWIGRUBY ! %addmethods { // Takes an array of strings as described above void setPatternList(VALUE ary) { --- 193,197 ---- */ #ifdef SWIGRUBY ! %extend { // Takes an array of strings as described above void setPatternList(VALUE ary) { Index: FXFont.i =================================================================== RCS file: /cvsroot/fxruby/FXRuby/swig-interfaces/FXFont.i,v retrieving revision 1.15 retrieving revision 1.15.2.1 diff -C2 -d -r1.15 -r1.15.2.1 *** FXFont.i 19 Mar 2002 23:18:40 -0000 1.15 --- FXFont.i 6 May 2002 19:16:29 -0000 1.15.2.1 *************** *** 207,211 **** FXuint getHints() const; ! %addmethods { // Get font description FXFontDesc getFontDesc() const { --- 207,211 ---- FXuint getHints() const; ! %extend { // Get font description FXFontDesc getFontDesc() const { *************** *** 255,259 **** FXint getFontSpacing() const; ! %addmethods { // Calculate width of given text in this font FXint getTextWidth(const FXchar *text) const { --- 255,259 ---- FXint getFontSpacing() const; ! %extend { // Calculate width of given text in this font FXint getTextWidth(const FXchar *text) const { *************** *** 269,273 **** #ifdef SWIGRUBY ! %addmethods { // List all fonts matching hints (returns an array of FXFontDesc objects) static FXbool listFonts(const FXString& face, --- 269,273 ---- #ifdef SWIGRUBY ! %extend { // List all fonts matching hints (returns an array of FXFontDesc objects) static FXbool listFonts(const FXString& face, Index: FXFontDialog.i =================================================================== RCS file: /cvsroot/fxruby/FXRuby/swig-interfaces/FXFontDialog.i,v retrieving revision 1.12 retrieving revision 1.12.2.1 diff -C2 -d -r1.12 -r1.12.2.1 *** FXFontDialog.i 19 Mar 2002 23:18:40 -0000 1.12 --- FXFontDialog.i 6 May 2002 19:16:29 -0000 1.12.2.1 *************** *** 39,43 **** #ifdef SWIGRUBY ! %addmethods { /// Get the current font selection FXFontDesc getFontSelection() const { --- 39,43 ---- #ifdef SWIGRUBY ! %extend { /// Get the current font selection FXFontDesc getFontSelection() const { *************** *** 48,52 **** } #else ! %addmethods { %new FXFontDesc* getFontSelection() const { FXFontDesc* fontdesc = new FXFontDesc; --- 48,52 ---- } #else ! %extend { %new FXFontDesc* getFontSelection() const { FXFontDesc* fontdesc = new FXFontDesc; Index: FXFontSelector.i =================================================================== RCS file: /cvsroot/fxruby/FXRuby/swig-interfaces/FXFontSelector.i,v retrieving revision 1.12 retrieving revision 1.12.2.1 diff -C2 -d -r1.12 -r1.12.2.1 *** FXFontSelector.i 19 Mar 2002 23:18:40 -0000 1.12 --- FXFontSelector.i 6 May 2002 19:16:29 -0000 1.12.2.1 *************** *** 106,110 **** #ifdef SWIGRUBY ! %addmethods { /// Get font selection FXFontDesc getFontSelection() const { --- 106,110 ---- #ifdef SWIGRUBY ! %extend { /// Get font selection FXFontDesc getFontSelection() const { *************** *** 115,119 **** } #else ! %addmethods { %new FXFontDesc* getFontSelection() const { FXFontDesc* fontdesc = new FXFontDesc; --- 115,119 ---- } #else ! %extend { %new FXFontDesc* getFontSelection() const { FXFontDesc* fontdesc = new FXFontDesc; Index: FXGLObject.i =================================================================== RCS file: /cvsroot/fxruby/FXRuby/swig-interfaces/FXGLObject.i,v retrieving revision 1.23 retrieving revision 1.23.2.1 diff -C2 -d -r1.23 -r1.23.2.1 *** FXGLObject.i 2 Apr 2002 03:44:27 -0000 1.23 --- FXGLObject.i 6 May 2002 19:16:29 -0000 1.23.2.1 *************** *** 43,47 **** #ifdef SWIGRUBY /// Called by the viewer to get bounds for this object ! %addmethods { FXRange bounds() { FXRange box; --- 43,47 ---- #ifdef SWIGRUBY /// Called by the viewer to get bounds for this object ! %extend { FXRange bounds() { FXRange box; *************** *** 51,55 **** } #else ! %addmethods { // Called by the viewer to get bounds for this object FXRange* bounds(FXRange& box) { --- 51,55 ---- } #else ! %extend { // Called by the viewer to get bounds for this object FXRange* bounds(FXRange& box) { *************** *** 131,135 **** FXGLObject* child(FXint pos) const; ! %addmethods { /// Insert child object at given position void insert(FXint pos,FXGLObject* obj){ --- 131,135 ---- FXGLObject* child(FXint pos) const; ! %extend { /// Insert child object at given position void insert(FXint pos,FXGLObject* obj){ Index: FXGLShape.i =================================================================== RCS file: /cvsroot/fxruby/FXRuby/swig-interfaces/FXGLShape.i,v retrieving revision 1.17 retrieving revision 1.17.2.1 diff -C2 -d -r1.17 -r1.17.2.1 *** FXGLShape.i 2 Apr 2002 03:44:27 -0000 1.17 --- FXGLShape.i 6 May 2002 19:16:29 -0000 1.17.2.1 *************** *** 107,111 **** #ifdef SWIGRUBY ! %addmethods { // Get the material for specified side (where side = 0 or 1) FXMaterial getMaterial(FXint side) const { --- 107,111 ---- #ifdef SWIGRUBY ! %extend { // Get the material for specified side (where side = 0 or 1) FXMaterial getMaterial(FXint side) const { *************** *** 116,120 **** } #else ! %addmethods { %new FXMaterial* getMaterial(FXint side) const { FXMaterial *mtl = new FXMaterial; --- 116,120 ---- } #else ! %extend { %new FXMaterial* getMaterial(FXint side) const { FXMaterial *mtl = new FXMaterial; Index: FXGLViewer.i =================================================================== RCS file: /cvsroot/fxruby/FXRuby/swig-interfaces/FXGLViewer.i,v retrieving revision 1.25 retrieving revision 1.25.2.1 diff -C2 -d -r1.25 -r1.25.2.1 *** FXGLViewer.i 19 Mar 2002 23:18:40 -0000 1.25 --- FXGLViewer.i 6 May 2002 19:16:29 -0000 1.25.2.1 *************** *** 328,332 **** // Common DND type names ! %addmethods { static VALUE objectTypeName(){ return to_ruby(FXGLViewer::objectTypeName); --- 328,332 ---- // Common DND type names ! %extend { static VALUE objectTypeName(){ return to_ruby(FXGLViewer::objectTypeName); *************** *** 349,353 **** #ifdef SWIGRUBY ! %addmethods { // Return a list of all objects in the given rectangle VALUE lasso(FXint x1,FXint y1,FXint x2,FXint y2) { --- 349,353 ---- #ifdef SWIGRUBY ! %extend { // Return a list of all objects in the given rectangle VALUE lasso(FXint x1,FXint y1,FXint x2,FXint y2) { *************** *** 366,370 **** } #else ! %addmethods { PyObject* lasso(FXint x1,FXint y1,FXint x2,FXint y2) { FXGLObject **items = self->lasso(x1,y1,x2,y2); --- 366,370 ---- } #else ! %extend { PyObject* lasso(FXint x1,FXint y1,FXint x2,FXint y2) { FXGLObject **items = self->lasso(x1,y1,x2,y2); *************** *** 436,440 **** #ifdef SWIGRUBY ! %addmethods { // Return a list of all objects in the given rectangle VALUE select(FXint x,FXint y,FXint w,FXint h) { --- 436,440 ---- #ifdef SWIGRUBY ! %extend { // Return a list of all objects in the given rectangle VALUE select(FXint x,FXint y,FXint w,FXint h) { *************** *** 465,469 **** #ifdef SWIGRUBY ! %addmethods { /// Return the viewer's viewport FXViewport getViewport() const { --- 465,469 ---- #ifdef SWIGRUBY ! %extend { /// Return the viewer's viewport FXViewport getViewport() const { *************** *** 485,489 **** #else ! %addmethods { // void getViewport(FXViewport& v) const; %new FXViewport* getViewport() const { --- 485,489 ---- #else ! %extend { // void getViewport(FXViewport& v) const; %new FXViewport* getViewport() const { *************** *** 541,545 **** #ifdef SWIGRUBY ! %addmethods { /// Return default object material setting FXMaterial getMaterial() const { --- 541,545 ---- #ifdef SWIGRUBY ! %extend { /// Return default object material setting FXMaterial getMaterial() const { *************** *** 550,554 **** } #else ! %addmethods { /// Return default object material setting %new FXMaterial* getMaterial() const { --- 550,554 ---- } #else ! %extend { /// Return default object material setting %new FXMaterial* getMaterial() const { *************** *** 600,604 **** #ifdef SWIGRUBY ! %addmethods { /// Return boresight vector (an array of two arrays) VALUE getBoreVector(FXint sx,FXint sy) { --- 600,604 ---- #ifdef SWIGRUBY ! %extend { /// Return boresight vector (an array of two arrays) VALUE getBoreVector(FXint sx,FXint sy) { *************** *** 624,628 **** } #else ! %addmethods { /// Return boresight vector (a tuple of two lists) PyObject* getBoreVector(FXint sx,FXint sy) { --- 624,628 ---- } #else ! %extend { /// Return boresight vector (a tuple of two lists) PyObject* getBoreVector(FXint sx,FXint sy) { *************** *** 751,755 **** #ifdef SWIGRUBY ! %addmethods { // Read the pixels off the screen as R,G,B tuples. VALUE readPixels(FXint x, FXint y, FXint w, FXint h) { --- 751,755 ---- #ifdef SWIGRUBY ! %extend { // Read the pixels off the screen as R,G,B tuples. VALUE readPixels(FXint x, FXint y, FXint w, FXint h) { *************** *** 782,786 **** } #else ! %addmethods { PyObject *readPixels(FXint x,FXint y,FXint w,FXint h) { FXuchar *buffer; --- 782,786 ---- } #else ! %extend { PyObject *readPixels(FXint x,FXint y,FXint w,FXint h) { FXuchar *buffer; *************** *** 851,855 **** * This can be used for move/draw printed output depth sorting. */ ! %addmethods { void setZSortFunc(VALUE proc){ } --- 851,855 ---- * This can be used for move/draw printed output depth sorting. */ ! %extend { void setZSortFunc(VALUE proc){ } *************** *** 859,863 **** #ifdef SWIGRUBY /// Return hidden surface sorting function. ! %addmethods { VALUE getZSortFunc() const { return Qnil; --- 859,863 ---- #ifdef SWIGRUBY /// Return hidden surface sorting function. ! %extend { VALUE getZSortFunc() const { return Qnil; *************** *** 890,894 **** #ifdef SWIGRUBY ! %addmethods { // Return light source settings FXLight getLight() const { --- 890,894 ---- #ifdef SWIGRUBY ! %extend { // Return light source settings FXLight getLight() const { *************** *** 899,903 **** } #else ! %addmethods { // Return light source settings %new FXLight* getLight() const { --- 899,903 ---- } #else ! %extend { // Return light source settings %new FXLight* getLight() const { Index: FXHMat.i =================================================================== RCS file: /cvsroot/fxruby/FXRuby/swig-interfaces/FXHMat.i,v retrieving revision 1.9 retrieving revision 1.9.2.1 diff -C2 -d -r1.9 -r1.9.2.1 *** FXHMat.i 19 Mar 2002 23:18:40 -0000 1.9 --- FXHMat.i 6 May 2002 19:16:29 -0000 1.9.2.1 *************** *** 62,66 **** // Operators ! %addmethods { // Add matrices FXHMat __add__(const FXHMat& other) { --- 62,66 ---- // Operators ! %extend { // Add matrices FXHMat __add__(const FXHMat& other) { Index: FXHVec.i =================================================================== RCS file: /cvsroot/fxruby/FXRuby/swig-interfaces/FXHVec.i,v retrieving revision 1.6 retrieving revision 1.6.2.1 diff -C2 -d -r1.6 -r1.6.2.1 *** FXHVec.i 19 Mar 2002 23:18:40 -0000 1.6 --- FXHVec.i 6 May 2002 19:16:29 -0000 1.6.2.1 *************** *** 46,50 **** // Other good stuff ! %addmethods { FXfloat __getitem__(FXint i){ if(i<0||i>3){ --- 46,50 ---- // Other good stuff ! %extend { FXfloat __getitem__(FXint i){ if(i<0||i>3){ Index: FXHeader.i =================================================================== RCS file: /cvsroot/fxruby/FXRuby/swig-interfaces/FXHeader.i,v retrieving revision 1.30 retrieving revision 1.30.2.1 diff -C2 -d -r1.30 -r1.30.2.1 *** FXHeader.i 2 Apr 2002 03:44:27 -0000 1.30 --- FXHeader.i 6 May 2002 19:16:29 -0000 1.30.2.1 *************** *** 67,71 **** #ifdef SWIGRUBY ! %addmethods { /// Change item's user data void setData(VALUE ptr) { --- 67,71 ---- #ifdef SWIGRUBY ! %extend { /// Change item's user data void setData(VALUE ptr) { *************** *** 80,84 **** #endif #ifdef SWIGPYTHON ! %addmethods { void setData(PyObject* ptr) { FXPySetData(self, ptr); --- 80,84 ---- #endif #ifdef SWIGPYTHON ! %extend { void setData(PyObject* ptr) { FXPySetData(self, ptr); *************** *** 188,192 **** #ifdef SWIGRUBY ! %addmethods { /// Replace the item with a [possibly subclassed] item FXint replaceItem1(FXint index,FXHeaderItem* item,FXbool notify=FALSE){ --- 188,192 ---- #ifdef SWIGRUBY ! %extend { /// Replace the item with a [possibly subclassed] item FXint replaceItem1(FXint index,FXHeaderItem* item,FXbool notify=FALSE){ *************** *** 223,227 **** ! %addmethods { /// Insert a new [possibly subclassed] item at the given index FXint insertItem1(FXint index,FXHeaderItem* item,FXbool notify=FALSE){ --- 223,227 ---- ! %extend { /// Insert a new [possibly subclassed] item at the given index FXint insertItem1(FXint index,FXHeaderItem* item,FXbool notify=FALSE){ *************** *** 235,239 **** %name(insertItem2) FXint insertItem(FXint index,const FXString& text,FXIcon *icon=NULL,FXint size=0,void* ITEMDATA=NULL,FXbool notify=FALSE); ! %addmethods { /// Append a [possibly subclassed] item to the list FXint appendItem1(FXHeaderItem* item,FXbool notify=FALSE){ --- 235,239 ---- %name(insertItem2) FXint insertItem(FXint index,const FXString& text,FXIcon *icon=NULL,FXint size=0,void* ITEMDATA=NULL,FXbool notify=FALSE); ! %extend { /// Append a [possibly subclassed] item to the list FXint appendItem1(FXHeaderItem* item,FXbool notify=FALSE){ *************** *** 247,251 **** %name(appendItem2) FXint appendItem(const FXString& text,FXIcon *icon=NULL,FXint size=0,void* ITEMDATA=NULL,FXbool notify=FALSE); ! %addmethods { /// Prepend a [possibly subclassed] item to the list FXint prependItem1(FXHeaderItem* item,FXbool notify=FALSE){ --- 247,251 ---- %name(appendItem2) FXint appendItem(const FXString& text,FXIcon *icon=NULL,FXint size=0,void* ITEMDATA=NULL,FXbool notify=FALSE); ! %extend { /// Prepend a [possibly subclassed] item to the list FXint prependItem1(FXHeaderItem* item,FXbool notify=FALSE){ *************** *** 286,290 **** #endif ! %addmethods { /// Remove item at index void removeItem(FXint index,FXbool notify=FALSE){ --- 286,290 ---- #endif ! %extend { /// Remove item at index void removeItem(FXint index,FXbool notify=FALSE){ *************** *** 348,352 **** #ifdef SWIGRUBY ! %addmethods { /// Change data of item at index void setItemData(FXint index, VALUE ptr){ --- 348,352 ---- #ifdef SWIGRUBY ! %extend { /// Change data of item at index void setItemData(FXint index, VALUE ptr){ Index: FXIconList.i =================================================================== RCS file: /cvsroot/fxruby/FXRuby/swig-interfaces/FXIconList.i,v retrieving revision 1.34 retrieving revision 1.34.2.1 diff -C2 -d -r1.34 -r1.34.2.1 *** FXIconList.i 2 Apr 2002 03:44:27 -0000 1.34 --- FXIconList.i 6 May 2002 19:16:29 -0000 1.34.2.1 *************** *** 83,87 **** FXIcon* getMiniIcon() const; ! %addmethods { void setData(VALUE ptr){ self->setData((void*) ptr); --- 83,87 ---- FXIcon* getMiniIcon() const; ! %extend { void setData(VALUE ptr){ self->setData((void*) ptr); *************** *** 279,283 **** FXIconItem *retrieveItem(FXint index) const; ! %addmethods { /// Replace the item with a [possibly subclassed] item FXint replaceItem1(FXint index,FXIconItem* item,FXbool notify=FALSE){ --- 279,283 ---- FXIconItem *retrieveItem(FXint index) const; ! %extend { /// Replace the item with a [possibly subclassed] item FXint replaceItem1(FXint index,FXIconItem* item,FXbool notify=FALSE){ *************** *** 314,318 **** ! %addmethods { /// Insert a new [possibly subclassed] item at the give index FXint insertItem1(FXint index,FXIconItem* item,FXbool notify=FALSE){ --- 314,318 ---- ! %extend { /// Insert a new [possibly subclassed] item at the give index FXint insertItem1(FXint index,FXIconItem* item,FXbool notify=FALSE){ *************** *** 326,330 **** %name(insertItem2) FXint insertItem(FXint index,const FXString& text,FXIcon *big=NULL,FXIcon* mini=NULL,void* ITEMDATA=NULL,FXbool notify=FALSE); ! %addmethods { /// Append a [possibly subclassed] item to the end of the list FXint appendItem1(FXIconItem* item,FXbool notify=FALSE){ --- 326,330 ---- %name(insertItem2) FXint insertItem(FXint index,const FXString& text,FXIcon *big=NULL,FXIcon* mini=NULL,void* ITEMDATA=NULL,FXbool notify=FALSE); ! %extend { /// Append a [possibly subclassed] item to the end of the list FXint appendItem1(FXIconItem* item,FXbool notify=FALSE){ *************** *** 338,342 **** %name(appendItem2) FXint appendItem(const FXString& text,FXIcon *big=NULL,FXIcon* mini=NULL,void* ITEMDATA=NULL,FXbool notify=FALSE); ! %addmethods { /// Append a [possibly subclassed] item to the end of the list FXint prependItem1(FXIconItem* item,FXbool notify=FALSE){ --- 338,342 ---- %name(appendItem2) FXint appendItem(const FXString& text,FXIcon *big=NULL,FXIcon* mini=NULL,void* ITEMDATA=NULL,FXbool notify=FALSE); ! %extend { /// Append a [possibly subclassed] item to the end of the list ... [truncated message content] |