[Fxruby-commits] CVS: FXRuby/swig-interfaces common.i,NONE,1.1.2.1 FXGIFCursor.i,1.11.2.1,1.11.2.2
Status: Inactive
Brought to you by:
lyle
From: Lyle J. <ly...@us...> - 2002-07-11 13:06:38
|
Update of /cvsroot/fxruby/FXRuby/swig-interfaces In directory usw-pr-cvs1:/tmp/cvs-serv17708/swig-interfaces Modified Files: Tag: release10 FXGIFCursor.i Added Files: Tag: release10 common.i Log Message: --- NEW FILE: common.i --- /*********************************************************************** * FXRuby -- the Ruby language bindings for the FOX GUI toolkit. * Copyright (c) 2001 by J. Lyle Johnson. All Rights Reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * For further information please contact the author by e-mail * at "ly...@us...". ***********************************************************************/ /*********************************************************************** * $Id: common.i,v 1.1.2.1 2002/07/11 13:06:04 lyle Exp $ ***********************************************************************/ %{ #include "FXRbCommon.h" %} // Redefine the FXAPI macro to a no-op for SWIG #ifdef FXAPI #undef FXAPI #endif #define FXAPI // Redefine the FXDECLARE macro to a no-op for SWIG #ifdef FXDECLARE #undef FXDECLARE #endif #define FXDECLARE(classname) %include typemaps.i %include markfuncs.i %include freefuncs.i %include renames.i %include stubs.i Index: FXGIFCursor.i =================================================================== RCS file: /cvsroot/fxruby/FXRuby/swig-interfaces/FXGIFCursor.i,v retrieving revision 1.11.2.1 retrieving revision 1.11.2.2 diff -C2 -d -r1.11.2.1 -r1.11.2.2 *** FXGIFCursor.i 8 May 2002 15:25:40 -0000 1.11.2.1 --- FXGIFCursor.i 11 Jul 2002 13:06:04 -0000 1.11.2.2 *************** *** 23,38 **** %exception FXGIFCursor::FXGIFCursor "$action FXRbRegisterRubyObj(self, result);"; ! /// GIF Cursor class ! class FXGIFCursor : public FXCursor { ! protected: ! FXGIFCursor(){} ! public: ! /// Construct a cursor from memory stream formatted as CompuServe GIF format ! FXGIFCursor(FXApp* a,const void* pix,FXint hx,FXint hy); ! /// Destroy ! virtual ~FXGIFCursor(){} ! }; %exception FXRbGIFCursor::FXRbGIFCursor "$action FXRbRegisterRubyObj(self, result);"; --- 23,31 ---- %exception FXGIFCursor::FXGIFCursor "$action FXRbRegisterRubyObj(self, result);"; ! %ignore ::fxloadGIF(FXStream& store,FXuchar*& data,FXColor& transp,FXint& width,FXint& height); ! %apply const FXuchar *PIXELS { const FXuchar *data }; ! %include FXGIFCursor.h %exception FXRbGIFCursor::FXRbGIFCursor "$action FXRbRegisterRubyObj(self, result);"; *************** *** 54,58 **** %inline %{ ! /// Load a gif file from a stream VALUE fxloadGIF(FXStream& store){ FXuchar* data; --- 47,51 ---- %inline %{ ! /// Load a GIF file from a stream VALUE fxloadGIF(FXStream& store){ FXuchar* data; *************** *** 74,79 **** } %} - - - /// Save a gif file to a stream - FXbool fxsaveGIF(FXStream& store,const FXuchar *PIXELS,FXColor transp,FXint width,FXint height); --- 67,68 ---- |