[Fxruby-commits] CVS: FXRuby/swig-interfaces FXCursor.i,1.11,1.11.2.1 FXGIFCursor.i,1.11,1.11.2.1
Status: Inactive
Brought to you by:
lyle
|
From: Lyle J. <ly...@us...> - 2002-05-08 15:25:43
|
Update of /cvsroot/fxruby/FXRuby/swig-interfaces
In directory usw-pr-cvs1:/tmp/cvs-serv30306/swig-interfaces
Modified Files:
Tag: release10
FXCursor.i FXGIFCursor.i
Log Message:
Modified the constructors for FXCursor and FXGIFCursor so that the hot
spot coordinates (hx and hy) no longer have default values of -1. Although
FOX allows this, it's not correct for Windows where you *must* specify
a reasonable value for those arguments; so I'm removing the temptation
for FXRuby ;)
Index: FXCursor.i
===================================================================
RCS file: /cvsroot/fxruby/FXRuby/swig-interfaces/FXCursor.i,v
retrieving revision 1.11
retrieving revision 1.11.2.1
diff -C2 -d -r1.11 -r1.11.2.1
*** FXCursor.i 19 Mar 2002 23:18:40 -0000 1.11
--- FXCursor.i 8 May 2002 15:25:39 -0000 1.11.2.1
***************
*** 55,59 ****
/// Make cursor from source and mask; cursor size should at most 32x32 for portability!
! FXCursor(FXApp* a,const void* src,const void* msk,FXint w=32,FXint h=32,FXint hx=-1,FXint hy=-1);
/// Width of cursor
--- 55,59 ----
/// Make cursor from source and mask; cursor size should at most 32x32 for portability!
! FXCursor(FXApp* a,const void* src,const void* msk,FXint w,FXint h,FXint hx,FXint hy);
/// Width of cursor
***************
*** 94,97 ****
--- 94,98 ----
};
+ %ignore FXRbCursor::FXRbCursor(FXApp* a,const void* src,const void* msk,FXint w,FXint h,FXint hx,FXint hy);
%exception FXRbCursor::FXRbCursor "$action FXRbRegisterRubyObj(self, result);";
***************
*** 100,103 ****
--- 101,107 ----
// Constructor
FXRbCursor(FXApp* a,FXStockCursor curid=CURSOR_ARROW);
+
+ // Construct from source and mask
+ FXRbCursor(FXApp* a,const void* src,const void* msk,FXint w,FXint h,FXint hx,FXint hy);
// Destructor
Index: FXGIFCursor.i
===================================================================
RCS file: /cvsroot/fxruby/FXRuby/swig-interfaces/FXGIFCursor.i,v
retrieving revision 1.11
retrieving revision 1.11.2.1
diff -C2 -d -r1.11 -r1.11.2.1
*** FXGIFCursor.i 19 Mar 2002 23:18:40 -0000 1.11
--- FXGIFCursor.i 8 May 2002 15:25:40 -0000 1.11.2.1
***************
*** 30,34 ****
/// Construct a cursor from memory stream formatted as CompuServe GIF format
! FXGIFCursor(FXApp* a,const void* pix,FXint hx=-1,FXint hy=-1);
/// Destroy
--- 30,34 ----
/// Construct a cursor from memory stream formatted as CompuServe GIF format
! FXGIFCursor(FXApp* a,const void* pix,FXint hx,FXint hy);
/// Destroy
***************
*** 41,45 ****
public:
// Constructor
! FXRbGIFCursor(FXApp* a,const void* pix,FXint hx=-1,FXint hy=-1);
// Destructor
--- 41,45 ----
public:
// Constructor
! FXRbGIFCursor(FXApp* a,const void* pix,FXint hx,FXint hy);
// Destructor
|