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/ext/fox16/ui_wrap.cpp
CHANGED
@@ -1221,7 +1221,8 @@ static VALUE _wrap_new_FX7Segment(int argc, VALUE *argv, VALUE self) { FXComposi
|
|
1221
1221
|
arg3 = NUM2UINT(argv[2]); } if (argc > 3) { arg4 = NUM2INT(argv[3]); } if (argc > 4) { arg5 = NUM2INT(argv[4]); }
|
1222
1222
|
if (argc > 5) { arg6 = NUM2INT(argv[5]); } if (argc > 6) { arg7 = NUM2INT(argv[6]); } if (argc > 7) {
|
1223
1223
|
arg8 = NUM2INT(argv[7]); } if (argc > 8) { arg9 = NUM2INT(argv[8]); } if (argc > 9) { arg10 = NUM2INT(argv[9]); }
|
1224
|
-
if (argc > 10) { arg11 = NUM2INT(argv[10]); } {
|
1224
|
+
if (argc > 10) { arg11 = NUM2INT(argv[10]); } { if (!arg1) { SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); }
|
1225
|
+
} {
|
1225
1226
|
result = (FX7Segment *)new_FX7Segment(arg1,(FXString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11);
|
1226
1227
|
DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; }
|
1227
1228
|
static VALUE _wrap_FX7Segment_texte___(int argc, VALUE *argv, VALUE self) { FX7Segment *arg1 = (FX7Segment *) 0 ;
|
@@ -1594,7 +1595,8 @@ static VALUE _wrap_new_FXSpinner(int argc, VALUE *argv, VALUE self) { FXComposit
|
|
1594
1595
|
if (argc > 4) { arg5 = NUM2UINT(argv[4]); } if (argc > 5) { arg6 = NUM2INT(argv[5]); } if (argc > 6) {
|
1595
1596
|
arg7 = NUM2INT(argv[6]); } if (argc > 7) { arg8 = NUM2INT(argv[7]); } if (argc > 8) { arg9 = NUM2INT(argv[8]); }
|
1596
1597
|
if (argc > 9) { arg10 = NUM2INT(argv[9]); } if (argc > 10) { arg11 = NUM2INT(argv[10]); } if (argc > 11) {
|
1597
|
-
arg12 = NUM2INT(argv[11]); } if (argc > 12) { arg13 = NUM2INT(argv[12]); } {
|
1598
|
+
arg12 = NUM2INT(argv[11]); } if (argc > 12) { arg13 = NUM2INT(argv[12]); } { if (!arg1) {
|
1599
|
+
SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } } {
|
1598
1600
|
result = (FXSpinner *)new_FXSpinner(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13);
|
1599
1601
|
DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; }
|
1600
1602
|
static VALUE _wrap_FXSpinner_increment(int argc, VALUE *argv, VALUE self) { FXSpinner *arg1 = (FXSpinner *) 0 ;
|
@@ -2087,7 +2089,8 @@ static VALUE _wrap_new_FXRealSpinner(int argc, VALUE *argv, VALUE self) { FXComp
|
|
2087
2089
|
if (argc > 4) { arg5 = NUM2UINT(argv[4]); } if (argc > 5) { arg6 = NUM2INT(argv[5]); } if (argc > 6) {
|
2088
2090
|
arg7 = NUM2INT(argv[6]); } if (argc > 7) { arg8 = NUM2INT(argv[7]); } if (argc > 8) { arg9 = NUM2INT(argv[8]); }
|
2089
2091
|
if (argc > 9) { arg10 = NUM2INT(argv[9]); } if (argc > 10) { arg11 = NUM2INT(argv[10]); } if (argc > 11) {
|
2090
|
-
arg12 = NUM2INT(argv[11]); } if (argc > 12) { arg13 = NUM2INT(argv[12]); } {
|
2092
|
+
arg12 = NUM2INT(argv[11]); } if (argc > 12) { arg13 = NUM2INT(argv[12]); } { if (!arg1) {
|
2093
|
+
SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } } {
|
2091
2094
|
result = (FXRealSpinner *)new_FXRealSpinner(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13);
|
2092
2095
|
DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; }
|
2093
2096
|
static VALUE _wrap_FXRealSpinner_increment(int argc, VALUE *argv, VALUE self) { FXRealSpinner *arg1 = (FXRealSpinner *) 0 ;
|
@@ -2484,6 +2487,7 @@ static VALUE _wrap_new_FXCanvas(int argc, VALUE *argv, VALUE self) { FXComposite
|
|
2484
2487
|
SWIG_ConvertPtr(argv[1], (void **) &arg2, SWIGTYPE_p_FXObject, 1); } if (argc > 2) { arg3 = NUM2UINT(argv[2]); }
|
2485
2488
|
if (argc > 3) { arg4 = NUM2UINT(argv[3]); } if (argc > 4) { arg5 = NUM2INT(argv[4]); } if (argc > 5) {
|
2486
2489
|
arg6 = NUM2INT(argv[5]); } if (argc > 6) { arg7 = NUM2INT(argv[6]); } if (argc > 7) { arg8 = NUM2INT(argv[7]); } {
|
2490
|
+
if (!arg1) { SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } } {
|
2487
2491
|
result = (FXCanvas *)new_FXCanvas(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
|
2488
2492
|
DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; }
|
2489
2493
|
static void
|
@@ -2706,7 +2710,8 @@ static VALUE _wrap_new_FXToolTip(int argc, VALUE *argv, VALUE self) { FXApp *arg
|
|
2706
2710
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
|
2707
2711
|
SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_FXApp, 1); if (argc > 1) { arg2 = NUM2UINT(argv[1]); } if (argc > 2) {
|
2708
2712
|
arg3 = NUM2INT(argv[2]); } if (argc > 3) { arg4 = NUM2INT(argv[3]); } if (argc > 4) { arg5 = NUM2INT(argv[4]); }
|
2709
|
-
if (argc > 5) { arg6 = NUM2INT(argv[5]); } {
|
2713
|
+
if (argc > 5) { arg6 = NUM2INT(argv[5]); } { if (!arg1) { SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } }
|
2714
|
+
{ result = (FXToolTip *)new_FXToolTip(arg1,arg2,arg3,arg4,arg5,arg6);
|
2710
2715
|
DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; }
|
2711
2716
|
static VALUE _wrap_FXToolTip_setText(int argc, VALUE *argv, VALUE self) { FXToolTip *arg1 = (FXToolTip *) 0 ;
|
2712
2717
|
FXString *arg2 = 0 ; SwigValueWrapper<FXString > p2 ; if ((argc < 1) || (argc > 1))
|
@@ -3012,7 +3017,7 @@ static VALUE _wrap_new_FXDockBar__SWIG_0(int argc, VALUE *argv, VALUE self) { FX
|
|
3012
3017
|
arg6 = NUM2INT(argv[5]); } if (argc > 6) { arg7 = NUM2INT(argv[6]); } if (argc > 7) { arg8 = NUM2INT(argv[7]); }
|
3013
3018
|
if (argc > 8) { arg9 = NUM2INT(argv[8]); } if (argc > 9) { arg10 = NUM2INT(argv[9]); } if (argc > 10) {
|
3014
3019
|
arg11 = NUM2INT(argv[10]); } if (argc > 11) { arg12 = NUM2INT(argv[11]); } if (argc > 12) {
|
3015
|
-
arg13 = NUM2INT(argv[12]); } {
|
3020
|
+
arg13 = NUM2INT(argv[12]); } { if (!arg1) { SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } } {
|
3016
3021
|
result = (FXDockBar *)new_FXDockBar__SWIG_0(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13);
|
3017
3022
|
DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; }
|
3018
3023
|
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
@@ -3034,7 +3039,8 @@ static VALUE _wrap_new_FXDockBar__SWIG_1(int argc, VALUE *argv, VALUE self) { FX
|
|
3034
3039
|
arg3 = NUM2INT(argv[2]); } if (argc > 3) { arg4 = NUM2INT(argv[3]); } if (argc > 4) { arg5 = NUM2INT(argv[4]); }
|
3035
3040
|
if (argc > 5) { arg6 = NUM2INT(argv[5]); } if (argc > 6) { arg7 = NUM2INT(argv[6]); } if (argc > 7) {
|
3036
3041
|
arg8 = NUM2INT(argv[7]); } if (argc > 8) { arg9 = NUM2INT(argv[8]); } if (argc > 9) { arg10 = NUM2INT(argv[9]); }
|
3037
|
-
if (argc > 10) { arg11 = NUM2INT(argv[10]); } if (argc > 11) { arg12 = NUM2INT(argv[11]); } {
|
3042
|
+
if (argc > 10) { arg11 = NUM2INT(argv[10]); } if (argc > 11) { arg12 = NUM2INT(argv[11]); } { if (!arg1) {
|
3043
|
+
SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } } {
|
3038
3044
|
result = (FXDockBar *)new_FXDockBar__SWIG_1(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
|
3039
3045
|
DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; }
|
3040
3046
|
static VALUE _wrap_new_FXDockBar(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[13]; int ii; argc = nargs;
|
@@ -3381,7 +3387,7 @@ static VALUE _wrap_new_FXToolBar__SWIG_0(int argc, VALUE *argv, VALUE self) { FX
|
|
3381
3387
|
arg6 = NUM2INT(argv[5]); } if (argc > 6) { arg7 = NUM2INT(argv[6]); } if (argc > 7) { arg8 = NUM2INT(argv[7]); }
|
3382
3388
|
if (argc > 8) { arg9 = NUM2INT(argv[8]); } if (argc > 9) { arg10 = NUM2INT(argv[9]); } if (argc > 10) {
|
3383
3389
|
arg11 = NUM2INT(argv[10]); } if (argc > 11) { arg12 = NUM2INT(argv[11]); } if (argc > 12) {
|
3384
|
-
arg13 = NUM2INT(argv[12]); } {
|
3390
|
+
arg13 = NUM2INT(argv[12]); } { if (!arg1) { SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } } {
|
3385
3391
|
result = (FXToolBar *)new_FXToolBar__SWIG_0(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13);
|
3386
3392
|
DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; }
|
3387
3393
|
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
@@ -3404,7 +3410,8 @@ static VALUE _wrap_new_FXToolBar__SWIG_1(int argc, VALUE *argv, VALUE self) { FX
|
|
3404
3410
|
arg5 = NUM2INT(argv[4]); } if (argc > 5) { arg6 = NUM2INT(argv[5]); } if (argc > 6) { arg7 = NUM2INT(argv[6]); }
|
3405
3411
|
if (argc > 7) { arg8 = NUM2INT(argv[7]); } if (argc > 8) { arg9 = NUM2INT(argv[8]); } if (argc > 9) {
|
3406
3412
|
arg10 = NUM2INT(argv[9]); } if (argc > 10) { arg11 = NUM2INT(argv[10]); } if (argc > 11) { arg12 = NUM2INT(argv[11]); }
|
3407
|
-
{
|
3413
|
+
{ if (!arg1) { SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } } {
|
3414
|
+
result = (FXToolBar *)new_FXToolBar__SWIG_1(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
|
3408
3415
|
DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; }
|
3409
3416
|
static VALUE _wrap_new_FXToolBar(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[13]; int ii; argc = nargs;
|
3410
3417
|
for (ii = 0; (ii < argc) && (ii < 13); ii++) { argv[ii] = args[ii]; } if ((argc >= 1) && (argc <= 12)) { int _v; {
|
@@ -3781,7 +3788,8 @@ static VALUE _wrap_new_FXTabBar(int argc, VALUE *argv, VALUE self) { FXComposite
|
|
3781
3788
|
if (argc > 3) { arg4 = NUM2UINT(argv[3]); } if (argc > 4) { arg5 = NUM2INT(argv[4]); } if (argc > 5) {
|
3782
3789
|
arg6 = NUM2INT(argv[5]); } if (argc > 6) { arg7 = NUM2INT(argv[6]); } if (argc > 7) { arg8 = NUM2INT(argv[7]); }
|
3783
3790
|
if (argc > 8) { arg9 = NUM2INT(argv[8]); } if (argc > 9) { arg10 = NUM2INT(argv[9]); } if (argc > 10) {
|
3784
|
-
arg11 = NUM2INT(argv[10]); } if (argc > 11) { arg12 = NUM2INT(argv[11]); } {
|
3791
|
+
arg11 = NUM2INT(argv[10]); } if (argc > 11) { arg12 = NUM2INT(argv[11]); } { if (!arg1) {
|
3792
|
+
SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } } {
|
3785
3793
|
result = (FXTabBar *)new_FXTabBar(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
|
3786
3794
|
DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; }
|
3787
3795
|
static VALUE _wrap_FXTabBar_getCurrent(int argc, VALUE *argv, VALUE self) { FXTabBar *arg1 = (FXTabBar *) 0 ; FXint result;
|
@@ -4036,7 +4044,8 @@ static VALUE _wrap_new_FXTabBook(int argc, VALUE *argv, VALUE self) { FXComposit
|
|
4036
4044
|
if (argc > 3) { arg4 = NUM2UINT(argv[3]); } if (argc > 4) { arg5 = NUM2INT(argv[4]); } if (argc > 5) {
|
4037
4045
|
arg6 = NUM2INT(argv[5]); } if (argc > 6) { arg7 = NUM2INT(argv[6]); } if (argc > 7) { arg8 = NUM2INT(argv[7]); }
|
4038
4046
|
if (argc > 8) { arg9 = NUM2INT(argv[8]); } if (argc > 9) { arg10 = NUM2INT(argv[9]); } if (argc > 10) {
|
4039
|
-
arg11 = NUM2INT(argv[10]); } if (argc > 11) { arg12 = NUM2INT(argv[11]); } {
|
4047
|
+
arg11 = NUM2INT(argv[10]); } if (argc > 11) { arg12 = NUM2INT(argv[11]); } { if (!arg1) {
|
4048
|
+
SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } } {
|
4040
4049
|
result = (FXTabBook *)new_FXTabBook(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
|
4041
4050
|
DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; }
|
4042
4051
|
static void
|
@@ -4337,6 +4346,7 @@ static VALUE _wrap_new_FXScrollBar(int argc, VALUE *argv, VALUE self) { FXCompos
|
|
4337
4346
|
SWIG_ConvertPtr(argv[1], (void **) &arg2, SWIGTYPE_p_FXObject, 1); } if (argc > 2) { arg3 = NUM2UINT(argv[2]); }
|
4338
4347
|
if (argc > 3) { arg4 = NUM2UINT(argv[3]); } if (argc > 4) { arg5 = NUM2INT(argv[4]); } if (argc > 5) {
|
4339
4348
|
arg6 = NUM2INT(argv[5]); } if (argc > 6) { arg7 = NUM2INT(argv[6]); } if (argc > 7) { arg8 = NUM2INT(argv[7]); } {
|
4349
|
+
if (!arg1) { SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } } {
|
4340
4350
|
result = (FXScrollBar *)new_FXScrollBar(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
|
4341
4351
|
DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; }
|
4342
4352
|
static VALUE _wrap_FXScrollBar_setRange(int argc, VALUE *argv, VALUE self) { FXScrollBar *arg1 = (FXScrollBar *) 0 ;
|
@@ -4624,8 +4634,10 @@ static VALUE _wrap_FXScrollCorner_allocate(VALUE self) {
|
|
4624
4634
|
return vresult; }
|
4625
4635
|
static VALUE _wrap_new_FXScrollCorner(int argc, VALUE *argv, VALUE self) { FXComposite *arg1 = (FXComposite *) 0 ;
|
4626
4636
|
FXScrollCorner *result; if ((argc < 1) || (argc > 1)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
|
4627
|
-
SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_FXComposite, 1); {
|
4628
|
-
|
4637
|
+
SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_FXComposite, 1); { if (!arg1) {
|
4638
|
+
SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } } {
|
4639
|
+
result = (FXScrollCorner *)new_FXScrollCorner(arg1); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result);
|
4640
|
+
if(rb_block_given_p()){ rb_yield(self); } } return self; }
|
4629
4641
|
static void
|
4630
4642
|
free_FXScrollCorner(FXScrollCorner *arg1) {
|
4631
4643
|
delete arg1;
|
@@ -4888,7 +4900,8 @@ static VALUE _wrap_new_FXComboBox(int argc, VALUE *argv, VALUE self) { FXComposi
|
|
4888
4900
|
if (argc > 4) { arg5 = NUM2UINT(argv[4]); } if (argc > 5) { arg6 = NUM2INT(argv[5]); } if (argc > 6) {
|
4889
4901
|
arg7 = NUM2INT(argv[6]); } if (argc > 7) { arg8 = NUM2INT(argv[7]); } if (argc > 8) { arg9 = NUM2INT(argv[8]); }
|
4890
4902
|
if (argc > 9) { arg10 = NUM2INT(argv[9]); } if (argc > 10) { arg11 = NUM2INT(argv[10]); } if (argc > 11) {
|
4891
|
-
arg12 = NUM2INT(argv[11]); } if (argc > 12) { arg13 = NUM2INT(argv[12]); } {
|
4903
|
+
arg12 = NUM2INT(argv[11]); } if (argc > 12) { arg13 = NUM2INT(argv[12]); } { if (!arg1) {
|
4904
|
+
SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } } {
|
4892
4905
|
result = (FXComboBox *)new_FXComboBox(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13);
|
4893
4906
|
DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; }
|
4894
4907
|
static VALUE _wrap_FXComboBox_isEditable(int argc, VALUE *argv, VALUE self) { FXComboBox *arg1 = (FXComboBox *) 0 ;
|
@@ -5396,7 +5409,8 @@ static VALUE _wrap_new_FXListBox(int argc, VALUE *argv, VALUE self) { FXComposit
|
|
5396
5409
|
if (argc > 3) { arg4 = NUM2UINT(argv[3]); } if (argc > 4) { arg5 = NUM2INT(argv[4]); } if (argc > 5) {
|
5397
5410
|
arg6 = NUM2INT(argv[5]); } if (argc > 6) { arg7 = NUM2INT(argv[6]); } if (argc > 7) { arg8 = NUM2INT(argv[7]); }
|
5398
5411
|
if (argc > 8) { arg9 = NUM2INT(argv[8]); } if (argc > 9) { arg10 = NUM2INT(argv[9]); } if (argc > 10) {
|
5399
|
-
arg11 = NUM2INT(argv[10]); } if (argc > 11) { arg12 = NUM2INT(argv[11]); } {
|
5412
|
+
arg11 = NUM2INT(argv[10]); } if (argc > 11) { arg12 = NUM2INT(argv[11]); } { if (!arg1) {
|
5413
|
+
SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } } {
|
5400
5414
|
result = (FXListBox *)new_FXListBox(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
|
5401
5415
|
DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; }
|
5402
5416
|
static VALUE _wrap_FXListBox_getNumItems(int argc, VALUE *argv, VALUE self) { FXListBox *arg1 = (FXListBox *) 0 ; FXint result;
|
@@ -5863,7 +5877,8 @@ static VALUE _wrap_new_FXTreeListBox(int argc, VALUE *argv, VALUE self) { FXComp
|
|
5863
5877
|
if (argc > 3) { arg4 = NUM2UINT(argv[3]); } if (argc > 4) { arg5 = NUM2INT(argv[4]); } if (argc > 5) {
|
5864
5878
|
arg6 = NUM2INT(argv[5]); } if (argc > 6) { arg7 = NUM2INT(argv[6]); } if (argc > 7) { arg8 = NUM2INT(argv[7]); }
|
5865
5879
|
if (argc > 8) { arg9 = NUM2INT(argv[8]); } if (argc > 9) { arg10 = NUM2INT(argv[9]); } if (argc > 10) {
|
5866
|
-
arg11 = NUM2INT(argv[10]); } if (argc > 11) { arg12 = NUM2INT(argv[11]); } {
|
5880
|
+
arg11 = NUM2INT(argv[10]); } if (argc > 11) { arg12 = NUM2INT(argv[11]); } { if (!arg1) {
|
5881
|
+
SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } } {
|
5867
5882
|
result = (FXTreeListBox *)new_FXTreeListBox(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
|
5868
5883
|
DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; }
|
5869
5884
|
static VALUE _wrap_FXTreeListBox_getNumItems(int argc, VALUE *argv, VALUE self) { FXTreeListBox *arg1 = (FXTreeListBox *) 0 ;
|
@@ -6464,6 +6479,7 @@ static VALUE _wrap_new_FXImageView(int argc, VALUE *argv, VALUE self) { FXCompos
|
|
6464
6479
|
SWIG_ConvertPtr(argv[2], (void **) &arg3, SWIGTYPE_p_FXObject, 1); } if (argc > 3) { arg4 = NUM2UINT(argv[3]); }
|
6465
6480
|
if (argc > 4) { arg5 = NUM2UINT(argv[4]); } if (argc > 5) { arg6 = NUM2INT(argv[5]); } if (argc > 6) {
|
6466
6481
|
arg7 = NUM2INT(argv[6]); } if (argc > 7) { arg8 = NUM2INT(argv[7]); } if (argc > 8) { arg9 = NUM2INT(argv[8]); } {
|
6482
|
+
if (!arg1) { SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } } {
|
6467
6483
|
result = (FXImageView *)new_FXImageView(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9);
|
6468
6484
|
DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; }
|
6469
6485
|
static VALUE _wrap_FXImageView_setImage(int argc, VALUE *argv, VALUE self) { FXImageView *arg1 = (FXImageView *) 0 ;
|
@@ -6733,7 +6749,8 @@ static VALUE _wrap_FXDragCorner_allocate(VALUE self) {
|
|
6733
6749
|
return vresult; }
|
6734
6750
|
static VALUE _wrap_new_FXDragCorner(int argc, VALUE *argv, VALUE self) { FXComposite *arg1 = (FXComposite *) 0 ;
|
6735
6751
|
FXDragCorner *result; if ((argc < 1) || (argc > 1)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
|
6736
|
-
SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_FXComposite, 1); {
|
6752
|
+
SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_FXComposite, 1); { if (!arg1) {
|
6753
|
+
SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } } { result = (FXDragCorner *)new_FXDragCorner(arg1);
|
6737
6754
|
DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; }
|
6738
6755
|
static VALUE _wrap_FXDragCorner_setHiliteColor(int argc, VALUE *argv, VALUE self) { FXDragCorner *arg1 = (FXDragCorner *) 0 ;
|
6739
6756
|
FXColor arg2 ; if ((argc < 1) || (argc > 1)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
|
@@ -6980,7 +6997,8 @@ static VALUE _wrap_new_FXDirBox(int argc, VALUE *argv, VALUE self) { FXComposite
|
|
6980
6997
|
if (argc > 3) { arg4 = NUM2UINT(argv[3]); } if (argc > 4) { arg5 = NUM2INT(argv[4]); } if (argc > 5) {
|
6981
6998
|
arg6 = NUM2INT(argv[5]); } if (argc > 6) { arg7 = NUM2INT(argv[6]); } if (argc > 7) { arg8 = NUM2INT(argv[7]); }
|
6982
6999
|
if (argc > 8) { arg9 = NUM2INT(argv[8]); } if (argc > 9) { arg10 = NUM2INT(argv[9]); } if (argc > 10) {
|
6983
|
-
arg11 = NUM2INT(argv[10]); } if (argc > 11) { arg12 = NUM2INT(argv[11]); } {
|
7000
|
+
arg11 = NUM2INT(argv[10]); } if (argc > 11) { arg12 = NUM2INT(argv[11]); } { if (!arg1) {
|
7001
|
+
SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } } {
|
6984
7002
|
result = (FXDirBox *)new_FXDirBox(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
|
6985
7003
|
DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; }
|
6986
7004
|
static VALUE _wrap_FXDirBox_setDirectory(int argc, VALUE *argv, VALUE self) { FXDirBox *arg1 = (FXDirBox *) 0 ;
|
@@ -7232,7 +7250,8 @@ static VALUE _wrap_new_FXDriveBox(int argc, VALUE *argv, VALUE self) { FXComposi
|
|
7232
7250
|
if (argc > 3) { arg4 = NUM2UINT(argv[3]); } if (argc > 4) { arg5 = NUM2INT(argv[4]); } if (argc > 5) {
|
7233
7251
|
arg6 = NUM2INT(argv[5]); } if (argc > 6) { arg7 = NUM2INT(argv[6]); } if (argc > 7) { arg8 = NUM2INT(argv[7]); }
|
7234
7252
|
if (argc > 8) { arg9 = NUM2INT(argv[8]); } if (argc > 9) { arg10 = NUM2INT(argv[9]); } if (argc > 10) {
|
7235
|
-
arg11 = NUM2INT(argv[10]); } if (argc > 11) { arg12 = NUM2INT(argv[11]); } {
|
7253
|
+
arg11 = NUM2INT(argv[10]); } if (argc > 11) { arg12 = NUM2INT(argv[11]); } { if (!arg1) {
|
7254
|
+
SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } } {
|
7236
7255
|
result = (FXDriveBox *)new_FXDriveBox(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
|
7237
7256
|
DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; }
|
7238
7257
|
static VALUE _wrap_FXDriveBox_setDrive(int argc, VALUE *argv, VALUE self) { FXDriveBox *arg1 = (FXDriveBox *) 0 ;
|
@@ -7545,6 +7564,7 @@ static VALUE _wrap_new_FXDirSelector(int argc, VALUE *argv, VALUE self) { FXComp
|
|
7545
7564
|
SWIG_ConvertPtr(argv[1], (void **) &arg2, SWIGTYPE_p_FXObject, 1); } if (argc > 2) { arg3 = NUM2UINT(argv[2]); }
|
7546
7565
|
if (argc > 3) { arg4 = NUM2UINT(argv[3]); } if (argc > 4) { arg5 = NUM2INT(argv[4]); } if (argc > 5) {
|
7547
7566
|
arg6 = NUM2INT(argv[5]); } if (argc > 6) { arg7 = NUM2INT(argv[6]); } if (argc > 7) { arg8 = NUM2INT(argv[7]); } {
|
7567
|
+
if (!arg1) { SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } } {
|
7548
7568
|
result = (FXDirSelector *)new_FXDirSelector(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
|
7549
7569
|
DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; }
|
7550
7570
|
static VALUE _wrap_FXDirSelector_acceptButton(int argc, VALUE *argv, VALUE self) { FXDirSelector *arg1 = (FXDirSelector *) 0 ;
|
@@ -7956,6 +7976,7 @@ static VALUE _wrap_new_FXFileSelector(int argc, VALUE *argv, VALUE self) { FXCom
|
|
7956
7976
|
SWIG_ConvertPtr(argv[1], (void **) &arg2, SWIGTYPE_p_FXObject, 1); } if (argc > 2) { arg3 = NUM2UINT(argv[2]); }
|
7957
7977
|
if (argc > 3) { arg4 = NUM2UINT(argv[3]); } if (argc > 4) { arg5 = NUM2INT(argv[4]); } if (argc > 5) {
|
7958
7978
|
arg6 = NUM2INT(argv[5]); } if (argc > 6) { arg7 = NUM2INT(argv[6]); } if (argc > 7) { arg8 = NUM2INT(argv[7]); } {
|
7979
|
+
if (!arg1) { SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } } {
|
7959
7980
|
result = (FXFileSelector *)new_FXFileSelector(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
|
7960
7981
|
DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; }
|
7961
7982
|
static VALUE _wrap_FXFileSelector_acceptButton(int argc, VALUE *argv, VALUE self) {
|
@@ -8555,6 +8576,7 @@ static VALUE _wrap_new_FXColorSelector(int argc, VALUE *argv, VALUE self) { FXCo
|
|
8555
8576
|
SWIG_ConvertPtr(argv[1], (void **) &arg2, SWIGTYPE_p_FXObject, 1); } if (argc > 2) { arg3 = NUM2UINT(argv[2]); }
|
8556
8577
|
if (argc > 3) { arg4 = NUM2UINT(argv[3]); } if (argc > 4) { arg5 = NUM2INT(argv[4]); } if (argc > 5) {
|
8557
8578
|
arg6 = NUM2INT(argv[5]); } if (argc > 6) { arg7 = NUM2INT(argv[6]); } if (argc > 7) { arg8 = NUM2INT(argv[7]); } {
|
8579
|
+
if (!arg1) { SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } } {
|
8558
8580
|
result = (FXColorSelector *)new_FXColorSelector(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
|
8559
8581
|
DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; }
|
8560
8582
|
static VALUE _wrap_FXColorSelector_acceptButton(int argc, VALUE *argv, VALUE self) {
|
@@ -8903,6 +8925,7 @@ static VALUE _wrap_new_FXFontSelector(int argc, VALUE *argv, VALUE self) { FXCom
|
|
8903
8925
|
SWIG_ConvertPtr(argv[1], (void **) &arg2, SWIGTYPE_p_FXObject, 1); } if (argc > 2) { arg3 = NUM2UINT(argv[2]); }
|
8904
8926
|
if (argc > 3) { arg4 = NUM2UINT(argv[3]); } if (argc > 4) { arg5 = NUM2INT(argv[4]); } if (argc > 5) {
|
8905
8927
|
arg6 = NUM2INT(argv[5]); } if (argc > 6) { arg7 = NUM2INT(argv[6]); } if (argc > 7) { arg8 = NUM2INT(argv[7]); } {
|
8928
|
+
if (!arg1) { SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } } {
|
8906
8929
|
result = (FXFontSelector *)new_FXFontSelector(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
|
8907
8930
|
DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; }
|
8908
8931
|
static VALUE _wrap_FXFontSelector_acceptButton(int argc, VALUE *argv, VALUE self) {
|
@@ -9429,7 +9452,8 @@ static VALUE _wrap_new_FXDockTitle(int argc, VALUE *argv, VALUE self) { FXCompos
|
|
9429
9452
|
if (argc > 4) { arg5 = NUM2UINT(argv[4]); } if (argc > 5) { arg6 = NUM2INT(argv[5]); } if (argc > 6) {
|
9430
9453
|
arg7 = NUM2INT(argv[6]); } if (argc > 7) { arg8 = NUM2INT(argv[7]); } if (argc > 8) { arg9 = NUM2INT(argv[8]); }
|
9431
9454
|
if (argc > 9) { arg10 = NUM2INT(argv[9]); } if (argc > 10) { arg11 = NUM2INT(argv[10]); } if (argc > 11) {
|
9432
|
-
arg12 = NUM2INT(argv[11]); } if (argc > 12) { arg13 = NUM2INT(argv[12]); } {
|
9455
|
+
arg12 = NUM2INT(argv[11]); } if (argc > 12) { arg13 = NUM2INT(argv[12]); } { if (!arg1) {
|
9456
|
+
SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } } {
|
9433
9457
|
result = (FXDockTitle *)new_FXDockTitle(arg1,(FXString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13);
|
9434
9458
|
DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; }
|
9435
9459
|
static VALUE _wrap_FXDockTitle_captione___(int argc, VALUE *argv, VALUE self) { FXDockTitle *arg1 = (FXDockTitle *) 0 ;
|
@@ -9899,8 +9923,8 @@ static VALUE _wrap_new_FXToolBarShell(int argc, VALUE *argv, VALUE self) { FXWin
|
|
9899
9923
|
SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_FXWindow, 1); if (argc > 1) { arg2 = NUM2UINT(argv[1]); }
|
9900
9924
|
if (argc > 2) { arg3 = NUM2INT(argv[2]); } if (argc > 3) { arg4 = NUM2INT(argv[3]); } if (argc > 4) {
|
9901
9925
|
arg5 = NUM2INT(argv[4]); } if (argc > 5) { arg6 = NUM2INT(argv[5]); } if (argc > 6) { arg7 = NUM2INT(argv[6]); }
|
9902
|
-
if (argc > 7) { arg8 = NUM2INT(argv[7]); } {
|
9903
|
-
|
9926
|
+
if (argc > 7) { arg8 = NUM2INT(argv[7]); } { if (!arg1) { SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } }
|
9927
|
+
{ result = (FXToolBarShell *)new_FXToolBarShell(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
|
9904
9928
|
DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; }
|
9905
9929
|
static VALUE _wrap_FXToolBarShell_setFrameStyle(int argc, VALUE *argv, VALUE self) {
|
9906
9930
|
FXToolBarShell *arg1 = (FXToolBarShell *) 0 ; FXuint arg2 ; if ((argc < 1) || (argc > 1))
|
@@ -10249,6 +10273,7 @@ static VALUE _wrap_new_FXRulerView(int argc, VALUE *argv, VALUE self) { FXCompos
|
|
10249
10273
|
SWIG_ConvertPtr(argv[1], (void **) &arg2, SWIGTYPE_p_FXObject, 1); } if (argc > 2) { arg3 = NUM2UINT(argv[2]); }
|
10250
10274
|
if (argc > 3) { arg4 = NUM2UINT(argv[3]); } if (argc > 4) { arg5 = NUM2INT(argv[4]); } if (argc > 5) {
|
10251
10275
|
arg6 = NUM2INT(argv[5]); } if (argc > 6) { arg7 = NUM2INT(argv[6]); } if (argc > 7) { arg8 = NUM2INT(argv[7]); } {
|
10276
|
+
if (!arg1) { SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } } {
|
10252
10277
|
result = (FXRulerView *)new_FXRulerView(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
|
10253
10278
|
DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; }
|
10254
10279
|
static VALUE _wrap_FXRulerView_horizontalRuler(int argc, VALUE *argv, VALUE self) { FXRulerView *arg1 = (FXRulerView *) 0 ;
|
data/lib/fox16/version.rb
CHANGED
data/swig-interfaces/FXApp.i
CHANGED
@@ -464,7 +464,7 @@ public:
|
|
464
464
|
* Run popup menu while shown, until stop() or stopModal() is called.
|
465
465
|
* Also returns when entering previous cascading popup menu.
|
466
466
|
*/
|
467
|
-
FXint runPopup(FXWindow*
|
467
|
+
FXint runPopup(FXWindow* owner);
|
468
468
|
|
469
469
|
/// True if the window is modal
|
470
470
|
bool isModal(FXWindow* window) const;
|
@@ -53,10 +53,10 @@ public:
|
|
53
53
|
public:
|
54
54
|
|
55
55
|
/// Construct splash window
|
56
|
-
FXSplashWindow(FXApp*
|
56
|
+
FXSplashWindow(FXApp* a,FXIcon* ic,FXuint opts=SPLASH_SIMPLE,FXuint ms=5000);
|
57
57
|
|
58
58
|
/// Construct splash window
|
59
|
-
FXSplashWindow(FXWindow*
|
59
|
+
FXSplashWindow(FXWindow* own,FXIcon* ic,FXuint opts=SPLASH_SIMPLE,FXuint ms=5000);
|
60
60
|
|
61
61
|
/// Set the icon for the splash window
|
62
62
|
void setIcon(FXIcon* ic);
|
@@ -24,8 +24,14 @@
|
|
24
24
|
|
25
25
|
%apply Pointer NONNULL {
|
26
26
|
FXApp* APP,
|
27
|
-
|
28
|
-
|
27
|
+
FXApp* a,
|
28
|
+
FXApp* app,
|
29
|
+
FXApp* application,
|
30
|
+
FXComposite* PARENT,
|
31
|
+
FXComposite* p,
|
32
|
+
FXWindow* OWNER,
|
33
|
+
FXWindow* own,
|
34
|
+
FXWindow* owner
|
29
35
|
}
|
30
36
|
|
31
37
|
/* Type-checking rules */
|
data/test/TC_FXApp.rb
CHANGED
@@ -23,6 +23,10 @@ class TC_FXApp2 < Fox::TestCase
|
|
23
23
|
super(self.class.name)
|
24
24
|
end
|
25
25
|
|
26
|
+
def test_nil_window_raises_argument_error
|
27
|
+
assert_raise(ArgumentError){ app.runPopup(nil) }
|
28
|
+
end
|
29
|
+
|
26
30
|
def check_events(pipe_rd, pipe_wr)
|
27
31
|
app.addInput(pipe_wr, INPUT_WRITE, app, FXApp::ID_QUIT)
|
28
32
|
app.run
|
data/test/TC_FXButton.rb
CHANGED
@@ -10,6 +10,10 @@ class TC_FXButton < Fox::TestCase
|
|
10
10
|
@button = FXButton.new(mainWindow, "buttonText")
|
11
11
|
end
|
12
12
|
|
13
|
+
def test_nil_parent_raises_argument_error
|
14
|
+
assert_raise(ArgumentError){ FXButton.new(nil, "buttonText") }
|
15
|
+
end
|
16
|
+
|
13
17
|
def testText
|
14
18
|
assert(@button.text)
|
15
19
|
assert_instance_of(String, @button.text)
|
data/test/TC_FXGLViewer.rb
CHANGED
@@ -10,6 +10,15 @@ class TC_FXGLViewer < Fox::TestCase
|
|
10
10
|
vis = FXGLVisual.new(app, VISUAL_DOUBLEBUFFER)
|
11
11
|
@viewer = FXGLViewer.new(mainWindow, vis)
|
12
12
|
end
|
13
|
+
|
14
|
+
def test_supported
|
15
|
+
assert FXGLVisual.supported?(app)
|
16
|
+
end
|
17
|
+
|
18
|
+
def test_nil_app_raises_argument_error
|
19
|
+
assert_raise(ArgumentError){ FXGLVisual.supported?(nil) }
|
20
|
+
end
|
21
|
+
|
13
22
|
=begin
|
14
23
|
def test_readPixels
|
15
24
|
pixels = @viewer.readPixels(0, 0, @viewer.width, @viewer.height)
|
data/test/TC_FXMessageBox.rb
CHANGED
@@ -9,6 +9,10 @@ class TC_FXMessageBox < Fox::TestCase
|
|
9
9
|
super(self.class.name)
|
10
10
|
end
|
11
11
|
|
12
|
+
def test_nil_app_raises_argument_error
|
13
|
+
assert_raise(ArgumentError){ FXMessageBox.new(nil, "Save?", "Save?", :opts => MBOX_SAVE_CANCEL_DONTSAVE) }
|
14
|
+
end
|
15
|
+
|
12
16
|
def test_construct_with_save_cancel_dontsave
|
13
17
|
assert_nothing_raised(RangeError) do
|
14
18
|
FXMessageBox.new(mainWindow, "Save?", "Save?", :opts => MBOX_SAVE_CANCEL_DONTSAVE)
|
data/test/TC_FXScrollArea.rb
CHANGED
@@ -10,6 +10,10 @@ class TC_FXScrollArea < Fox::TestCase
|
|
10
10
|
@scrollArea = FXScrollArea.new(mainWindow)
|
11
11
|
end
|
12
12
|
|
13
|
+
def test_nil_parent_raises_argument_error
|
14
|
+
assert_raise(ArgumentError){ FXScrollArea.new(nil) }
|
15
|
+
end
|
16
|
+
|
13
17
|
def test_position_get
|
14
18
|
pos = @scrollArea.position
|
15
19
|
assert_instance_of(Array, pos)
|
data/test/TC_FXShell.rb
CHANGED
@@ -15,6 +15,10 @@ class TC_FXShell < Test::Unit::TestCase
|
|
15
15
|
@mainWin = FXMainWindow.new(@app, 'TC_FXShell')
|
16
16
|
end
|
17
17
|
|
18
|
+
def test_nil_parent_raises_argument_error
|
19
|
+
assert_raise(ArgumentError){ FXShell.new(nil, 0, 0, 0, 0, 0) }
|
20
|
+
end
|
21
|
+
|
18
22
|
def test_new
|
19
23
|
# Free-floating
|
20
24
|
shell1 = FXShell.new(@app, 0, 0, 0, 0, 0)
|
data/test/TC_FXTopWindow.rb
CHANGED
@@ -15,6 +15,10 @@ class TC_FXTopWindow < Test::Unit::TestCase
|
|
15
15
|
@mainWin = FXMainWindow.new(@app, 'TC_FXButton')
|
16
16
|
end
|
17
17
|
|
18
|
+
def test_nil_app_raises_argument_error
|
19
|
+
assert_raise(ArgumentError){ FXTopWindow.new(nil, 'TC_FXButton') }
|
20
|
+
end
|
21
|
+
|
18
22
|
def test_new
|
19
23
|
# Free-floating
|
20
24
|
top1 = FXTopWindow.new(@app, "top1", nil, nil, DECOR_ALL, 0, 0, 0, 0,
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fxruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 63
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 6
|
9
|
-
-
|
10
|
-
version: 1.6.
|
9
|
+
- 24
|
10
|
+
version: 1.6.24
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Lyle Johnson
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2012-
|
19
|
+
date: 2012-06-06 00:00:00 Z
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
22
|
name: rdoc
|
@@ -67,7 +67,6 @@ files:
|
|
67
67
|
- .yardopts
|
68
68
|
- History.txt
|
69
69
|
- Manifest.txt
|
70
|
-
- README.git
|
71
70
|
- README.rdoc
|
72
71
|
- Rakefile
|
73
72
|
- Rakefile.cross
|
data/README.git
DELETED