fxruby 1.6.23 → 1.6.24
Sign up to get free protection for your applications and to get access to all the features.
- data/.yardopts +4 -0
- data/History.txt +4 -0
- data/Manifest.txt +0 -1
- data/README.rdoc +1 -1
- data/Rakefile +3 -3
- data/Rakefile.cross +5 -5
- data/doap.rdf +1 -1
- data/ext/fox16/FXRuby.cpp +1 -0
- data/ext/fox16/core_wrap.cpp +64 -32
- data/ext/fox16/dc_wrap.cpp +4 -2
- data/ext/fox16/dialogs_wrap.cpp +75 -45
- data/ext/fox16/extconf.rb +4 -3
- data/ext/fox16/frames_wrap.cpp +35 -19
- data/ext/fox16/fx3d_wrap.cpp +12 -4
- data/ext/fox16/iconlist_wrap.cpp +2 -0
- data/ext/fox16/icons_wrap.cpp +26 -13
- data/ext/fox16/image_wrap.cpp +27 -13
- data/ext/fox16/label_wrap.cpp +16 -10
- data/ext/fox16/layout_wrap.cpp +30 -17
- data/ext/fox16/list_wrap.cpp +2 -0
- data/ext/fox16/mdi_wrap.cpp +9 -2
- data/ext/fox16/menu_wrap.cpp +17 -10
- data/ext/fox16/scintilla_wrap.cpp +1 -0
- data/ext/fox16/table_wrap.cpp +2 -1
- data/ext/fox16/text_wrap.cpp +2 -1
- data/ext/fox16/treelist_wrap.cpp +3 -0
- data/ext/fox16/ui_wrap.cpp +46 -21
- data/lib/fox16/version.rb +1 -1
- data/swig-interfaces/FXApp.i +1 -1
- data/swig-interfaces/FXSplashWindow.i +2 -2
- data/swig-interfaces/ruby-typemaps.i +8 -2
- data/test/TC_FXApp.rb +4 -0
- data/test/TC_FXButton.rb +4 -0
- data/test/TC_FXGLViewer.rb +9 -0
- data/test/TC_FXMessageBox.rb +4 -0
- data/test/TC_FXScrollArea.rb +4 -0
- data/test/TC_FXShell.rb +4 -0
- data/test/TC_FXTopWindow.rb +4 -0
- metadata +4 -5
- data/README.git +0 -3
data/.yardopts
CHANGED
data/History.txt
CHANGED
data/Manifest.txt
CHANGED
data/README.rdoc
CHANGED
@@ -27,7 +27,7 @@ FXRuby supportes everything of FOX, that is useful in Ruby:
|
|
27
27
|
|
28
28
|
FXRuby runs on Linux, Windows and OS-X. Installation on *nix requires
|
29
29
|
FOX development headers and libraries installed:
|
30
|
-
* on Debian/Ubuntu: <tt>sudo apt-get install libfox-1.6-dev</tt>
|
30
|
+
* on Debian/Ubuntu: <tt>sudo apt-get install g++ libxrandr-dev libfox-1.6-dev</tt>
|
31
31
|
* see also detailed installation instructions in the {https://github.com/lylejohnson/fxruby/wiki Wiki}
|
32
32
|
* no preparation needed on Windows - the binary gem can be used
|
33
33
|
|
data/Rakefile
CHANGED
@@ -7,10 +7,10 @@ load 'Rakefile.cross'
|
|
7
7
|
|
8
8
|
# Use forked process for chdir'ed environment, to allow parallel execution with drake
|
9
9
|
module FileUtils
|
10
|
-
alias
|
10
|
+
alias unforked_fileutils_cd cd
|
11
11
|
def cd(dir, options={}, &block)
|
12
|
-
raise "
|
13
|
-
Process.waitpid(fork{
|
12
|
+
raise "chdir called without block" unless block_given?
|
13
|
+
Process.waitpid(fork{ unforked_fileutils_cd(dir, options, &block) })
|
14
14
|
end
|
15
15
|
module_function :cd
|
16
16
|
alias chdir cd
|
data/Rakefile.cross
CHANGED
@@ -34,7 +34,7 @@ end
|
|
34
34
|
|
35
35
|
|
36
36
|
# Fetch zlib tarball
|
37
|
-
LIBZ_VERSION = ENV['LIBZ_VERSION'] || '1.2.
|
37
|
+
LIBZ_VERSION = ENV['LIBZ_VERSION'] || '1.2.7'
|
38
38
|
LIBZ_SOURCE_URI = URI( "http://downloads.sourceforge.net/project/libpng/zlib/#{LIBZ_VERSION}/zlib-#{LIBZ_VERSION}.tar.bz2" )
|
39
39
|
LIBZ_TARBALL = STATIC_SOURCESDIR + File.basename( LIBZ_SOURCE_URI.path )
|
40
40
|
STATIC_LIBZ_BUILDDIR = STATIC_BUILDDIR + LIBZ_TARBALL.basename(".tar.bz2")
|
@@ -42,7 +42,7 @@ LIBZ_MAKEFILE = STATIC_LIBZ_BUILDDIR + 'Makefile'
|
|
42
42
|
LIBZ_A = STATIC_INSTALLDIR + 'lib' + 'libz.a'
|
43
43
|
|
44
44
|
# Fetch libpng tarball
|
45
|
-
LIBPNG_VERSION = ENV['LIBPNG_VERSION'] || '1.5.
|
45
|
+
LIBPNG_VERSION = ENV['LIBPNG_VERSION'] || '1.5.10'
|
46
46
|
LIBPNG_SOURCE_URI = URI( "http://prdownloads.sourceforge.net/libpng/libpng-#{LIBPNG_VERSION}.tar.gz?download" )
|
47
47
|
LIBPNG_TARBALL = STATIC_SOURCESDIR + File.basename( LIBPNG_SOURCE_URI.path )
|
48
48
|
STATIC_LIBPNG_BUILDDIR = STATIC_BUILDDIR + LIBPNG_TARBALL.basename(".tar.gz")
|
@@ -51,7 +51,7 @@ LIBPNG_A = STATIC_INSTALLDIR + 'lib' + 'libpng.a'
|
|
51
51
|
|
52
52
|
|
53
53
|
# Fetch libjpeg tarball
|
54
|
-
LIBJPEG_VERSION = ENV['LIBJPEG_VERSION'] || '
|
54
|
+
LIBJPEG_VERSION = ENV['LIBJPEG_VERSION'] || '8d'
|
55
55
|
LIBJPEG_SOURCE_URI = URI( "http://www.ijg.org/files/jpegsrc.v#{LIBJPEG_VERSION}.tar.gz" )
|
56
56
|
LIBJPEG_TARBALL = STATIC_SOURCESDIR + File.basename( LIBJPEG_SOURCE_URI.path )
|
57
57
|
STATIC_LIBJPEG_BUILDDIR = STATIC_BUILDDIR + "jpeg-#{LIBJPEG_VERSION}"
|
@@ -60,7 +60,7 @@ LIBJPEG_A = STATIC_INSTALLDIR + 'lib' + 'libjpeg.a'
|
|
60
60
|
|
61
61
|
|
62
62
|
# Fetch libtiff tarball
|
63
|
-
LIBTIFF_VERSION = ENV['LIBTIFF_VERSION'] || '
|
63
|
+
LIBTIFF_VERSION = ENV['LIBTIFF_VERSION'] || '4.0.1'
|
64
64
|
LIBTIFF_SOURCE_URI = URI( "http://download.osgeo.org/libtiff/tiff-#{LIBTIFF_VERSION}.tar.gz" )
|
65
65
|
LIBTIFF_TARBALL = STATIC_SOURCESDIR + File.basename( LIBTIFF_SOURCE_URI.path )
|
66
66
|
STATIC_LIBTIFF_BUILDDIR = STATIC_BUILDDIR + LIBTIFF_TARBALL.basename(".tar.gz")
|
@@ -69,7 +69,7 @@ LIBTIFF_A = STATIC_INSTALLDIR + 'lib' + 'libtiff.a'
|
|
69
69
|
|
70
70
|
|
71
71
|
# Fetch libfox tarball
|
72
|
-
LIBFOX_VERSION = ENV['LIBFOX_VERSION'] || '1.6.
|
72
|
+
LIBFOX_VERSION = ENV['LIBFOX_VERSION'] || '1.6.45'
|
73
73
|
LIBFOX_SOURCE_URI = URI( "http://ftp.fox-toolkit.org/pub/fox-#{LIBFOX_VERSION}.tar.gz" )
|
74
74
|
LIBFOX_TARBALL = STATIC_SOURCESDIR + File.basename( LIBFOX_SOURCE_URI.path )
|
75
75
|
STATIC_LIBFOX_BUILDDIR = STATIC_BUILDDIR + LIBFOX_TARBALL.basename(".tar.gz")
|
data/doap.rdf
CHANGED
data/ext/fox16/FXRuby.cpp
CHANGED
@@ -269,6 +269,7 @@ void FXRbUnregisterRubyObj(const void* foxObj){
|
|
269
269
|
if(foxObj!=0){
|
270
270
|
FXRubyObjDesc* desc;
|
271
271
|
if(st_lookup(FXRuby_Objects,reinterpret_cast<st_data_t>(const_cast<void*>(foxObj)),reinterpret_cast<st_data_t *>(&desc))!=0){
|
272
|
+
FXTRACE((1,"FXRbUnregisterRubyObj(rubyObj=%d,foxObj=%p)\n",static_cast<int>(desc->obj),foxObj));
|
272
273
|
DATA_PTR(desc->obj)=0;
|
273
274
|
FXFREE(&desc);
|
274
275
|
st_delete(FXRuby_Objects,reinterpret_cast<st_data_t *>(const_cast<void**>(&foxObj)),reinterpret_cast<st_data_t *>(0));
|
data/ext/fox16/core_wrap.cpp
CHANGED
@@ -3458,7 +3458,8 @@ static VALUE _wrap_FXApp_runModalWhileShown(int argc, VALUE *argv, VALUE self) {
|
|
3458
3458
|
static VALUE _wrap_FXApp_runPopup(int argc, VALUE *argv, VALUE self) { FXApp *arg1 = (FXApp *) 0 ;
|
3459
3459
|
FXWindow *arg2 = (FXWindow *) 0 ; FXint result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1))
|
3460
3460
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXApp, 1);
|
3461
|
-
SWIG_ConvertPtr(argv[0], (void **) &arg2, SWIGTYPE_p_FXWindow, 1);
|
3461
|
+
SWIG_ConvertPtr(argv[0], (void **) &arg2, SWIGTYPE_p_FXWindow, 1); { if (!arg2) {
|
3462
|
+
SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } } result = (FXint)(arg1)->runPopup(arg2);
|
3462
3463
|
vresult = INT2NUM(result); return vresult; }
|
3463
3464
|
static VALUE _wrap_FXApp_isModal(int argc, VALUE *argv, VALUE self) { FXApp *arg1 = (FXApp *) 0 ;
|
3464
3465
|
FXWindow *arg2 = (FXWindow *) 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1))
|
@@ -3592,7 +3593,8 @@ static VALUE _wrap_FXApp_readWindow(int argc, VALUE *argv, VALUE self) { FXApp *
|
|
3592
3593
|
SWIG_ConvertPtr(argv[0], (void **) &arg2, SWIGTYPE_p_FXStream, 1); if (arg2 == NULL) rb_raise(rb_eTypeError, "null reference");
|
3593
3594
|
SWIG_ConvertPtr(argv[1], (void **) &arg3, SWIGTYPE_p_p_FXWindow, 1); if (arg3 == NULL) rb_raise(rb_eTypeError, "null reference");
|
3594
3595
|
SWIG_ConvertPtr(argv[2], (void **) &arg4, SWIGTYPE_p_FXWindow, 1);
|
3595
|
-
SWIG_ConvertPtr(argv[3], (void **) &arg5, SWIGTYPE_p_FXWindow, 1);
|
3596
|
+
SWIG_ConvertPtr(argv[3], (void **) &arg5, SWIGTYPE_p_FXWindow, 1); { if (!arg5) {
|
3597
|
+
SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } }
|
3596
3598
|
result = (FXWindow *)FXApp_readWindow(arg1,*arg2,*arg3,arg4,arg5); {
|
3597
3599
|
swig_type_info *ty = SWIG_TypeDynamicCast(SWIGTYPE_p_FXWindow, (void **) &result);
|
3598
3600
|
vresult = FXRbGetRubyObj(result, ty); } return vresult; }
|
@@ -4029,7 +4031,8 @@ static VALUE _wrap_FXTranslator_allocate(VALUE self) {
|
|
4029
4031
|
return vresult; }
|
4030
4032
|
static VALUE _wrap_new_FXTranslator(int argc, VALUE *argv, VALUE self) { FXApp *arg1 = (FXApp *) 0 ; FXTranslator *result;
|
4031
4033
|
if ((argc < 1) || (argc > 1)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
|
4032
|
-
SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_FXApp, 1); {
|
4034
|
+
SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_FXApp, 1); { if (!arg1) {
|
4035
|
+
SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } } { result = (FXTranslator *)new_FXTranslator(arg1);
|
4033
4036
|
DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; }
|
4034
4037
|
static VALUE _wrap_FXTranslator_getApp(int argc, VALUE *argv, VALUE self) { FXTranslator *arg1 = (FXTranslator *) 0 ;
|
4035
4038
|
FXApp *result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0))
|
@@ -4259,8 +4262,10 @@ static VALUE _wrap_FXFileDict_defaultFileBinding(int argc, VALUE *argv, VALUE se
|
|
4259
4262
|
result = (VALUE)FXFileDict_defaultFileBinding(); vresult = result; return vresult; }
|
4260
4263
|
static VALUE _wrap_new_FXFileDict__SWIG_0(int argc, VALUE *argv, VALUE self) { FXApp *arg1 = (FXApp *) 0 ; FXFileDict *result;
|
4261
4264
|
if ((argc < 1) || (argc > 1)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
|
4262
|
-
SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_FXApp, 1); {
|
4263
|
-
|
4265
|
+
SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_FXApp, 1); { if (!arg1) {
|
4266
|
+
SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } } {
|
4267
|
+
result = (FXFileDict *)new_FXFileDict__SWIG_0(arg1); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result);
|
4268
|
+
if(rb_block_given_p()){ rb_yield(self); } } return self; }
|
4264
4269
|
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
4265
4270
|
static VALUE _wrap_FXFileDict_allocate(VALUE self) {
|
4266
4271
|
#else
|
@@ -4275,7 +4280,8 @@ static VALUE _wrap_new_FXFileDict__SWIG_1(int argc, VALUE *argv, VALUE self) { F
|
|
4275
4280
|
FXSettings *arg2 = (FXSettings *) 0 ; FXFileDict *result; if ((argc < 2) || (argc > 2))
|
4276
4281
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc);
|
4277
4282
|
SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_FXApp, 1);
|
4278
|
-
SWIG_ConvertPtr(argv[1], (void **) &arg2, SWIGTYPE_p_FXSettings, 1); {
|
4283
|
+
SWIG_ConvertPtr(argv[1], (void **) &arg2, SWIGTYPE_p_FXSettings, 1); { if (!arg1) {
|
4284
|
+
SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } } {
|
4279
4285
|
result = (FXFileDict *)new_FXFileDict__SWIG_1(arg1,arg2); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result);
|
4280
4286
|
if(rb_block_given_p()){ rb_yield(self); } } return self; }
|
4281
4287
|
static VALUE _wrap_new_FXFileDict(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[2]; int ii; argc = nargs;
|
@@ -4389,6 +4395,7 @@ static VALUE _wrap_new_FXIconDict(int argc, VALUE *argv, VALUE self) { FXApp *ar
|
|
4389
4395
|
FXIconDict *result; SwigValueWrapper<FXString > p2 ; if ((argc < 1) || (argc > 2))
|
4390
4396
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
|
4391
4397
|
SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_FXApp, 1); if (argc > 1) { p2 = to_FXString(argv[1]); arg2 = &p2; } {
|
4398
|
+
if (!arg1) { SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } } {
|
4392
4399
|
result = (FXIconDict *)new_FXIconDict(arg1,(FXString const &)*arg2);
|
4393
4400
|
DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; }
|
4394
4401
|
static VALUE _wrap_FXIconDict_iconSourcee___(int argc, VALUE *argv, VALUE self) { FXIconDict *arg1 = (FXIconDict *) 0 ;
|
@@ -4813,8 +4820,10 @@ static VALUE _wrap_new_FXRecentFiles__SWIG_0(int argc, VALUE *argv, VALUE self)
|
|
4813
4820
|
if(rb_block_given_p()){ rb_yield(self); } } return self; }
|
4814
4821
|
static VALUE _wrap_new_FXRecentFiles__SWIG_1(int argc, VALUE *argv, VALUE self) { FXApp *arg1 = (FXApp *) 0 ;
|
4815
4822
|
FXRecentFiles *result; if ((argc < 1) || (argc > 1)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
|
4816
|
-
SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_FXApp, 1); {
|
4817
|
-
|
4823
|
+
SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_FXApp, 1); { if (!arg1) {
|
4824
|
+
SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } } {
|
4825
|
+
result = (FXRecentFiles *)new_FXRecentFiles__SWIG_1(arg1); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result);
|
4826
|
+
if(rb_block_given_p()){ rb_yield(self); } } return self; }
|
4818
4827
|
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
4819
4828
|
static VALUE _wrap_FXRecentFiles_allocate(VALUE self) {
|
4820
4829
|
#else
|
@@ -4831,6 +4840,7 @@ static VALUE _wrap_new_FXRecentFiles__SWIG_2(int argc, VALUE *argv, VALUE self)
|
|
4831
4840
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc);
|
4832
4841
|
SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_FXApp, 1); p2 = to_FXString(argv[1]); arg2 = &p2; if (argc > 2) {
|
4833
4842
|
SWIG_ConvertPtr(argv[2], (void **) &arg3, SWIGTYPE_p_FXObject, 1); } if (argc > 3) { arg4 = NUM2UINT(argv[3]); } {
|
4843
|
+
if (!arg1) { SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } } {
|
4834
4844
|
result = (FXRecentFiles *)new_FXRecentFiles__SWIG_2(arg1,(FXString const &)*arg2,arg3,arg4);
|
4835
4845
|
DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; }
|
4836
4846
|
static VALUE _wrap_new_FXRecentFiles(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[4]; int ii; argc = nargs;
|
@@ -4978,6 +4988,7 @@ static VALUE _wrap_new_FXCursor__SWIG_0(int argc, VALUE *argv, VALUE self) { FXA
|
|
4978
4988
|
int arg2 = (int) CURSOR_ARROW ; FXCursor *result; if ((argc < 1) || (argc > 2))
|
4979
4989
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
|
4980
4990
|
SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_FXApp, 1); if (argc > 1) { arg2 = (int) NUM2INT(argv[1]); } {
|
4991
|
+
if (!arg1) { SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } } {
|
4981
4992
|
result = (FXCursor *)new_FXCursor__SWIG_0(arg1,(FXStockCursor )arg2);
|
4982
4993
|
DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; }
|
4983
4994
|
static VALUE _wrap_new_FXCursor__SWIG_1(int argc, VALUE *argv, VALUE self) { FXApp *arg1 = (FXApp *) 0 ;
|
@@ -4988,7 +4999,7 @@ static VALUE _wrap_new_FXCursor__SWIG_1(int argc, VALUE *argv, VALUE self) { FXA
|
|
4988
4999
|
SWIG_ConvertPtr(argv[1], (void **) &arg2, SWIGTYPE_p_FXuchar, 1);
|
4989
5000
|
SWIG_ConvertPtr(argv[2], (void **) &arg3, SWIGTYPE_p_FXuchar, 1); if (argc > 3) { arg4 = NUM2INT(argv[3]); }
|
4990
5001
|
if (argc > 4) { arg5 = NUM2INT(argv[4]); } if (argc > 5) { arg6 = NUM2INT(argv[5]); } if (argc > 6) {
|
4991
|
-
arg7 = NUM2INT(argv[6]); } {
|
5002
|
+
arg7 = NUM2INT(argv[6]); } { if (!arg1) { SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } } {
|
4992
5003
|
result = (FXCursor *)new_FXCursor__SWIG_1(arg1,(FXuchar const *)arg2,(FXuchar const *)arg3,arg4,arg5,arg6,arg7);
|
4993
5004
|
DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; }
|
4994
5005
|
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
@@ -5008,7 +5019,8 @@ static VALUE _wrap_new_FXCursor__SWIG_2(int argc, VALUE *argv, VALUE self) { FXA
|
|
5008
5019
|
SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_FXApp, 1);
|
5009
5020
|
SWIG_ConvertPtr(argv[1], (void **) &arg2, SWIGTYPE_p_FXColor, 1); if (argc > 2) { arg3 = NUM2INT(argv[2]); }
|
5010
5021
|
if (argc > 3) { arg4 = NUM2INT(argv[3]); } if (argc > 4) { arg5 = NUM2INT(argv[4]); } if (argc > 5) {
|
5011
|
-
arg6 = NUM2INT(argv[5]); } {
|
5022
|
+
arg6 = NUM2INT(argv[5]); } { if (!arg1) { SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } } {
|
5023
|
+
result = (FXCursor *)new_FXCursor__SWIG_2(arg1,(FXColor const *)arg2,arg3,arg4,arg5,arg6);
|
5012
5024
|
DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; }
|
5013
5025
|
static VALUE _wrap_new_FXCursor(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[7]; int ii; argc = nargs;
|
5014
5026
|
for (ii = 0; (ii < argc) && (ii < 7); ii++) { argv[ii] = args[ii]; } if ((argc >= 1) && (argc <= 2)) { int _v; { void *ptr;
|
@@ -5124,7 +5136,8 @@ static VALUE _wrap_FXCURCursor_allocate(VALUE self) {
|
|
5124
5136
|
static VALUE _wrap_new_FXCURCursor(int argc, VALUE *argv, VALUE self) { FXApp *arg1 = (FXApp *) 0 ; void *arg2 = (void *) 0 ;
|
5125
5137
|
FXCURCursor *result; if ((argc < 2) || (argc > 2)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc);
|
5126
5138
|
SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_FXApp, 1); { if (argv[1] != Qnil) { Check_Type(argv[1], T_STRING);
|
5127
|
-
arg2 = reinterpret_cast<void *>(RSTRING_PTR(argv[1])); } else { arg2 = NULL; } } {
|
5139
|
+
arg2 = reinterpret_cast<void *>(RSTRING_PTR(argv[1])); } else { arg2 = NULL; } } { if (!arg1) {
|
5140
|
+
SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } } {
|
5128
5141
|
result = (FXCURCursor *)new_FXCURCursor(arg1,(void const *)arg2);
|
5129
5142
|
DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; }
|
5130
5143
|
static void
|
@@ -5180,7 +5193,8 @@ static VALUE _wrap_new_FXGIFCursor(int argc, VALUE *argv, VALUE self) { FXApp *a
|
|
5180
5193
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc);
|
5181
5194
|
SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_FXApp, 1); { if (argv[1] != Qnil) { Check_Type(argv[1], T_STRING);
|
5182
5195
|
arg2 = reinterpret_cast<void *>(RSTRING_PTR(argv[1])); } else { arg2 = NULL; } } if (argc > 2) {
|
5183
|
-
arg3 = NUM2INT(argv[2]); } if (argc > 3) { arg4 = NUM2INT(argv[3]); } {
|
5196
|
+
arg3 = NUM2INT(argv[2]); } if (argc > 3) { arg4 = NUM2INT(argv[3]); } { if (!arg1) {
|
5197
|
+
SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } } {
|
5184
5198
|
result = (FXGIFCursor *)new_FXGIFCursor(arg1,(void const *)arg2,arg3,arg4);
|
5185
5199
|
DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; }
|
5186
5200
|
static void
|
@@ -5248,6 +5262,7 @@ static VALUE _wrap_FXDrawable_allocate(VALUE self) {
|
|
5248
5262
|
static VALUE _wrap_new_FXDrawable(int argc, VALUE *argv, VALUE self) { FXApp *arg1 = (FXApp *) 0 ; FXint arg2 ; FXint arg3 ;
|
5249
5263
|
FXDrawable *result; if ((argc < 3) || (argc > 3)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
|
5250
5264
|
SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_FXApp, 1); arg2 = NUM2INT(argv[1]); arg3 = NUM2INT(argv[2]); {
|
5265
|
+
if (!arg1) { SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } } {
|
5251
5266
|
result = (FXDrawable *)new_FXDrawable(arg1,arg2,arg3); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result);
|
5252
5267
|
if(rb_block_given_p()){ rb_yield(self); } } return self; }
|
5253
5268
|
static VALUE _wrap_FXDrawable_getWidth(int argc, VALUE *argv, VALUE self) { FXDrawable *arg1 = (FXDrawable *) 0 ; FXint result;
|
@@ -5311,8 +5326,9 @@ static VALUE _wrap_new_FXVisual(int argc, VALUE *argv, VALUE self) { FXApp *arg1
|
|
5311
5326
|
FXuint arg3 = (FXuint) 32 ; FXVisual *result; if ((argc < 2) || (argc > 3))
|
5312
5327
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc);
|
5313
5328
|
SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_FXApp, 1); arg2 = NUM2UINT(argv[1]); if (argc > 2) {
|
5314
|
-
arg3 = NUM2UINT(argv[2]); } {
|
5315
|
-
DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result);
|
5329
|
+
arg3 = NUM2UINT(argv[2]); } { if (!arg1) { SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } } {
|
5330
|
+
result = (FXVisual *)new_FXVisual(arg1,arg2,arg3); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result);
|
5331
|
+
if(rb_block_given_p()){ rb_yield(self); } } return self; }
|
5316
5332
|
static VALUE _wrap_FXVisual_visualType(int argc, VALUE *argv, VALUE self) { FXVisual *arg1 = (FXVisual *) 0 ; int result;
|
5317
5333
|
VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
|
5318
5334
|
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXVisual, 1); result = (int)((FXVisual const *)arg1)->getType();
|
@@ -5465,7 +5481,8 @@ free_FXFontDesc(FXFontDesc *arg1) {
|
|
5465
5481
|
static VALUE _wrap_new_FXFont__SWIG_0(int argc, VALUE *argv, VALUE self) { FXApp *arg1 = (FXApp *) 0 ; FXString *arg2 = 0 ;
|
5466
5482
|
FXFont *result; SwigValueWrapper<FXString > p2 ; if ((argc < 2) || (argc > 2))
|
5467
5483
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc);
|
5468
|
-
SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_FXApp, 1); p2 = to_FXString(argv[1]); arg2 = &p2; {
|
5484
|
+
SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_FXApp, 1); p2 = to_FXString(argv[1]); arg2 = &p2; { if (!arg1) {
|
5485
|
+
SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } } {
|
5469
5486
|
result = (FXFont *)new_FXFont__SWIG_0(arg1,(FXString const &)*arg2);
|
5470
5487
|
DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; }
|
5471
5488
|
static VALUE _wrap_new_FXFont__SWIG_1(int argc, VALUE *argv, VALUE self) { FXApp *arg1 = (FXApp *) 0 ; FXString *arg2 = 0 ;
|
@@ -5476,7 +5493,7 @@ static VALUE _wrap_new_FXFont__SWIG_1(int argc, VALUE *argv, VALUE self) { FXApp
|
|
5476
5493
|
SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_FXApp, 1); p2 = to_FXString(argv[1]); arg2 = &p2;
|
5477
5494
|
arg3 = NUM2UINT(argv[2]); if (argc > 3) { arg4 = NUM2UINT(argv[3]); } if (argc > 4) { arg5 = NUM2UINT(argv[4]); }
|
5478
5495
|
if (argc > 5) { arg6 = NUM2UINT(argv[5]); } if (argc > 6) { arg7 = NUM2UINT(argv[6]); } if (argc > 7) {
|
5479
|
-
arg8 = NUM2UINT(argv[7]); } {
|
5496
|
+
arg8 = NUM2UINT(argv[7]); } { if (!arg1) { SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } } {
|
5480
5497
|
result = (FXFont *)new_FXFont__SWIG_1(arg1,(FXString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8);
|
5481
5498
|
DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; }
|
5482
5499
|
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
@@ -5493,7 +5510,8 @@ static VALUE _wrap_new_FXFont__SWIG_2(int argc, VALUE *argv, VALUE self) { FXApp
|
|
5493
5510
|
FXFont *result; if ((argc < 2) || (argc > 2)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc);
|
5494
5511
|
SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_FXApp, 1);
|
5495
5512
|
SWIG_ConvertPtr(argv[1], (void **) &arg2, SWIGTYPE_p_FXFontDesc, 1); if (arg2 == NULL) rb_raise(rb_eTypeError, "null reference");
|
5496
|
-
{
|
5513
|
+
{ if (!arg1) { SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } } {
|
5514
|
+
result = (FXFont *)new_FXFont__SWIG_2(arg1,(FXFontDesc const &)*arg2);
|
5497
5515
|
DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; }
|
5498
5516
|
static VALUE _wrap_new_FXFont(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[8]; int ii; argc = nargs;
|
5499
5517
|
for (ii = 0; (ii < argc) && (ii < 8); ii++) { argv[ii] = args[ii]; } if (argc == 2) { int _v; { void *ptr;
|
@@ -6055,15 +6073,18 @@ static VALUE _wrap_new_FXWindow__SWIG_0(int argc, VALUE *argv, VALUE self) { FXC
|
|
6055
6073
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
|
6056
6074
|
SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_FXComposite, 1); if (argc > 1) { arg2 = NUM2UINT(argv[1]); }
|
6057
6075
|
if (argc > 2) { arg3 = NUM2INT(argv[2]); } if (argc > 3) { arg4 = NUM2INT(argv[3]); } if (argc > 4) {
|
6058
|
-
arg5 = NUM2INT(argv[4]); } if (argc > 5) { arg6 = NUM2INT(argv[5]); } {
|
6076
|
+
arg5 = NUM2INT(argv[4]); } if (argc > 5) { arg6 = NUM2INT(argv[5]); } { if (!arg1) {
|
6077
|
+
SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } } {
|
6059
6078
|
result = (FXWindow *)new_FXWindow__SWIG_0(arg1,arg2,arg3,arg4,arg5,arg6);
|
6060
6079
|
DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; }
|
6061
6080
|
static VALUE _wrap_new_FXWindow__SWIG_1(int argc, VALUE *argv, VALUE self) { FXApp *arg1 = (FXApp *) 0 ;
|
6062
6081
|
FXVisual *arg2 = (FXVisual *) 0 ; FXWindow *result; if ((argc < 2) || (argc > 2))
|
6063
6082
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc);
|
6064
6083
|
SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_FXApp, 1);
|
6065
|
-
SWIG_ConvertPtr(argv[1], (void **) &arg2, SWIGTYPE_p_FXVisual, 1); {
|
6066
|
-
|
6084
|
+
SWIG_ConvertPtr(argv[1], (void **) &arg2, SWIGTYPE_p_FXVisual, 1); { if (!arg1) {
|
6085
|
+
SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } } {
|
6086
|
+
result = (FXWindow *)new_FXWindow__SWIG_1(arg1,arg2); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result);
|
6087
|
+
if(rb_block_given_p()){ rb_yield(self); } } return self; }
|
6067
6088
|
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
6068
6089
|
static VALUE _wrap_FXWindow_allocate(VALUE self) {
|
6069
6090
|
#else
|
@@ -6079,7 +6100,9 @@ static VALUE _wrap_new_FXWindow__SWIG_2(int argc, VALUE *argv, VALUE self) { FXA
|
|
6079
6100
|
if ((argc < 7) || (argc > 7)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 7)",argc);
|
6080
6101
|
SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_FXApp, 1);
|
6081
6102
|
SWIG_ConvertPtr(argv[1], (void **) &arg2, SWIGTYPE_p_FXWindow, 1); arg3 = NUM2UINT(argv[2]); arg4 = NUM2INT(argv[3]);
|
6082
|
-
arg5 = NUM2INT(argv[4]); arg6 = NUM2INT(argv[5]); arg7 = NUM2INT(argv[6]); {
|
6103
|
+
arg5 = NUM2INT(argv[4]); arg6 = NUM2INT(argv[5]); arg7 = NUM2INT(argv[6]); { if (!arg1) {
|
6104
|
+
SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } } { if (!arg2) {
|
6105
|
+
SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } } {
|
6083
6106
|
result = (FXWindow *)new_FXWindow__SWIG_2(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
|
6084
6107
|
DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; }
|
6085
6108
|
static VALUE _wrap_new_FXWindow(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[7]; int ii; argc = nargs;
|
@@ -6795,7 +6818,8 @@ static VALUE _wrap_new_FXFrame(int argc, VALUE *argv, VALUE self) { FXComposite
|
|
6795
6818
|
if (argc > 2) { arg3 = NUM2INT(argv[2]); } if (argc > 3) { arg4 = NUM2INT(argv[3]); } if (argc > 4) {
|
6796
6819
|
arg5 = NUM2INT(argv[4]); } if (argc > 5) { arg6 = NUM2INT(argv[5]); } if (argc > 6) { arg7 = NUM2INT(argv[6]); }
|
6797
6820
|
if (argc > 7) { arg8 = NUM2INT(argv[7]); } if (argc > 8) { arg9 = NUM2INT(argv[8]); } if (argc > 9) {
|
6798
|
-
arg10 = NUM2INT(argv[9]); } {
|
6821
|
+
arg10 = NUM2INT(argv[9]); } { if (!arg1) { SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } } {
|
6822
|
+
result = (FXFrame *)new_FXFrame(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
|
6799
6823
|
DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; }
|
6800
6824
|
static VALUE _wrap_FXFrame_setFrameStyle(int argc, VALUE *argv, VALUE self) { FXFrame *arg1 = (FXFrame *) 0 ; FXuint arg2 ;
|
6801
6825
|
if ((argc < 1) || (argc > 1)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
|
@@ -7081,7 +7105,8 @@ static VALUE _wrap_new_FXComposite(int argc, VALUE *argv, VALUE self) { FXCompos
|
|
7081
7105
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
|
7082
7106
|
SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_FXComposite, 1); if (argc > 1) { arg2 = NUM2UINT(argv[1]); }
|
7083
7107
|
if (argc > 2) { arg3 = NUM2INT(argv[2]); } if (argc > 3) { arg4 = NUM2INT(argv[3]); } if (argc > 4) {
|
7084
|
-
arg5 = NUM2INT(argv[4]); } if (argc > 5) { arg6 = NUM2INT(argv[5]); } {
|
7108
|
+
arg5 = NUM2INT(argv[4]); } if (argc > 5) { arg6 = NUM2INT(argv[5]); } { if (!arg1) {
|
7109
|
+
SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } } {
|
7085
7110
|
result = (FXComposite *)new_FXComposite(arg1,arg2,arg3,arg4,arg5,arg6);
|
7086
7111
|
DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; }
|
7087
7112
|
static VALUE _wrap_FXComposite_maxChildWidth(int argc, VALUE *argv, VALUE self) { FXComposite *arg1 = (FXComposite *) 0 ;
|
@@ -7282,8 +7307,10 @@ static VALUE _wrap_new_FXRootWindow(int argc, VALUE *argv, VALUE self) { FXApp *
|
|
7282
7307
|
FXVisual *arg2 = (FXVisual *) 0 ; FXRootWindow *result; if ((argc < 2) || (argc > 2))
|
7283
7308
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc);
|
7284
7309
|
SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_FXApp, 1);
|
7285
|
-
SWIG_ConvertPtr(argv[1], (void **) &arg2, SWIGTYPE_p_FXVisual, 1); {
|
7286
|
-
|
7310
|
+
SWIG_ConvertPtr(argv[1], (void **) &arg2, SWIGTYPE_p_FXVisual, 1); { if (!arg1) {
|
7311
|
+
SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } } {
|
7312
|
+
result = (FXRootWindow *)new_FXRootWindow(arg1,arg2); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result);
|
7313
|
+
if(rb_block_given_p()){ rb_yield(self); } } return self; }
|
7287
7314
|
static void
|
7288
7315
|
free_FXRootWindow(FXRootWindow *arg1) {
|
7289
7316
|
delete arg1;
|
@@ -7498,7 +7525,8 @@ static VALUE _wrap_new_FXShell__SWIG_0(int argc, VALUE *argv, VALUE self) { FXAp
|
|
7498
7525
|
FXint arg3 ; FXint arg4 ; FXint arg5 ; FXint arg6 ; FXShell *result; if ((argc < 6) || (argc > 6))
|
7499
7526
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 6)",argc);
|
7500
7527
|
SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_FXApp, 1); arg2 = NUM2UINT(argv[1]); arg3 = NUM2INT(argv[2]);
|
7501
|
-
arg4 = NUM2INT(argv[3]); arg5 = NUM2INT(argv[4]); arg6 = NUM2INT(argv[5]); {
|
7528
|
+
arg4 = NUM2INT(argv[3]); arg5 = NUM2INT(argv[4]); arg6 = NUM2INT(argv[5]); { if (!arg1) {
|
7529
|
+
SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } } {
|
7502
7530
|
result = (FXShell *)new_FXShell__SWIG_0(arg1,arg2,arg3,arg4,arg5,arg6);
|
7503
7531
|
DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; }
|
7504
7532
|
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
@@ -7515,7 +7543,8 @@ static VALUE _wrap_new_FXShell__SWIG_1(int argc, VALUE *argv, VALUE self) { FXWi
|
|
7515
7543
|
FXint arg3 ; FXint arg4 ; FXint arg5 ; FXint arg6 ; FXShell *result; if ((argc < 6) || (argc > 6))
|
7516
7544
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 6)",argc);
|
7517
7545
|
SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_FXWindow, 1); arg2 = NUM2UINT(argv[1]); arg3 = NUM2INT(argv[2]);
|
7518
|
-
arg4 = NUM2INT(argv[3]); arg5 = NUM2INT(argv[4]); arg6 = NUM2INT(argv[5]); {
|
7546
|
+
arg4 = NUM2INT(argv[3]); arg5 = NUM2INT(argv[4]); arg6 = NUM2INT(argv[5]); { if (!arg1) {
|
7547
|
+
SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } } {
|
7519
7548
|
result = (FXShell *)new_FXShell__SWIG_1(arg1,arg2,arg3,arg4,arg5,arg6);
|
7520
7549
|
DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; }
|
7521
7550
|
static VALUE _wrap_new_FXShell(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[6]; int ii; argc = nargs;
|
@@ -7826,7 +7855,8 @@ static VALUE _wrap_new_FXPopup(int argc, VALUE *argv, VALUE self) { FXWindow *ar
|
|
7826
7855
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
|
7827
7856
|
SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_FXWindow, 1); if (argc > 1) { arg2 = NUM2UINT(argv[1]); }
|
7828
7857
|
if (argc > 2) { arg3 = NUM2INT(argv[2]); } if (argc > 3) { arg4 = NUM2INT(argv[3]); } if (argc > 4) {
|
7829
|
-
arg5 = NUM2INT(argv[4]); } if (argc > 5) { arg6 = NUM2INT(argv[5]); } {
|
7858
|
+
arg5 = NUM2INT(argv[4]); } if (argc > 5) { arg6 = NUM2INT(argv[5]); } { if (!arg1) {
|
7859
|
+
SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } } {
|
7830
7860
|
result = (FXPopup *)new_FXPopup(arg1,arg2,arg3,arg4,arg5,arg6);
|
7831
7861
|
DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; }
|
7832
7862
|
static VALUE _wrap_FXPopup_getPrevActive(int argc, VALUE *argv, VALUE self) { FXPopup *arg1 = (FXPopup *) 0 ; FXPopup *result;
|
@@ -8182,7 +8212,7 @@ static VALUE _wrap_new_FXTopWindow__SWIG_0(int argc, VALUE *argv, VALUE self) {
|
|
8182
8212
|
SWIG_ConvertPtr(argv[3], (void **) &arg4, SWIGTYPE_p_FXIcon, 1); arg5 = NUM2UINT(argv[4]); arg6 = NUM2INT(argv[5]);
|
8183
8213
|
arg7 = NUM2INT(argv[6]); arg8 = NUM2INT(argv[7]); arg9 = NUM2INT(argv[8]); arg10 = NUM2INT(argv[9]);
|
8184
8214
|
arg11 = NUM2INT(argv[10]); arg12 = NUM2INT(argv[11]); arg13 = NUM2INT(argv[12]); arg14 = NUM2INT(argv[13]);
|
8185
|
-
arg15 = NUM2INT(argv[14]); {
|
8215
|
+
arg15 = NUM2INT(argv[14]); { if (!arg1) { SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } } {
|
8186
8216
|
result = (FXTopWindow *)new_FXTopWindow__SWIG_0(arg1,(FXString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14,arg15);
|
8187
8217
|
DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; }
|
8188
8218
|
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
@@ -8205,7 +8235,7 @@ static VALUE _wrap_new_FXTopWindow__SWIG_1(int argc, VALUE *argv, VALUE self) {
|
|
8205
8235
|
SWIG_ConvertPtr(argv[3], (void **) &arg4, SWIGTYPE_p_FXIcon, 1); arg5 = NUM2UINT(argv[4]); arg6 = NUM2INT(argv[5]);
|
8206
8236
|
arg7 = NUM2INT(argv[6]); arg8 = NUM2INT(argv[7]); arg9 = NUM2INT(argv[8]); arg10 = NUM2INT(argv[9]);
|
8207
8237
|
arg11 = NUM2INT(argv[10]); arg12 = NUM2INT(argv[11]); arg13 = NUM2INT(argv[12]); arg14 = NUM2INT(argv[13]);
|
8208
|
-
arg15 = NUM2INT(argv[14]); {
|
8238
|
+
arg15 = NUM2INT(argv[14]); { if (!arg1) { SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } } {
|
8209
8239
|
result = (FXTopWindow *)new_FXTopWindow__SWIG_1(arg1,(FXString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14,arg15);
|
8210
8240
|
DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; }
|
8211
8241
|
static VALUE _wrap_new_FXTopWindow(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[15]; int ii; argc = nargs;
|
@@ -8834,7 +8864,8 @@ static VALUE _wrap_new_FXSplashWindow__SWIG_0(int argc, VALUE *argv, VALUE self)
|
|
8834
8864
|
if ((argc < 2) || (argc > 4)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc);
|
8835
8865
|
SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_FXApp, 1);
|
8836
8866
|
SWIG_ConvertPtr(argv[1], (void **) &arg2, SWIGTYPE_p_FXIcon, 1); if (argc > 2) { arg3 = NUM2UINT(argv[2]); }
|
8837
|
-
if (argc > 3) { arg4 = NUM2UINT(argv[3]); } {
|
8867
|
+
if (argc > 3) { arg4 = NUM2UINT(argv[3]); } { if (!arg1) { SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } }
|
8868
|
+
{ result = (FXSplashWindow *)new FXSplashWindow(arg1,arg2,arg3,arg4);
|
8838
8869
|
DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; }
|
8839
8870
|
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
8840
8871
|
static VALUE _wrap_FXSplashWindow_allocate(VALUE self) {
|
@@ -8851,7 +8882,8 @@ static VALUE _wrap_new_FXSplashWindow__SWIG_1(int argc, VALUE *argv, VALUE self)
|
|
8851
8882
|
if ((argc < 2) || (argc > 4)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc);
|
8852
8883
|
SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_FXWindow, 1);
|
8853
8884
|
SWIG_ConvertPtr(argv[1], (void **) &arg2, SWIGTYPE_p_FXIcon, 1); if (argc > 2) { arg3 = NUM2UINT(argv[2]); }
|
8854
|
-
if (argc > 3) { arg4 = NUM2UINT(argv[3]); } {
|
8885
|
+
if (argc > 3) { arg4 = NUM2UINT(argv[3]); } { if (!arg1) { SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } }
|
8886
|
+
{ result = (FXSplashWindow *)new FXSplashWindow(arg1,arg2,arg3,arg4);
|
8855
8887
|
DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; }
|
8856
8888
|
static VALUE _wrap_new_FXSplashWindow(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[4]; int ii; argc = nargs;
|
8857
8889
|
for (ii = 0; (ii < argc) && (ii < 4); ii++) { argv[ii] = args[ii]; } if ((argc >= 2) && (argc <= 4)) { int _v; { void *ptr;
|
data/ext/fox16/dc_wrap.cpp
CHANGED
@@ -833,7 +833,8 @@ static VALUE _wrap_FXDC_allocate(VALUE self) {
|
|
833
833
|
return vresult; }
|
834
834
|
static VALUE _wrap_new_FXDC(int argc, VALUE *argv, VALUE self) { FXApp *arg1 = (FXApp *) 0 ; FXDC *result;
|
835
835
|
if ((argc < 1) || (argc > 1)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
|
836
|
-
SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_FXApp, 1); {
|
836
|
+
SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_FXApp, 1); { if (!arg1) {
|
837
|
+
SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } } { result = (FXDC *)new_FXDC(arg1);
|
837
838
|
DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; }
|
838
839
|
static VALUE _wrap_FXDC_getApp(int argc, VALUE *argv, VALUE self) { FXDC *arg1 = (FXDC *) 0 ; FXApp *result;
|
839
840
|
VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
|
@@ -1961,7 +1962,8 @@ static VALUE _wrap_FXDCPrint_allocate(VALUE self) {
|
|
1961
1962
|
return vresult; }
|
1962
1963
|
static VALUE _wrap_new_FXDCPrint(int argc, VALUE *argv, VALUE self) { FXApp *arg1 = (FXApp *) 0 ; FXDCPrint *result;
|
1963
1964
|
if ((argc < 1) || (argc > 1)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
|
1964
|
-
SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_FXApp, 1); {
|
1965
|
+
SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_FXApp, 1); { if (!arg1) {
|
1966
|
+
SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } } { result = (FXDCPrint *)new_FXDCPrint(arg1);
|
1965
1967
|
DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; }
|
1966
1968
|
static VALUE _wrap_FXDCPrint_beginPrint(int argc, VALUE *argv, VALUE self) { FXDCPrint *arg1 = (FXDCPrint *) 0 ;
|
1967
1969
|
FXPrinter *arg2 = 0 ; FXbool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1))
|