fxruby 1.6.2 → 1.6.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -662,8 +662,8 @@ VALUE FXDial_getRange(FXDial const *self){
662
662
 
663
663
  swig_class cFXDial;
664
664
  static void free_FXDial(FXDial *);
665
- FXHeaderItem *new_FXHeaderItem(FXString const &text,FXIcon *ic,FXint s,void *ptr){
666
- return new FXRbHeaderItem(text,ic,s,ptr);
665
+ FXHeaderItem *new_FXHeaderItem(FXString const &text,FXIcon *ic,FXint s,void *ITEMDATA){
666
+ return new FXRbHeaderItem(text,ic,s,ITEMDATA);
667
667
  }
668
668
  void FXHeaderItem_setData(FXHeaderItem *self,VALUE ptr){
669
669
  self->setData((void*) ptr);
@@ -2956,7 +2956,7 @@ static VALUE _wrap_new_FXHeaderItem(int argc, VALUE *argv, VALUE self) { FXStrin
2956
2956
  FXint arg3 = (FXint) 0 ; void *arg4 = (void *) 0 ; FXHeaderItem *result; SwigValueWrapper<FXString > p1 ;
2957
2957
  if ((argc < 1) || (argc > 4)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
2958
2958
  p1 = to_FXString(argv[0]); arg1 = &p1; if (argc > 1) { SWIG_ConvertPtr(argv[1], (void **) &arg2, SWIGTYPE_p_FXIcon, 1); }
2959
- if (argc > 2) { arg3 = NUM2INT(argv[2]); } if (argc > 3) { SWIG_ConvertPtr(argv[3], (void **) &arg4, 0, 1); } {
2959
+ if (argc > 2) { arg3 = NUM2INT(argv[2]); } if (argc > 3) { arg4 = (argv[3] == Qnil) ? NULL : (void *) argv[3]; } {
2960
2960
  result = (FXHeaderItem *)new_FXHeaderItem((FXString const &)*arg1,arg2,arg3,arg4);
2961
2961
  DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; }
2962
2962
  static VALUE _wrap_FXHeaderItem_getText(int argc, VALUE *argv, VALUE self) { FXHeaderItem *arg1 = (FXHeaderItem *) 0 ;
@@ -597,8 +597,8 @@ inline void* to_FXEvent(VALUE obj){
597
597
  return ptr;
598
598
  }
599
599
 
600
- FXIconItem *new_FXIconItem(FXString const &text,FXIcon *bi,FXIcon *mi,void *ptr){
601
- return new FXRbIconItem(text,bi,mi,ptr);
600
+ FXIconItem *new_FXIconItem(FXString const &text,FXIcon *bi,FXIcon *mi,void *ITEMDATA){
601
+ return new FXRbIconItem(text,bi,mi,ITEMDATA);
602
602
  }
603
603
  void FXIconItem_setData(FXIconItem *self,VALUE ptr){
604
604
  self->setData((void*) ptr);
@@ -725,8 +725,8 @@ static swig_type_info *FXIconList_dynamic_cast(void **ptr) {
725
725
  return 0;
726
726
  }
727
727
 
728
- FXFileItem *new_FXFileItem(FXString const &text,FXIcon *bi,FXIcon *mi,void *ptr){
729
- return new FXRbFileItem(text,bi,mi,ptr);
728
+ FXFileItem *new_FXFileItem(FXString const &text,FXIcon *bi,FXIcon *mi,void *ITEMDATA){
729
+ return new FXRbFileItem(text,bi,mi,ITEMDATA);
730
730
  }
731
731
 
732
732
  swig_class cFXFileItem;
@@ -760,7 +760,7 @@ static VALUE _wrap_new_FXIconItem(int argc, VALUE *argv, VALUE self) { FXString
760
760
  if ((argc < 1) || (argc > 4)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
761
761
  p1 = to_FXString(argv[0]); arg1 = &p1; if (argc > 1) { SWIG_ConvertPtr(argv[1], (void **) &arg2, SWIGTYPE_p_FXIcon, 1); }
762
762
  if (argc > 2) { SWIG_ConvertPtr(argv[2], (void **) &arg3, SWIGTYPE_p_FXIcon, 1); } if (argc > 3) {
763
- SWIG_ConvertPtr(argv[3], (void **) &arg4, 0, 1); } {
763
+ arg4 = (argv[3] == Qnil) ? NULL : (void *) argv[3]; } {
764
764
  result = (FXIconItem *)new_FXIconItem((FXString const &)*arg1,arg2,arg3,arg4);
765
765
  DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; }
766
766
  static VALUE _wrap_FXIconItem_getText(int argc, VALUE *argv, VALUE self) { FXIconItem *arg1 = (FXIconItem *) 0 ;
@@ -2016,7 +2016,7 @@ static VALUE _wrap_new_FXFileItem(int argc, VALUE *argv, VALUE self) { FXString
2016
2016
  if ((argc < 1) || (argc > 4)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
2017
2017
  p1 = to_FXString(argv[0]); arg1 = &p1; if (argc > 1) { SWIG_ConvertPtr(argv[1], (void **) &arg2, SWIGTYPE_p_FXIcon, 1); }
2018
2018
  if (argc > 2) { SWIG_ConvertPtr(argv[2], (void **) &arg3, SWIGTYPE_p_FXIcon, 1); } if (argc > 3) {
2019
- SWIG_ConvertPtr(argv[3], (void **) &arg4, 0, 1); } {
2019
+ arg4 = (argv[3] == Qnil) ? NULL : (void *) argv[3]; } {
2020
2020
  result = (FXFileItem *)new_FXFileItem((FXString const &)*arg1,arg2,arg3,arg4);
2021
2021
  DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; }
2022
2022
  static VALUE _wrap_FXFileItem_isFile(int argc, VALUE *argv, VALUE self) { FXFileItem *arg1 = (FXFileItem *) 0 ; FXbool result;
@@ -595,8 +595,8 @@ inline void* to_FXEvent(VALUE obj){
595
595
  return ptr;
596
596
  }
597
597
 
598
- FXListItem *new_FXListItem(FXString const &text,FXIcon *ic,void *ptr){
599
- return new FXRbListItem(text,ic,ptr);
598
+ FXListItem *new_FXListItem(FXString const &text,FXIcon *ic,void *ITEMDATA){
599
+ return new FXRbListItem(text,ic,ITEMDATA);
600
600
  }
601
601
  void FXListItem_setData(FXListItem *self,VALUE ptr){
602
602
  self->setData((void*) ptr);
@@ -722,8 +722,8 @@ static swig_type_info *FXList_dynamic_cast(void **ptr) {
722
722
  return 0;
723
723
  }
724
724
 
725
- FXColorItem *new_FXColorItem(FXString const &text,FXColor clr,void *ptr){
726
- return new FXRbColorItem(text,clr,ptr);
725
+ FXColorItem *new_FXColorItem(FXString const &text,FXColor clr,void *ITEMDATA){
726
+ return new FXRbColorItem(text,clr,ITEMDATA);
727
727
  }
728
728
 
729
729
  swig_class cFXColorItem;
@@ -756,7 +756,7 @@ static VALUE _wrap_new_FXListItem(int argc, VALUE *argv, VALUE self) { FXString
756
756
  void *arg3 = (void *) 0 ; FXListItem *result; SwigValueWrapper<FXString > p1 ; if ((argc < 1) || (argc > 3))
757
757
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); p1 = to_FXString(argv[0]); arg1 = &p1; if (argc > 1) {
758
758
  SWIG_ConvertPtr(argv[1], (void **) &arg2, SWIGTYPE_p_FXIcon, 1); } if (argc > 2) {
759
- SWIG_ConvertPtr(argv[2], (void **) &arg3, 0, 1); } {
759
+ arg3 = (argv[2] == Qnil) ? NULL : (void *) argv[2]; } {
760
760
  result = (FXListItem *)new_FXListItem((FXString const &)*arg1,arg2,arg3);
761
761
  DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; }
762
762
  static VALUE _wrap_FXListItem_getText(int argc, VALUE *argv, VALUE self) { FXListItem *arg1 = (FXListItem *) 0 ;
@@ -1704,7 +1704,7 @@ static VALUE _wrap_FXColorItem_allocate(VALUE self) {
1704
1704
  static VALUE _wrap_new_FXColorItem(int argc, VALUE *argv, VALUE self) { FXString *arg1 = 0 ; FXColor arg2 ;
1705
1705
  void *arg3 = (void *) 0 ; FXColorItem *result; SwigValueWrapper<FXString > p1 ; if ((argc < 2) || (argc > 3))
1706
1706
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); p1 = to_FXString(argv[0]); arg1 = &p1;
1707
- arg2 = to_FXColor(argv[1]); if (argc > 2) { SWIG_ConvertPtr(argv[2], (void **) &arg3, 0, 1); } {
1707
+ arg2 = to_FXColor(argv[1]); if (argc > 2) { arg3 = (argv[2] == Qnil) ? NULL : (void *) argv[2]; } {
1708
1708
  result = (FXColorItem *)new_FXColorItem((FXString const &)*arg1,arg2,arg3);
1709
1709
  DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; }
1710
1710
  static VALUE _wrap_FXColorItem_colore___(int argc, VALUE *argv, VALUE self) { FXColorItem *arg1 = (FXColorItem *) 0 ;
@@ -1811,7 +1811,7 @@ static VALUE _wrap_FXColorList_fillItems(int argc, VALUE *argv, VALUE self) { FX
1811
1811
  Check_Type(argv[1], T_ARRAY); if (FXMALLOC(&arg3, FXColor, RARRAY(argv[1])->len)+1) {
1812
1812
  for (long i = 0; i < RARRAY(argv[1])->len; i++) {
1813
1813
  arg3[i] = static_cast<FXColor>(NUM2ULONG(rb_ary_entry(argv[1], i))); } arg3[RARRAY(argv[1])->len] = 0; }
1814
- } } } if (argc > 2) { SWIG_ConvertPtr(argv[2], (void **) &arg4, 0, 1); } if (argc > 3) {
1814
+ } } } if (argc > 2) { arg4 = (argv[2] == Qnil) ? NULL : (void *) argv[2]; } if (argc > 3) {
1815
1815
  arg5 = to_FXbool(argv[3]); } result = (FXint)(arg1)->fillItems((FXchar const **)arg2,arg3,arg4,arg5);
1816
1816
  vresult = INT2NUM(result); FXFREE(&arg2); FXFREE(&arg3); return vresult; }
1817
1817
  static VALUE _wrap_FXColorList_insertItem(int argc, VALUE *argv, VALUE self) { FXColorList *arg1 = (FXColorList *) 0 ;
@@ -1820,14 +1820,14 @@ static VALUE _wrap_FXColorList_insertItem(int argc, VALUE *argv, VALUE self) { F
1820
1820
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc);
1821
1821
  SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXColorList, 1); arg2 = NUM2INT(argv[0]);
1822
1822
  p3 = to_FXString(argv[1]); arg3 = &p3; if (argc > 2) { arg4 = to_FXColor(argv[2]); } if (argc > 3) {
1823
- SWIG_ConvertPtr(argv[3], (void **) &arg5, 0, 1); } if (argc > 4) { arg6 = to_FXbool(argv[4]); }
1823
+ arg5 = (argv[3] == Qnil) ? NULL : (void *) argv[3]; } if (argc > 4) { arg6 = to_FXbool(argv[4]); }
1824
1824
  result = (FXint)(arg1)->insertItem(arg2,(FXString const &)*arg3,arg4,arg5,arg6); vresult = INT2NUM(result); return vresult; }
1825
1825
  static VALUE _wrap_FXColorList_appendItem(int argc, VALUE *argv, VALUE self) { FXColorList *arg1 = (FXColorList *) 0 ;
1826
1826
  FXString *arg2 = 0 ; FXColor arg3 = (FXColor) 0 ; void *arg4 = (void *) 0 ; FXbool arg5 = (FXbool) 0 ; FXint result;
1827
1827
  SwigValueWrapper<FXString > p2 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 4))
1828
1828
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
1829
1829
  SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXColorList, 1); p2 = to_FXString(argv[0]); arg2 = &p2; if (argc > 1) {
1830
- arg3 = to_FXColor(argv[1]); } if (argc > 2) { SWIG_ConvertPtr(argv[2], (void **) &arg4, 0, 1); } if (argc > 3) {
1830
+ arg3 = to_FXColor(argv[1]); } if (argc > 2) { arg4 = (argv[2] == Qnil) ? NULL : (void *) argv[2]; } if (argc > 3) {
1831
1831
  arg5 = to_FXbool(argv[3]); } result = (FXint)(arg1)->appendItem((FXString const &)*arg2,arg3,arg4,arg5);
1832
1832
  vresult = INT2NUM(result); return vresult; }
1833
1833
  static VALUE _wrap_FXColorList_prependItem(int argc, VALUE *argv, VALUE self) { FXColorList *arg1 = (FXColorList *) 0 ;
@@ -1835,7 +1835,7 @@ static VALUE _wrap_FXColorList_prependItem(int argc, VALUE *argv, VALUE self) {
1835
1835
  SwigValueWrapper<FXString > p2 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 4))
1836
1836
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
1837
1837
  SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXColorList, 1); p2 = to_FXString(argv[0]); arg2 = &p2; if (argc > 1) {
1838
- arg3 = to_FXColor(argv[1]); } if (argc > 2) { SWIG_ConvertPtr(argv[2], (void **) &arg4, 0, 1); } if (argc > 3) {
1838
+ arg3 = to_FXColor(argv[1]); } if (argc > 2) { arg4 = (argv[2] == Qnil) ? NULL : (void *) argv[2]; } if (argc > 3) {
1839
1839
  arg5 = to_FXbool(argv[3]); } result = (FXint)(arg1)->prependItem((FXString const &)*arg2,arg3,arg4,arg5);
1840
1840
  vresult = INT2NUM(result); return vresult; }
1841
1841
  static VALUE _wrap_FXColorList_setItemColor(int argc, VALUE *argv, VALUE self) { FXColorList *arg1 = (FXColorList *) 0 ;
@@ -2162,14 +2162,14 @@ static VALUE _wrap_FXMDIClient_forallWindows(int argc, VALUE *argv, VALUE self)
2162
2162
  if ((argc < 3) || (argc > 3)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
2163
2163
  SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXMDIClient, 1);
2164
2164
  SWIG_ConvertPtr(argv[0], (void **) &arg2, SWIGTYPE_p_FXObject, 1); arg3 = NUM2UINT(argv[1]);
2165
- SWIG_ConvertPtr(argv[2], (void **) &arg4, 0, 1); result = (long)(arg1)->forallWindows(arg2,arg3,arg4);
2165
+ arg4 = (argv[2] == Qnil) ? NULL : (void *) argv[2]; result = (long)(arg1)->forallWindows(arg2,arg3,arg4);
2166
2166
  vresult = INT2NUM(result); return vresult; }
2167
2167
  static VALUE _wrap_FXMDIClient_forallDocuments(int argc, VALUE *argv, VALUE self) { FXMDIClient *arg1 = (FXMDIClient *) 0 ;
2168
2168
  FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; long result; VALUE vresult = Qnil;
2169
2169
  if ((argc < 3) || (argc > 3)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
2170
2170
  SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXMDIClient, 1);
2171
2171
  SWIG_ConvertPtr(argv[0], (void **) &arg2, SWIGTYPE_p_FXObject, 1); arg3 = NUM2UINT(argv[1]);
2172
- SWIG_ConvertPtr(argv[2], (void **) &arg4, 0, 1); result = (long)(arg1)->forallDocuments(arg2,arg3,arg4);
2172
+ arg4 = (argv[2] == Qnil) ? NULL : (void *) argv[2]; result = (long)(arg1)->forallDocuments(arg2,arg3,arg4);
2173
2173
  vresult = INT2NUM(result); return vresult; }
2174
2174
  static VALUE _wrap_FXMDIClient_forallDocWindows(int argc, VALUE *argv, VALUE self) { FXMDIClient *arg1 = (FXMDIClient *) 0 ;
2175
2175
  FXObject *arg2 = (FXObject *) 0 ; FXObject *arg3 = (FXObject *) 0 ; FXSelector arg4 ; void *arg5 = (void *) 0 ; long result;
@@ -2177,7 +2177,7 @@ static VALUE _wrap_FXMDIClient_forallDocWindows(int argc, VALUE *argv, VALUE sel
2177
2177
  SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXMDIClient, 1);
2178
2178
  SWIG_ConvertPtr(argv[0], (void **) &arg2, SWIGTYPE_p_FXObject, 1);
2179
2179
  SWIG_ConvertPtr(argv[1], (void **) &arg3, SWIGTYPE_p_FXObject, 1); arg4 = NUM2UINT(argv[2]);
2180
- SWIG_ConvertPtr(argv[3], (void **) &arg5, 0, 1); result = (long)(arg1)->forallDocWindows(arg2,arg3,arg4,arg5);
2180
+ arg5 = (argv[3] == Qnil) ? NULL : (void *) argv[3]; result = (long)(arg1)->forallDocWindows(arg2,arg3,arg4,arg5);
2181
2181
  vresult = INT2NUM(result); return vresult; }
2182
2182
  static VALUE _wrap_FXMDIClient_getActiveChild(int argc, VALUE *argv, VALUE self) { FXMDIClient *arg1 = (FXMDIClient *) 0 ;
2183
2183
  FXMDIChild *result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0))
@@ -599,8 +599,8 @@ inline void* to_FXEvent(VALUE obj){
599
599
  return ptr;
600
600
  }
601
601
 
602
- FXFoldingItem *new_FXFoldingItem(FXString const &text,FXIcon *oi,FXIcon *ci,void *ptr){
603
- return new FXRbFoldingItem(text,oi,ci,ptr);
602
+ FXFoldingItem *new_FXFoldingItem(FXString const &text,FXIcon *oi,FXIcon *ci,void *ITEMDATA){
603
+ return new FXRbFoldingItem(text,oi,ci,ITEMDATA);
604
604
  }
605
605
  void FXFoldingItem_setData(FXFoldingItem *self,VALUE ptr){
606
606
  self->setData(reinterpret_cast<void*>(ptr));
@@ -704,8 +704,8 @@ VALUE FXFoldingList_position__SWIG_1(FXFoldingList const *self){
704
704
 
705
705
  swig_class cFXFoldingList;
706
706
  static void free_FXFoldingList(FXFoldingList *);
707
- FXTreeItem *new_FXTreeItem(FXString const &text,FXIcon *oi,FXIcon *ci,void *ptr){
708
- return new FXRbTreeItem(text,oi,ci,ptr);
707
+ FXTreeItem *new_FXTreeItem(FXString const &text,FXIcon *oi,FXIcon *ci,void *ITEMDATA){
708
+ return new FXRbTreeItem(text,oi,ci,ITEMDATA);
709
709
  }
710
710
  void FXTreeItem_setData(FXTreeItem *self,VALUE ptr){
711
711
  self->setData((void*) ptr);
@@ -836,8 +836,8 @@ static swig_type_info *FXTreeList_dynamic_cast(void **ptr) {
836
836
  return 0;
837
837
  }
838
838
 
839
- FXDirItem *new_FXDirItem(FXString const &text,FXIcon *oi,FXIcon *ci,void *ptr){
840
- return new FXRbDirItem(text,oi,ci,ptr);
839
+ FXDirItem *new_FXDirItem(FXString const &text,FXIcon *oi,FXIcon *ci,void *ITEMDATA){
840
+ return new FXRbDirItem(text,oi,ci,ITEMDATA);
841
841
  }
842
842
 
843
843
  swig_class cFXDirItem;
@@ -871,7 +871,7 @@ static VALUE _wrap_new_FXFoldingItem(int argc, VALUE *argv, VALUE self) { FXStri
871
871
  if ((argc < 1) || (argc > 4)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
872
872
  p1 = to_FXString(argv[0]); arg1 = &p1; if (argc > 1) { SWIG_ConvertPtr(argv[1], (void **) &arg2, SWIGTYPE_p_FXIcon, 1); }
873
873
  if (argc > 2) { SWIG_ConvertPtr(argv[2], (void **) &arg3, SWIGTYPE_p_FXIcon, 1); } if (argc > 3) {
874
- SWIG_ConvertPtr(argv[3], (void **) &arg4, 0, 1); } {
874
+ arg4 = (argv[3] == Qnil) ? NULL : (void *) argv[3]; } {
875
875
  result = (FXFoldingItem *)new_FXFoldingItem((FXString const &)*arg1,arg2,arg3,arg4);
876
876
  DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; }
877
877
  static VALUE _wrap_FXFoldingItem_getParent(int argc, VALUE *argv, VALUE self) { FXFoldingItem *arg1 = (FXFoldingItem *) 0 ;
@@ -2161,7 +2161,7 @@ static VALUE _wrap_new_FXTreeItem(int argc, VALUE *argv, VALUE self) { FXString
2161
2161
  if ((argc < 1) || (argc > 4)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
2162
2162
  p1 = to_FXString(argv[0]); arg1 = &p1; if (argc > 1) { SWIG_ConvertPtr(argv[1], (void **) &arg2, SWIGTYPE_p_FXIcon, 1); }
2163
2163
  if (argc > 2) { SWIG_ConvertPtr(argv[2], (void **) &arg3, SWIGTYPE_p_FXIcon, 1); } if (argc > 3) {
2164
- SWIG_ConvertPtr(argv[3], (void **) &arg4, 0, 1); } {
2164
+ arg4 = (argv[3] == Qnil) ? NULL : (void *) argv[3]; } {
2165
2165
  result = (FXTreeItem *)new_FXTreeItem((FXString const &)*arg1,arg2,arg3,arg4);
2166
2166
  DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; }
2167
2167
  static VALUE _wrap_FXTreeItem_getText(int argc, VALUE *argv, VALUE self) { FXTreeItem *arg1 = (FXTreeItem *) 0 ;
@@ -3353,7 +3353,7 @@ static VALUE _wrap_new_FXDirItem(int argc, VALUE *argv, VALUE self) { FXString *
3353
3353
  if ((argc < 1) || (argc > 4)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
3354
3354
  p1 = to_FXString(argv[0]); arg1 = &p1; if (argc > 1) { SWIG_ConvertPtr(argv[1], (void **) &arg2, SWIGTYPE_p_FXIcon, 1); }
3355
3355
  if (argc > 2) { SWIG_ConvertPtr(argv[2], (void **) &arg3, SWIGTYPE_p_FXIcon, 1); } if (argc > 3) {
3356
- SWIG_ConvertPtr(argv[3], (void **) &arg4, 0, 1); } {
3356
+ arg4 = (argv[3] == Qnil) ? NULL : (void *) argv[3]; } {
3357
3357
  result = (FXDirItem *)new_FXDirItem((FXString const &)*arg1,arg2,arg3,arg4);
3358
3358
  DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; }
3359
3359
  static VALUE _wrap_FXDirItem_isFile(int argc, VALUE *argv, VALUE self) { FXDirItem *arg1 = (FXDirItem *) 0 ; FXbool result;
@@ -5386,8 +5386,9 @@ static VALUE _wrap_FXListBox_fillItems(int argc, VALUE *argv, VALUE self) { FXLi
5386
5386
  for (long i = 0; i < RARRAY(argv[0])->len; i++) { arg2[i] = (FXchar *) STR2CSTR(rb_ary_entry(argv[0], i)); }
5387
5387
  arg2[RARRAY(argv[0])->len] = 0; } } } if (argc > 1) {
5388
5388
  SWIG_ConvertPtr(argv[1], (void **) &arg3, SWIGTYPE_p_FXIcon, 1); } if (argc > 2) {
5389
- SWIG_ConvertPtr(argv[2], (void **) &arg4, 0, 1); } result = (FXint)(arg1)->fillItems((FXchar const **)arg2,arg3,arg4);
5390
- vresult = INT2NUM(result); FXFREE(&arg2); return vresult; }
5389
+ arg4 = (argv[2] == Qnil) ? NULL : (void *) argv[2]; }
5390
+ result = (FXint)(arg1)->fillItems((FXchar const **)arg2,arg3,arg4); vresult = INT2NUM(result); FXFREE(&arg2);
5391
+ return vresult; }
5391
5392
  static VALUE _wrap_FXListBox_insertItem(int argc, VALUE *argv, VALUE self) { FXListBox *arg1 = (FXListBox *) 0 ; FXint arg2 ;
5392
5393
  FXString *arg3 = 0 ; FXIcon *arg4 = (FXIcon *) 0 ; void *arg5 = (void *) 0 ; FXint result; SwigValueWrapper<FXString > p3 ;
5393
5394
  VALUE vresult = Qnil; if ((argc < 2) || (argc > 4)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc);
data/lib/fox16/aliases.rb CHANGED
@@ -4291,6 +4291,21 @@ module Fox
4291
4291
  end
4292
4292
  end
4293
4293
  class FXTable
4294
+ def itemVisible?(*args) # :nodoc:
4295
+ isItemVisible(*args)
4296
+ end
4297
+ def itemSpanning?(*args) # :nodoc:
4298
+ isItemSpanning(*args)
4299
+ end
4300
+ def itemEnabled?(*args) # :nodoc:
4301
+ isItemEnabled(*args)
4302
+ end
4303
+ def itemCurrent?(*args) # :nodoc:
4304
+ isItemCurrent(*args)
4305
+ end
4306
+ def itemSelected?(*args) # :nodoc:
4307
+ isItemSelected(*args)
4308
+ end
4294
4309
  def horizontalGridShown=(vis) # :nodoc:
4295
4310
  showHorzGrid(vis)
4296
4311
  end
data/lib/fox16/core.rb CHANGED
@@ -451,6 +451,11 @@ module Fox
451
451
  table.marginLeft, table.marginRight,
452
452
  table.marginTop, table.marginBottom)
453
453
  combo.create
454
+ justify = 0
455
+ justify |= JUSTIFY_LEFT if (self.justify & FXTableItem::LEFT) != 0
456
+ justify |= JUSTIFY_RIGHT if (self.justify & FXTableItem::RIGHT) != 0
457
+ justify |= JUSTIFY_TOP if (self.justify & FXTableItem::TOP) != 0
458
+ justify |= JUSTIFY_BOTTOM if (self.justify & FXTableItem::BOTTOM) != 0
454
459
  combo.justify = justify
455
460
  combo.font = table.font
456
461
  combo.backColor = table.backColor
@@ -458,7 +463,7 @@ module Fox
458
463
  combo.selBackColor = table.selBackColor
459
464
  combo.selTextColor = table.selTextColor
460
465
  combo.fillItems(selections)
461
- combo.text = label
466
+ combo.text = text
462
467
  combo.numVisible = [20, combo.numItems].min
463
468
  combo
464
469
  end
@@ -90,9 +90,9 @@ module Fox
90
90
  # references (one element per column) as a parameter.
91
91
  #
92
92
  def each_row # :yields: itemArray
93
- 0.upto(getNumRows - 1) do |i|
93
+ 0.upto(numRows - 1) do |i|
94
94
  tableRow = []
95
- 0.upto(getNumCols - 1) do |j|
95
+ 0.upto(numColumns - 1) do |j|
96
96
  tableRow << getItem(i, j)
97
97
  end
98
98
  yield tableRow
@@ -105,9 +105,9 @@ module Fox
105
105
  # references (one element per row) as a parameter.
106
106
  #
107
107
  def each_column # :yields: itemArray
108
- 0.upto(getNumCols - 1) do |j|
108
+ 0.upto(numColumns - 1) do |j|
109
109
  tableCol = []
110
- 0.upto(getNumRows - 1) do |i|
110
+ 0.upto(numRows - 1) do |i|
111
111
  tableCol << getItem(i, j)
112
112
  end
113
113
  yield tableCol
@@ -0,0 +1,2292 @@
1
+ require 'fox16'
2
+
3
+ module Fox
4
+
5
+
6
+ class FX4Splitter
7
+ alias old_initialize initialize
8
+ def initialize(*args)
9
+ default_params = { :opts => FOURSPLITTER_NORMAL, :x => 0, :y => 0, :w => 0, :h => 0 }
10
+ case args.length
11
+ when 1,2
12
+ params = (args.length == 2) ? args[1] : {}
13
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
14
+ params = default_params.merge(params)
15
+ old_initialize(args[0], params[:opts], params[:x], params[:y], params[:w], params[:h])
16
+ when 3,4
17
+ params = (args.length == 4) ? args[3] : {}
18
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
19
+ params = default_params.merge(params)
20
+ old_initialize(args[0], args[1], args[2], params[:opts], params[:x], params[:y], params[:w], params[:h])
21
+ end
22
+ end
23
+ end
24
+
25
+ class FXDockBar
26
+ alias old_initialize initialize
27
+ def initialize(*args)
28
+ default_params = { :opts => LAYOUT_TOP|LAYOUT_LEFT|LAYOUT_FILL_X, :x => 0, :y => 0, :w => 0, :h => 0, :pl => 3, :pr => 3, :pt => 2, :pb => 2, :hs => DEFAULT_SPACING, :vs => DEFAULT_SPACING }
29
+ case args.length
30
+ when 1
31
+ params = default_params
32
+ old_initialize(args[0], params[:opts], params[:x], params[:y], params[:w], params[:h], params[:pl], params[:pr], params[:pt], params[:pb], params[:hs], params[:vs])
33
+ when 2
34
+ if args[1].is_a? Hash
35
+ params = args[1]
36
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
37
+ params = default_params.merge(params)
38
+ old_initialize(args[0], params[:opts], params[:x], params[:y], params[:w], params[:h], params[:pl], params[:pr], params[:pt], params[:pb], params[:hs], params[:vs])
39
+ else
40
+ params = default_params
41
+ old_initialize(args[0], args[1], params[:opts], params[:x], params[:y], params[:w], params[:h], params[:pl], params[:pr], params[:pt], params[:pb], params[:hs], params[:vs])
42
+ end
43
+ when 3
44
+ params = args[2]
45
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
46
+ params = default_params.merge(params)
47
+ old_initialize(args[0], args[1], params[:opts], params[:x], params[:y], params[:w], params[:h], params[:pl], params[:pr], params[:pt], params[:pb], params[:hs], params[:vs])
48
+ end
49
+ end
50
+ end
51
+
52
+ class FXFont
53
+ alias old_initialize initialize
54
+ def initialize(*args)
55
+ case args.length
56
+ when 2
57
+ old_initialize(*args)
58
+ when 3,4
59
+ default_params = { :weight => FXFont::Normal, :slant => Font::Straight, :encoding => FONTENCODING_DEFAULT, :setWidth => FXFont::NonExpanded, :hints => 0 }
60
+ params = (args.length == 4) ? args[3] : {}
61
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
62
+ params = default_params.merge(params)
63
+ old_initialize(args[0], args[1], args[2], params[:weight], params[:slant], params[:encoding], params[:setWidth], params[:hints])
64
+ end
65
+ end
66
+ end
67
+
68
+ class FXGLCanvas
69
+ alias old_initialize initialize
70
+ def initialize(*args)
71
+ default_params = { :tgt => nil, :sel => 0, :opts => 0, :x => 0, :y => 0, :w => 0, :h => 0 }
72
+ case args.length
73
+ when 2
74
+ params = default_params
75
+ old_initialize(args[0], args[1], params[:tgt], params[:sel], params[:opts], params[:x], params[:y], params[:w], params[:h])
76
+ when 3
77
+ if args[2].is_a? Hash
78
+ params = args[2]
79
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
80
+ params = default_params.merge(params)
81
+ old_initialize(args[0], args[1], params[:tgt], params[:sel], params[:opts], params[:x], params[:y], params[:w], params[:h])
82
+ else
83
+ params = default_params
84
+ old_initialize(args[0], args[1], args[2], params[:tgt], params[:sel], params[:opts], params[:x], params[:y], params[:w], params[:h])
85
+ end
86
+ when 4
87
+ params = args[3]
88
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
89
+ params = default_params.merge(params)
90
+ old_initialize(args[0], args[1], args[2], params[:tgt], params[:sel], params[:opts], params[:x], params[:y], params[:w], params[:h])
91
+ end
92
+ end
93
+ end
94
+
95
+ class FXGLViewer
96
+ alias old_initialize initialize
97
+ def initialize(*args)
98
+ default_params = { :tgt => nil, :sel => 0, :opts => 0, :x => 0, :y => 0, :w => 0, :h => 0 }
99
+ case args.length
100
+ when 2
101
+ params = default_params
102
+ old_initialize(args[0], args[1], params[:tgt], params[:sel], params[:opts], params[:x], params[:y], params[:w], params[:h])
103
+ when 3
104
+ if args[2].is_a? Hash
105
+ params = args[2]
106
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
107
+ params = default_params.merge(params)
108
+ old_initialize(args[0], args[1], params[:tgt], params[:sel], params[:opts], params[:x], params[:y], params[:w], params[:h])
109
+ else
110
+ params = default_params
111
+ old_initialize(args[0], args[1], args[2], params[:tgt], params[:sel], params[:opts], params[:x], params[:y], params[:w], params[:h])
112
+ end
113
+ when 4
114
+ params = args[3]
115
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
116
+ params = default_params.merge(params)
117
+ old_initialize(args[0], args[1], args[2], params[:tgt], params[:sel], params[:opts], params[:x], params[:y], params[:w], params[:h])
118
+ end
119
+ end
120
+ end
121
+
122
+ class FXMenuBar
123
+ alias old_initialize initialize
124
+ def initialize(*args)
125
+ if args.length == 2
126
+ old_initialize(*args)
127
+ else
128
+ default_params = { :opts => LAYOUT_TOP|LAYOUT_LEFT|LAYOUT_FILL_X, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => 3, :padRight => 3, :padTop => 2, :padBottom => 2, :hSpacing => DEFAULT_SPACING, :vSpacing => DEFAULT_SPACING }
129
+ params = args[2]
130
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
131
+ params = default_params.merge(params)
132
+ if (args[1].nil?) || (args[1].is_a? FXComposite)
133
+ old_initialize(args[0], args[1], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], params[:hSpacing], params[:vSpacing])
134
+ else
135
+ old_initialize(args[0], args[1], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], params[:hSpacing], params[:vSpacing])
136
+ end
137
+ end
138
+ end
139
+ end
140
+
141
+ class FXSplitter
142
+ alias old_initialize initialize
143
+ def initialize(*args)
144
+ default_params = { :opts => SPLITTER_NORMAL, :x => 0, :y => 0, :w => 0, :h => 0 }
145
+ case args.length
146
+ when 1,2
147
+ params = (args.length == 2) ? args[1] : {}
148
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
149
+ params = default_params.merge(params)
150
+ old_initialize(args[0], params[:opts], params[:x], params[:y], params[:w], params[:h])
151
+ when 3,4
152
+ params = (args.length == 4) ? args[3] : {}
153
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
154
+ params = default_params.merge(params)
155
+ old_initialize(args[0], args[1], args[2], params[:opts], params[:x], params[:y], params[:w], params[:h])
156
+ end
157
+ end
158
+ end
159
+
160
+ class FXToolBar
161
+ alias old_initialize initialize
162
+ def initialize(*args)
163
+ default_params = { :opts => LAYOUT_TOP|LAYOUT_LEFT|LAYOUT_FILL_X, :x => 0, :y => 0, :w => 0, :h => 0, :pl => 3, :pr => 3, :pt => 2, :pb => 2, :hs => DEFAULT_SPACING, :vs => DEFAULT_SPACING }
164
+ case args.length
165
+ when 1
166
+ params = default_params
167
+ old_initialize(args[0], params[:opts], params[:x], params[:y], params[:w], params[:h], params[:pl], params[:pr], params[:pt], params[:pb], params[:hs], params[:vs])
168
+ when 2
169
+ if args[1].is_a? Hash
170
+ params = args[1]
171
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
172
+ params = default_params.merge(params)
173
+ old_initialize(args[0], params[:opts], params[:x], params[:y], params[:w], params[:h], params[:pl], params[:pr], params[:pt], params[:pb], params[:hs], params[:vs])
174
+ else
175
+ params = default_params
176
+ old_initialize(args[0], args[1], params[:opts], params[:x], params[:y], params[:w], params[:h], params[:pl], params[:pr], params[:pt], params[:pb], params[:hs], params[:vs])
177
+ end
178
+ when 3
179
+ params = args[2]
180
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
181
+ params = default_params.merge(params)
182
+ old_initialize(args[0], args[1], params[:opts], params[:x], params[:y], params[:w], params[:h], params[:pl], params[:pr], params[:pt], params[:pb], params[:hs], params[:vs])
183
+ end
184
+ end
185
+ end
186
+
187
+ class FXWindow
188
+ alias old_initialize initialize
189
+ def initialize(*args)
190
+ if (args.length == 2) && (args[1].is_a? Hash)
191
+ default_params = { :opts => 0, :x => 0, :y => 0, :w => 0, :h => 0 }
192
+ params = args[1]
193
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
194
+ params = default_params.merge(params)
195
+ old_initialize(args[0], params[:opts], params[:x], params[:y], params[:w], params[:h])
196
+ else
197
+ old_initialize(*args)
198
+ end
199
+ end
200
+ end
201
+
202
+ class FX7Segment
203
+ alias old_initialize initialize
204
+ def initialize(p, text, params={})
205
+ default_params = { :opts => SEVENSEGMENT_NORMAL, :x => 0, :y => 0, :w => 0, :h => 0, :pl => DEFAULT_PAD, :pr => DEFAULT_PAD, :pt => DEFAULT_PAD, :pb => DEFAULT_PAD }
206
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
207
+ params = default_params.merge(params)
208
+ old_initialize(p, text, params[:opts], params[:x], params[:y], params[:w], params[:h], params[:pl], params[:pr], params[:pt], params[:pb])
209
+ end
210
+ end
211
+
212
+ class FXAccelTable
213
+ alias old_initialize initialize
214
+ def initialize(params={})
215
+ default_params = { }
216
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
217
+ params = default_params.merge(params)
218
+ old_initialize()
219
+ end
220
+ end
221
+
222
+ class FXEvent
223
+ alias old_initialize initialize
224
+ def initialize(params={})
225
+ default_params = { }
226
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
227
+ params = default_params.merge(params)
228
+ old_initialize()
229
+ end
230
+ end
231
+
232
+ class FXApp
233
+ alias old_initialize initialize
234
+ def initialize(params={})
235
+ default_params = { :appName => "Application", :vendorName => "FoxDefault" }
236
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
237
+ params = default_params.merge(params)
238
+ old_initialize(params[:appName], params[:vendorName])
239
+ end
240
+ end
241
+
242
+ class FXArrowButton
243
+ alias old_initialize initialize
244
+ def initialize(parent, params={})
245
+ default_params = { :target => nil, :selector => 0, :opts => ARROW_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
246
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
247
+ params = default_params.merge(params)
248
+ old_initialize(parent, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom])
249
+ end
250
+ end
251
+
252
+ class FXBitmap
253
+ alias old_initialize initialize
254
+ def initialize(app, params={})
255
+ default_params = { :pixels => nil, :opts => 0, :width => 1, :height => 1 }
256
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
257
+ params = default_params.merge(params)
258
+ old_initialize(app, params[:pixels], params[:opts], params[:width], params[:height])
259
+ end
260
+ end
261
+
262
+ class FXBitmapFrame
263
+ alias old_initialize initialize
264
+ def initialize(p, bmp, params={})
265
+ default_params = { :opts => FRAME_SUNKEN|FRAME_THICK, :x => 0, :y => 0, :w => 0, :h => 0, :pl => 0, :pr => 0, :pt => 0, :pb => 0 }
266
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
267
+ params = default_params.merge(params)
268
+ old_initialize(p, bmp, params[:opts], params[:x], params[:y], params[:w], params[:h], params[:pl], params[:pr], params[:pt], params[:pb])
269
+ end
270
+ end
271
+
272
+ class FXBitmapView
273
+ alias old_initialize initialize
274
+ def initialize(p, params={})
275
+ default_params = { :bmp => nil, :tgt => nil, :sel => 0, :opts => 0, :x => 0, :y => 0, :w => 0, :h => 0 }
276
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
277
+ params = default_params.merge(params)
278
+ old_initialize(p, params[:bmp], params[:tgt], params[:sel], params[:opts], params[:x], params[:y], params[:w], params[:h])
279
+ end
280
+ end
281
+
282
+ class FXBMPIcon
283
+ alias old_initialize initialize
284
+ def initialize(a, params={})
285
+ default_params = { :pix => nil, :clr => FXRGB(192,192,192), :opts => 0, :w => 1, :h => 1 }
286
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
287
+ params = default_params.merge(params)
288
+ old_initialize(a, params[:pix], params[:clr], params[:opts], params[:w], params[:h])
289
+ end
290
+ end
291
+
292
+ class FXBMPImage
293
+ alias old_initialize initialize
294
+ def initialize(a, params={})
295
+ default_params = { :pix => nil, :opts => 0, :w => 1, :h => 1 }
296
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
297
+ params = default_params.merge(params)
298
+ old_initialize(a, params[:pix], params[:opts], params[:w], params[:h])
299
+ end
300
+ end
301
+
302
+ class FXButton
303
+ alias old_initialize initialize
304
+ def initialize(parent, text, params={})
305
+ default_params = { :icon => nil, :target => nil, :selector => 0, :opts => BUTTON_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
306
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
307
+ params = default_params.merge(params)
308
+ old_initialize(parent, text, params[:icon], params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom])
309
+ end
310
+ end
311
+
312
+ class FXCanvas
313
+ alias old_initialize initialize
314
+ def initialize(parent, params={})
315
+ default_params = { :target => nil, :selector => 0, :opts => FRAME_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0 }
316
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
317
+ params = default_params.merge(params)
318
+ old_initialize(parent, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height])
319
+ end
320
+ end
321
+
322
+ class FXCheckButton
323
+ alias old_initialize initialize
324
+ def initialize(parent, text, params={})
325
+ default_params = { :target => nil, :selector => 0, :opts => CHECKBUTTON_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
326
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
327
+ params = default_params.merge(params)
328
+ old_initialize(parent, text, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom])
329
+ end
330
+ end
331
+
332
+ class FXChoiceBox
333
+ alias old_initialize initialize
334
+ def initialize(owner, caption, text, icon, choices, params={})
335
+ default_params = { :opts => 0, :x => 0, :y => 0, :w => 0, :h => 0 }
336
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
337
+ params = default_params.merge(params)
338
+ old_initialize(owner, caption, text, icon, choices, params[:opts], params[:x], params[:y], params[:w], params[:h])
339
+ end
340
+ end
341
+
342
+ class FXColorBar
343
+ alias old_initialize initialize
344
+ def initialize(parent, params={})
345
+ default_params = { :target => nil, :selector => 0, :opts => FRAME_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
346
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
347
+ params = default_params.merge(params)
348
+ old_initialize(parent, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom])
349
+ end
350
+ end
351
+
352
+ class FXColorDialog
353
+ alias old_initialize initialize
354
+ def initialize(owner, title, params={})
355
+ default_params = { :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
356
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
357
+ params = default_params.merge(params)
358
+ old_initialize(owner, title, params[:opts], params[:x], params[:y], params[:width], params[:height])
359
+ end
360
+ end
361
+
362
+ class FXColorItem
363
+ alias old_initialize initialize
364
+ def initialize(text, clr, params={})
365
+ default_params = { :data => nil }
366
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
367
+ params = default_params.merge(params)
368
+ old_initialize(text, clr, params[:data])
369
+ end
370
+ end
371
+
372
+ class FXColorList
373
+ alias old_initialize initialize
374
+ def initialize(p, params={})
375
+ default_params = { :tgt => nil, :sel => 0, :opts => LIST_BROWSESELECT, :x => 0, :y => 0, :w => 0, :h => 0 }
376
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
377
+ params = default_params.merge(params)
378
+ old_initialize(p, params[:tgt], params[:sel], params[:opts], params[:x], params[:y], params[:w], params[:h])
379
+ end
380
+ end
381
+
382
+ class FXColorRing
383
+ alias old_initialize initialize
384
+ def initialize(p, params={})
385
+ default_params = { :tgt => nil, :sel => 0, :opts => FRAME_NORMAL, :x => 0, :y => 0, :w => 0, :h => 0, :pl => DEFAULT_PAD, :pr => DEFAULT_PAD, :pt => DEFAULT_PAD, :pb => DEFAULT_PAD }
386
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
387
+ params = default_params.merge(params)
388
+ old_initialize(p, params[:tgt], params[:sel], params[:opts], params[:x], params[:y], params[:w], params[:h], params[:pl], params[:pr], params[:pt], params[:pb])
389
+ end
390
+ end
391
+
392
+ class FXColorSelector
393
+ alias old_initialize initialize
394
+ def initialize(parent, params={})
395
+ default_params = { :target => nil, :selector => 0, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
396
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
397
+ params = default_params.merge(params)
398
+ old_initialize(parent, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height])
399
+ end
400
+ end
401
+
402
+ class FXColorWell
403
+ alias old_initialize initialize
404
+ def initialize(parent, params={})
405
+ default_params = { :color => 0, :target => nil, :selector => 0, :opts => COLORWELL_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
406
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
407
+ params = default_params.merge(params)
408
+ old_initialize(parent, params[:color], params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom])
409
+ end
410
+ end
411
+
412
+ class FXColorWheel
413
+ alias old_initialize initialize
414
+ def initialize(p, params={})
415
+ default_params = { :tgt => nil, :sel => 0, :opts => FRAME_NORMAL, :x => 0, :y => 0, :w => 0, :h => 0, :pl => DEFAULT_PAD, :pr => DEFAULT_PAD, :pt => DEFAULT_PAD, :pb => DEFAULT_PAD }
416
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
417
+ params = default_params.merge(params)
418
+ old_initialize(p, params[:tgt], params[:sel], params[:opts], params[:x], params[:y], params[:w], params[:h], params[:pl], params[:pr], params[:pt], params[:pb])
419
+ end
420
+ end
421
+
422
+ class FXComboBox
423
+ alias old_initialize initialize
424
+ def initialize(p, cols, params={})
425
+ default_params = { :tgt => nil, :sel => 0, :opts => COMBOBOX_NORMAL, :x => 0, :y => 0, :w => 0, :h => 0, :pl => DEFAULT_PAD, :pr => DEFAULT_PAD, :pt => DEFAULT_PAD, :pb => DEFAULT_PAD }
426
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
427
+ params = default_params.merge(params)
428
+ old_initialize(p, cols, params[:tgt], params[:sel], params[:opts], params[:x], params[:y], params[:w], params[:h], params[:pl], params[:pr], params[:pt], params[:pb])
429
+ end
430
+ end
431
+
432
+ class FXComposite
433
+ alias old_initialize initialize
434
+ def initialize(parent, params={})
435
+ default_params = { :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
436
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
437
+ params = default_params.merge(params)
438
+ old_initialize(parent, params[:opts], params[:x], params[:y], params[:width], params[:height])
439
+ end
440
+ end
441
+
442
+ class FXCURCursor
443
+ alias old_initialize initialize
444
+ def initialize(app, pixels, params={})
445
+ default_params = { }
446
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
447
+ params = default_params.merge(params)
448
+ old_initialize(app, pixels)
449
+ end
450
+ end
451
+
452
+ class FXDataTarget
453
+ alias old_initialize initialize
454
+ def initialize(params={})
455
+ default_params = { :value => nil, :tgt => nil, :sel => 0 }
456
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
457
+ params = default_params.merge(params)
458
+ old_initialize(params[:value], params[:tgt], params[:sel])
459
+ end
460
+ end
461
+
462
+ class FXSegment
463
+ alias old_initialize initialize
464
+ def initialize(params={})
465
+ default_params = { }
466
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
467
+ params = default_params.merge(params)
468
+ old_initialize()
469
+ end
470
+ end
471
+
472
+ class FXArc
473
+ alias old_initialize initialize
474
+ def initialize(params={})
475
+ default_params = { }
476
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
477
+ params = default_params.merge(params)
478
+ old_initialize()
479
+ end
480
+ end
481
+
482
+ class FXDC
483
+ alias old_initialize initialize
484
+ def initialize(app, params={})
485
+ default_params = { }
486
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
487
+ params = default_params.merge(params)
488
+ old_initialize(app)
489
+ end
490
+ end
491
+
492
+ class FXPSBounds
493
+ alias old_initialize initialize
494
+ def initialize(params={})
495
+ default_params = { }
496
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
497
+ params = default_params.merge(params)
498
+ old_initialize()
499
+ end
500
+ end
501
+
502
+ class FXPrinter
503
+ alias old_initialize initialize
504
+ def initialize(params={})
505
+ default_params = { }
506
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
507
+ params = default_params.merge(params)
508
+ old_initialize()
509
+ end
510
+ end
511
+
512
+ class FXDCPrint
513
+ alias old_initialize initialize
514
+ def initialize(app, params={})
515
+ default_params = { }
516
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
517
+ params = default_params.merge(params)
518
+ old_initialize(app)
519
+ end
520
+ end
521
+
522
+ class FXDCWindow
523
+ alias old_initialize initialize
524
+ def initialize(drawable, params={})
525
+ default_params = { :event => nil }
526
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
527
+ params = default_params.merge(params)
528
+ old_initialize(drawable, params[:event])
529
+ end
530
+ end
531
+
532
+ class FXDebugTarget
533
+ alias old_initialize initialize
534
+ def initialize(params={})
535
+ default_params = { }
536
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
537
+ params = default_params.merge(params)
538
+ old_initialize()
539
+ end
540
+ end
541
+
542
+ class FXDelegator
543
+ alias old_initialize initialize
544
+ def initialize(params={})
545
+ default_params = { :delegate => nil }
546
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
547
+ params = default_params.merge(params)
548
+ old_initialize(params[:delegate])
549
+ end
550
+ end
551
+
552
+ class FXDial
553
+ alias old_initialize initialize
554
+ def initialize(p, params={})
555
+ default_params = { :tgt => nil, :sel => 0, :opts => DIAL_NORMAL, :x => 0, :y => 0, :w => 0, :h => 0, :pl => DEFAULT_PAD, :pr => DEFAULT_PAD, :pt => DEFAULT_PAD, :pb => DEFAULT_PAD }
556
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
557
+ params = default_params.merge(params)
558
+ old_initialize(p, params[:tgt], params[:sel], params[:opts], params[:x], params[:y], params[:w], params[:h], params[:pl], params[:pr], params[:pt], params[:pb])
559
+ end
560
+ end
561
+
562
+ class FXDialogBox
563
+ alias old_initialize initialize
564
+ def initialize(owner, title, params={})
565
+ default_params = { :opts => DECOR_TITLE|DECOR_BORDER, :x => 0, :y => 0, :w => 0, :h => 0, :padLeft => 10, :padRight => 10, :padTop => 10, :padBottom => 10, :hSpacing => 4, :vSpacing => 4 }
566
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
567
+ params = default_params.merge(params)
568
+ old_initialize(owner, title, params[:opts], params[:x], params[:y], params[:w], params[:h], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], params[:hSpacing], params[:vSpacing])
569
+ end
570
+ end
571
+
572
+ class FXDict
573
+ alias old_initialize initialize
574
+ def initialize(params={})
575
+ default_params = { }
576
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
577
+ params = default_params.merge(params)
578
+ old_initialize()
579
+ end
580
+ end
581
+
582
+ class FXDirBox
583
+ alias old_initialize initialize
584
+ def initialize(p, params={})
585
+ default_params = { :tgt => nil, :sel => 0, :opts => FRAME_SUNKEN|FRAME_THICK|TREELISTBOX_NORMAL, :x => 0, :y => 0, :w => 0, :h => 0, :pl => DEFAULT_PAD, :pr => DEFAULT_PAD, :pt => DEFAULT_PAD, :pb => DEFAULT_PAD }
586
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
587
+ params = default_params.merge(params)
588
+ old_initialize(p, params[:tgt], params[:sel], params[:opts], params[:x], params[:y], params[:w], params[:h], params[:pl], params[:pr], params[:pt], params[:pb])
589
+ end
590
+ end
591
+
592
+ class FXDirDialog
593
+ alias old_initialize initialize
594
+ def initialize(owner, name, params={})
595
+ default_params = { :opts => 0, :x => 0, :y => 0, :w => 500, :h => 300 }
596
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
597
+ params = default_params.merge(params)
598
+ old_initialize(owner, name, params[:opts], params[:x], params[:y], params[:w], params[:h])
599
+ end
600
+ end
601
+
602
+ class FXDirItem
603
+ alias old_initialize initialize
604
+ def initialize(text, params={})
605
+ default_params = { :oi => nil, :ci => nil, :data => nil }
606
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
607
+ params = default_params.merge(params)
608
+ old_initialize(text, params[:oi], params[:ci], params[:data])
609
+ end
610
+ end
611
+
612
+ class FXDirList
613
+ alias old_initialize initialize
614
+ def initialize(p, params={})
615
+ default_params = { :tgt => nil, :sel => 0, :opts => 0, :x => 0, :y => 0, :w => 0, :h => 0 }
616
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
617
+ params = default_params.merge(params)
618
+ old_initialize(p, params[:tgt], params[:sel], params[:opts], params[:x], params[:y], params[:w], params[:h])
619
+ end
620
+ end
621
+
622
+ class FXDirSelector
623
+ alias old_initialize initialize
624
+ def initialize(p, params={})
625
+ default_params = { :tgt => nil, :sel => 0, :opts => 0, :x => 0, :y => 0, :w => 0, :h => 0 }
626
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
627
+ params = default_params.merge(params)
628
+ old_initialize(p, params[:tgt], params[:sel], params[:opts], params[:x], params[:y], params[:w], params[:h])
629
+ end
630
+ end
631
+
632
+ class FXDockHandler
633
+ alias old_initialize initialize
634
+ def initialize(p, tgt, sel, opts, x, y, w, h, pl, pr, pt, pb, params={})
635
+ default_params = { }
636
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
637
+ params = default_params.merge(params)
638
+ old_initialize(p, tgt, sel, opts, x, y, w, h, pl, pr, pt, pb)
639
+ end
640
+ end
641
+
642
+ class FXDockSite
643
+ alias old_initialize initialize
644
+ def initialize(p, params={})
645
+ default_params = { :opts => 0, :x => 0, :y => 0, :w => 0, :h => 0, :pl => 0, :pr => 0, :pt => 0, :pb => 0, :hs => 0, :vs => 0 }
646
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
647
+ params = default_params.merge(params)
648
+ old_initialize(p, params[:opts], params[:x], params[:y], params[:w], params[:h], params[:pl], params[:pr], params[:pt], params[:pb], params[:hs], params[:vs])
649
+ end
650
+ end
651
+
652
+ class FXDockTitle
653
+ alias old_initialize initialize
654
+ def initialize(p, text, params={})
655
+ default_params = { :tgt => nil, :sel => 0, :opts => FRAME_NORMAL|JUSTIFY_CENTER_X|JUSTIFY_CENTER_Y, :x => 0, :y => 0, :w => 0, :h => 0, :pl => 0, :pr => 0, :pt => 0, :pb => 0 }
656
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
657
+ params = default_params.merge(params)
658
+ old_initialize(p, text, params[:tgt], params[:sel], params[:opts], params[:x], params[:y], params[:w], params[:h], params[:pl], params[:pr], params[:pt], params[:pb])
659
+ end
660
+ end
661
+
662
+ class FXDocument
663
+ alias old_initialize initialize
664
+ def initialize(params={})
665
+ default_params = { }
666
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
667
+ params = default_params.merge(params)
668
+ old_initialize()
669
+ end
670
+ end
671
+
672
+ class FXDragCorner
673
+ alias old_initialize initialize
674
+ def initialize(p, params={})
675
+ default_params = { }
676
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
677
+ params = default_params.merge(params)
678
+ old_initialize(p)
679
+ end
680
+ end
681
+
682
+ class FXDrawable
683
+ alias old_initialize initialize
684
+ def initialize(params={})
685
+ default_params = { }
686
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
687
+ params = default_params.merge(params)
688
+ old_initialize()
689
+ end
690
+ end
691
+
692
+ class FXDriveBox
693
+ alias old_initialize initialize
694
+ def initialize(p, params={})
695
+ default_params = { :tgt => nil, :sel => 0, :opts => FRAME_SUNKEN|FRAME_THICK|LISTBOX_NORMAL, :x => 0, :y => 0, :w => 0, :h => 0, :pl => DEFAULT_PAD, :pr => DEFAULT_PAD, :pt => DEFAULT_PAD, :pb => DEFAULT_PAD }
696
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
697
+ params = default_params.merge(params)
698
+ old_initialize(p, params[:tgt], params[:sel], params[:opts], params[:x], params[:y], params[:w], params[:h], params[:pl], params[:pr], params[:pt], params[:pb])
699
+ end
700
+ end
701
+
702
+ class FXFileDialog
703
+ alias old_initialize initialize
704
+ def initialize(owner, name, params={})
705
+ default_params = { :opts => 0, :x => 0, :y => 0, :w => 500, :h => 300 }
706
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
707
+ params = default_params.merge(params)
708
+ old_initialize(owner, name, params[:opts], params[:x], params[:y], params[:w], params[:h])
709
+ end
710
+ end
711
+
712
+ class FXFileAssoc
713
+ alias old_initialize initialize
714
+ def initialize(params={})
715
+ default_params = { }
716
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
717
+ params = default_params.merge(params)
718
+ old_initialize()
719
+ end
720
+ end
721
+
722
+ class FXFileDict
723
+ alias old_initialize initialize
724
+ def initialize(app, params={})
725
+ default_params = { :db => nil }
726
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
727
+ params = default_params.merge(params)
728
+ old_initialize(app, params[:db])
729
+ end
730
+ end
731
+
732
+ class FXFileItem
733
+ alias old_initialize initialize
734
+ def initialize(text, params={})
735
+ default_params = { :bi => nil, :mi => nil, :ptr => nil }
736
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
737
+ params = default_params.merge(params)
738
+ old_initialize(text, params[:bi], params[:mi], params[:ptr])
739
+ end
740
+ end
741
+
742
+ class FXFileList
743
+ alias old_initialize initialize
744
+ def initialize(p, params={})
745
+ default_params = { :tgt => nil, :sel => 0, :opts => 0, :x => 0, :y => 0, :w => 0, :h => 0 }
746
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
747
+ params = default_params.merge(params)
748
+ old_initialize(p, params[:tgt], params[:sel], params[:opts], params[:x], params[:y], params[:w], params[:h])
749
+ end
750
+ end
751
+
752
+ class FXFileSelector
753
+ alias old_initialize initialize
754
+ def initialize(p, params={})
755
+ default_params = { :tgt => nil, :sel => 0, :opts => 0, :x => 0, :y => 0, :w => 0, :h => 0 }
756
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
757
+ params = default_params.merge(params)
758
+ old_initialize(p, params[:tgt], params[:sel], params[:opts], params[:x], params[:y], params[:w], params[:h])
759
+ end
760
+ end
761
+
762
+ class FXFileStream
763
+ alias old_initialize initialize
764
+ def initialize(params={})
765
+ default_params = { :cont => nil }
766
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
767
+ params = default_params.merge(params)
768
+ old_initialize(params[:cont])
769
+ end
770
+ end
771
+
772
+ class FXFoldingItem
773
+ alias old_initialize initialize
774
+ def initialize(text, params={})
775
+ default_params = { :openIcon => nil, :closedIcon => nil, :data => nil }
776
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
777
+ params = default_params.merge(params)
778
+ old_initialize(text, params[:openIcon], params[:closedIcon], params[:data])
779
+ end
780
+ end
781
+
782
+ class FXFoldingList
783
+ alias old_initialize initialize
784
+ def initialize(p, params={})
785
+ default_params = { :tgt => nil, :sel => 0, :opts => TREELIST_NORMAL, :x => 0, :y => 0, :w => 0, :h => 0 }
786
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
787
+ params = default_params.merge(params)
788
+ old_initialize(p, params[:tgt], params[:sel], params[:opts], params[:x], params[:y], params[:w], params[:h])
789
+ end
790
+ end
791
+
792
+ class FXFontDesc
793
+ alias old_initialize initialize
794
+ def initialize(params={})
795
+ default_params = { }
796
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
797
+ params = default_params.merge(params)
798
+ old_initialize()
799
+ end
800
+ end
801
+
802
+ class FXFontDialog
803
+ alias old_initialize initialize
804
+ def initialize(owner, name, params={})
805
+ default_params = { :opts => 0, :x => 0, :y => 0, :w => 600, :h => 380 }
806
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
807
+ params = default_params.merge(params)
808
+ old_initialize(owner, name, params[:opts], params[:x], params[:y], params[:w], params[:h])
809
+ end
810
+ end
811
+
812
+ class FXFontSelector
813
+ alias old_initialize initialize
814
+ def initialize(p, params={})
815
+ default_params = { :tgt => nil, :sel => 0, :opts => 0, :x => 0, :y => 0, :w => 0, :h => 0 }
816
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
817
+ params = default_params.merge(params)
818
+ old_initialize(p, params[:tgt], params[:sel], params[:opts], params[:x], params[:y], params[:w], params[:h])
819
+ end
820
+ end
821
+
822
+ class FXFrame
823
+ alias old_initialize initialize
824
+ def initialize(parent, params={})
825
+ default_params = { :opts => FRAME_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
826
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
827
+ params = default_params.merge(params)
828
+ old_initialize(parent, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom])
829
+ end
830
+ end
831
+
832
+ class FXGIFCursor
833
+ alias old_initialize initialize
834
+ def initialize(a, pix, params={})
835
+ default_params = { :hx => -1, :hy => -1 }
836
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
837
+ params = default_params.merge(params)
838
+ old_initialize(a, pix, params[:hx], params[:hy])
839
+ end
840
+ end
841
+
842
+ class FXGIFIcon
843
+ alias old_initialize initialize
844
+ def initialize(a, params={})
845
+ default_params = { :pix => nil, :clr => 0, :opts => 0, :w => 1, :h => 1 }
846
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
847
+ params = default_params.merge(params)
848
+ old_initialize(a, params[:pix], params[:clr], params[:opts], params[:w], params[:h])
849
+ end
850
+ end
851
+
852
+ class FXGIFImage
853
+ alias old_initialize initialize
854
+ def initialize(a, params={})
855
+ default_params = { :pix => nil, :opts => 0, :w => 1, :h => 1 }
856
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
857
+ params = default_params.merge(params)
858
+ old_initialize(a, params[:pix], params[:opts], params[:w], params[:h])
859
+ end
860
+ end
861
+
862
+ class FXGLContext
863
+ alias old_initialize initialize
864
+ def initialize(app, visual, params={})
865
+ default_params = { :other => nil }
866
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
867
+ params = default_params.merge(params)
868
+ old_initialize(app, visual, params[:other])
869
+ end
870
+ end
871
+
872
+ class FXGLObject
873
+ alias old_initialize initialize
874
+ def initialize(params={})
875
+ default_params = { }
876
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
877
+ params = default_params.merge(params)
878
+ old_initialize()
879
+ end
880
+ end
881
+
882
+ class FXGLShape
883
+ alias old_initialize initialize
884
+ def initialize(x, y, z, opts, params={})
885
+ default_params = { :front => nil, :back => nil }
886
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
887
+ params = default_params.merge(params)
888
+ old_initialize(x, y, z, opts, params[:front], params[:back])
889
+ end
890
+ end
891
+
892
+ class FXViewport
893
+ alias old_initialize initialize
894
+ def initialize(params={})
895
+ default_params = { }
896
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
897
+ params = default_params.merge(params)
898
+ old_initialize()
899
+ end
900
+ end
901
+
902
+ class FXLight
903
+ alias old_initialize initialize
904
+ def initialize(params={})
905
+ default_params = { }
906
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
907
+ params = default_params.merge(params)
908
+ old_initialize()
909
+ end
910
+ end
911
+
912
+ class FXMaterial
913
+ alias old_initialize initialize
914
+ def initialize(params={})
915
+ default_params = { }
916
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
917
+ params = default_params.merge(params)
918
+ old_initialize()
919
+ end
920
+ end
921
+
922
+ class FXGLVisual
923
+ alias old_initialize initialize
924
+ def initialize(app, flags, params={})
925
+ default_params = { }
926
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
927
+ params = default_params.merge(params)
928
+ old_initialize(app, flags)
929
+ end
930
+ end
931
+
932
+ class FXGradient
933
+ alias old_initialize initialize
934
+ def initialize(params={})
935
+ default_params = { }
936
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
937
+ params = default_params.merge(params)
938
+ old_initialize()
939
+ end
940
+ end
941
+
942
+ class FXGradientBar
943
+ alias old_initialize initialize
944
+ def initialize(p, params={})
945
+ default_params = { :tgt => nil, :sel => 0, :opts => FRAME_NORMAL, :x => 0, :y => 0, :w => 0, :h => 0, :pl => DEFAULT_PAD, :pr => DEFAULT_PAD, :pt => DEFAULT_PAD, :pb => DEFAULT_PAD }
946
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
947
+ params = default_params.merge(params)
948
+ old_initialize(p, params[:tgt], params[:sel], params[:opts], params[:x], params[:y], params[:w], params[:h], params[:pl], params[:pr], params[:pt], params[:pb])
949
+ end
950
+ end
951
+
952
+ class FXGroupBox
953
+ alias old_initialize initialize
954
+ def initialize(parent, text, params={})
955
+ default_params = { :opts => GROUPBOX_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_SPACING, :padRight => DEFAULT_SPACING, :padTop => DEFAULT_SPACING, :padBottom => DEFAULT_SPACING, :hSpacing => DEFAULT_SPACING, :vSpacing => DEFAULT_SPACING }
956
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
957
+ params = default_params.merge(params)
958
+ old_initialize(parent, text, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], params[:hSpacing], params[:vSpacing])
959
+ end
960
+ end
961
+
962
+ class FXHeaderItem
963
+ alias old_initialize initialize
964
+ def initialize(text, params={})
965
+ default_params = { :ic => nil, :s => 0, :ptr => nil }
966
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
967
+ params = default_params.merge(params)
968
+ old_initialize(text, params[:ic], params[:s], params[:ptr])
969
+ end
970
+ end
971
+
972
+ class FXHeader
973
+ alias old_initialize initialize
974
+ def initialize(p, params={})
975
+ default_params = { :tgt => nil, :sel => 0, :opts => HEADER_NORMAL, :x => 0, :y => 0, :w => 0, :h => 0, :pl => DEFAULT_PAD, :pr => DEFAULT_PAD, :pt => DEFAULT_PAD, :pb => DEFAULT_PAD }
976
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
977
+ params = default_params.merge(params)
978
+ old_initialize(p, params[:tgt], params[:sel], params[:opts], params[:x], params[:y], params[:w], params[:h], params[:pl], params[:pr], params[:pt], params[:pb])
979
+ end
980
+ end
981
+
982
+ class FXHorizontalFrame
983
+ alias old_initialize initialize
984
+ def initialize(p, params={})
985
+ default_params = { :opts => 0, :x => 0, :y => 0, :w => 0, :h => 0, :pl => DEFAULT_SPACING, :pr => DEFAULT_SPACING, :pt => DEFAULT_SPACING, :pb => DEFAULT_SPACING, :hs => DEFAULT_SPACING, :vs => DEFAULT_SPACING }
986
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
987
+ params = default_params.merge(params)
988
+ old_initialize(p, params[:opts], params[:x], params[:y], params[:w], params[:h], params[:pl], params[:pr], params[:pt], params[:pb], params[:hs], params[:vs])
989
+ end
990
+ end
991
+
992
+ class FXICOIcon
993
+ alias old_initialize initialize
994
+ def initialize(a, params={})
995
+ default_params = { :pix => nil, :clr => 0, :opts => 0, :w => 1, :h => 1 }
996
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
997
+ params = default_params.merge(params)
998
+ old_initialize(a, params[:pix], params[:clr], params[:opts], params[:w], params[:h])
999
+ end
1000
+ end
1001
+
1002
+ class FXICOImage
1003
+ alias old_initialize initialize
1004
+ def initialize(a, params={})
1005
+ default_params = { :pix => nil, :opts => 0, :w => 1, :h => 1 }
1006
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1007
+ params = default_params.merge(params)
1008
+ old_initialize(a, params[:pix], params[:opts], params[:w], params[:h])
1009
+ end
1010
+ end
1011
+
1012
+ class FXIcon
1013
+ alias old_initialize initialize
1014
+ def initialize(app, params={})
1015
+ default_params = { :pix => nil, :clr => 0, :opts => 0, :w => 1, :h => 1 }
1016
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1017
+ params = default_params.merge(params)
1018
+ old_initialize(app, params[:pix], params[:clr], params[:opts], params[:w], params[:h])
1019
+ end
1020
+ end
1021
+
1022
+ class FXIconDict
1023
+ alias old_initialize initialize
1024
+ def initialize(app, params={})
1025
+ default_params = { :path => defaultIconPath }
1026
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1027
+ params = default_params.merge(params)
1028
+ old_initialize(app, params[:path])
1029
+ end
1030
+ end
1031
+
1032
+ class FXIconItem
1033
+ alias old_initialize initialize
1034
+ def initialize(text, params={})
1035
+ default_params = { :bigIcon => nil, :miniIcon => nil, :data => nil }
1036
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1037
+ params = default_params.merge(params)
1038
+ old_initialize(text, params[:bigIcon], params[:miniIcon], params[:data])
1039
+ end
1040
+ end
1041
+
1042
+ class FXIconList
1043
+ alias old_initialize initialize
1044
+ def initialize(p, params={})
1045
+ default_params = { :tgt => nil, :sel => 0, :opts => ICONLIST_NORMAL, :x => 0, :y => 0, :w => 0, :h => 0 }
1046
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1047
+ params = default_params.merge(params)
1048
+ old_initialize(p, params[:tgt], params[:sel], params[:opts], params[:x], params[:y], params[:w], params[:h])
1049
+ end
1050
+ end
1051
+
1052
+ class FXIconSource
1053
+ alias old_initialize initialize
1054
+ def initialize(app, params={})
1055
+ default_params = { }
1056
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1057
+ params = default_params.merge(params)
1058
+ old_initialize(app)
1059
+ end
1060
+ end
1061
+
1062
+ class FXId
1063
+ alias old_initialize initialize
1064
+ def initialize(params={})
1065
+ default_params = { }
1066
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1067
+ params = default_params.merge(params)
1068
+ old_initialize()
1069
+ end
1070
+ end
1071
+
1072
+ class FXImage
1073
+ alias old_initialize initialize
1074
+ def initialize(a, params={})
1075
+ default_params = { :pixels => nil, :opts => 0, :w => 1, :h => 1 }
1076
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1077
+ params = default_params.merge(params)
1078
+ old_initialize(a, params[:pixels], params[:opts], params[:w], params[:h])
1079
+ end
1080
+ end
1081
+
1082
+ class FXImageFrame
1083
+ alias old_initialize initialize
1084
+ def initialize(p, img, params={})
1085
+ default_params = { :opts => FRAME_SUNKEN|FRAME_THICK, :x => 0, :y => 0, :w => 0, :h => 0, :pl => 0, :pr => 0, :pt => 0, :pb => 0 }
1086
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1087
+ params = default_params.merge(params)
1088
+ old_initialize(p, img, params[:opts], params[:x], params[:y], params[:w], params[:h], params[:pl], params[:pr], params[:pt], params[:pb])
1089
+ end
1090
+ end
1091
+
1092
+ class FXImageView
1093
+ alias old_initialize initialize
1094
+ def initialize(p, params={})
1095
+ default_params = { :img => nil, :tgt => nil, :sel => 0, :opts => 0, :x => 0, :y => 0, :w => 0, :h => 0 }
1096
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1097
+ params = default_params.merge(params)
1098
+ old_initialize(p, params[:img], params[:tgt], params[:sel], params[:opts], params[:x], params[:y], params[:w], params[:h])
1099
+ end
1100
+ end
1101
+
1102
+ class FXInputDialog
1103
+ alias old_initialize initialize
1104
+ def initialize(owner, caption, label, params={})
1105
+ default_params = { :icon => nil, :opts => INPUTDIALOG_STRING, :x => 0, :y => 0, :w => 0, :h => 0 }
1106
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1107
+ params = default_params.merge(params)
1108
+ old_initialize(owner, caption, label, params[:icon], params[:opts], params[:x], params[:y], params[:w], params[:h])
1109
+ end
1110
+ end
1111
+
1112
+ class FXJPGIcon
1113
+ alias old_initialize initialize
1114
+ def initialize(a, params={})
1115
+ default_params = { :pix => nil, :clr => 0, :opts => 0, :w => 1, :h => 1 }
1116
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1117
+ params = default_params.merge(params)
1118
+ old_initialize(a, params[:pix], params[:clr], params[:opts], params[:w], params[:h])
1119
+ end
1120
+ end
1121
+
1122
+ class FXJPGImage
1123
+ alias old_initialize initialize
1124
+ def initialize(a, params={})
1125
+ default_params = { :pix => nil, :opts => 0, :w => 1, :h => 1 }
1126
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1127
+ params = default_params.merge(params)
1128
+ old_initialize(a, params[:pix], params[:opts], params[:w], params[:h])
1129
+ end
1130
+ end
1131
+
1132
+ class FXKnob
1133
+ alias old_initialize initialize
1134
+ def initialize(p, params={})
1135
+ default_params = { :tgt => nil, :sel => 0, :opts => KNOB_NORMAL, :x => 0, :y => 0, :w => 0, :h => 0, :pl => DEFAULT_PAD, :pr => DEFAULT_PAD, :pt => DEFAULT_PAD, :pb => DEFAULT_PAD }
1136
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1137
+ params = default_params.merge(params)
1138
+ old_initialize(p, params[:tgt], params[:sel], params[:opts], params[:x], params[:y], params[:w], params[:h], params[:pl], params[:pr], params[:pt], params[:pb])
1139
+ end
1140
+ end
1141
+
1142
+ class FXLabel
1143
+ alias old_initialize initialize
1144
+ def initialize(parent, text, params={})
1145
+ default_params = { :icon => nil, :opts => LABEL_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
1146
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1147
+ params = default_params.merge(params)
1148
+ old_initialize(parent, text, params[:icon], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom])
1149
+ end
1150
+ end
1151
+
1152
+ class FXListItem
1153
+ alias old_initialize initialize
1154
+ def initialize(text, params={})
1155
+ default_params = { :icon => nil, :data => nil }
1156
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1157
+ params = default_params.merge(params)
1158
+ old_initialize(text, params[:icon], params[:data])
1159
+ end
1160
+ end
1161
+
1162
+ class FXList
1163
+ alias old_initialize initialize
1164
+ def initialize(p, params={})
1165
+ default_params = { :tgt => nil, :sel => 0, :opts => LIST_NORMAL, :x => 0, :y => 0, :w => 0, :h => 0 }
1166
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1167
+ params = default_params.merge(params)
1168
+ old_initialize(p, params[:tgt], params[:sel], params[:opts], params[:x], params[:y], params[:w], params[:h])
1169
+ end
1170
+ end
1171
+
1172
+ class FXListBox
1173
+ alias old_initialize initialize
1174
+ def initialize(p, params={})
1175
+ default_params = { :tgt => nil, :sel => 0, :opts => FRAME_SUNKEN|FRAME_THICK|LISTBOX_NORMAL, :x => 0, :y => 0, :w => 0, :h => 0, :pl => DEFAULT_PAD, :pr => DEFAULT_PAD, :pt => DEFAULT_PAD, :pb => DEFAULT_PAD }
1176
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1177
+ params = default_params.merge(params)
1178
+ old_initialize(p, params[:tgt], params[:sel], params[:opts], params[:x], params[:y], params[:w], params[:h], params[:pl], params[:pr], params[:pt], params[:pb])
1179
+ end
1180
+ end
1181
+
1182
+ class FXMainWindow
1183
+ alias old_initialize initialize
1184
+ def initialize(app, title, params={})
1185
+ default_params = { :icon => nil, :miniIcon => nil, :opts => DECOR_ALL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => 0, :padRight => 0, :padTop => 0, :padBottom => 0, :hSpacing => 4, :vSpacing => 4 }
1186
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1187
+ params = default_params.merge(params)
1188
+ old_initialize(app, title, params[:icon], params[:miniIcon], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], params[:hSpacing], params[:vSpacing])
1189
+ end
1190
+ end
1191
+
1192
+ class FXMatrix
1193
+ alias old_initialize initialize
1194
+ def initialize(parent, params={})
1195
+ default_params = { :n => 1, :opts => MATRIX_BY_ROWS, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_SPACING, :padRight => DEFAULT_SPACING, :padTop => DEFAULT_SPACING, :padBottom => DEFAULT_SPACING, :hSpacing => DEFAULT_SPACING, :vSpacing => DEFAULT_SPACING }
1196
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1197
+ params = default_params.merge(params)
1198
+ old_initialize(parent, params[:n], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], params[:hSpacing], params[:vSpacing])
1199
+ end
1200
+ end
1201
+
1202
+ class FXMDIDeleteButton
1203
+ alias old_initialize initialize
1204
+ def initialize(p, params={})
1205
+ default_params = { :tgt => nil, :sel => 0, :opts => FRAME_RAISED, :x => 0, :y => 0, :w => 0, :h => 0 }
1206
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1207
+ params = default_params.merge(params)
1208
+ old_initialize(p, params[:tgt], params[:sel], params[:opts], params[:x], params[:y], params[:w], params[:h])
1209
+ end
1210
+ end
1211
+
1212
+ class FXMDIRestoreButton
1213
+ alias old_initialize initialize
1214
+ def initialize(p, params={})
1215
+ default_params = { :tgt => nil, :sel => 0, :opts => FRAME_RAISED, :x => 0, :y => 0, :w => 0, :h => 0 }
1216
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1217
+ params = default_params.merge(params)
1218
+ old_initialize(p, params[:tgt], params[:sel], params[:opts], params[:x], params[:y], params[:w], params[:h])
1219
+ end
1220
+ end
1221
+
1222
+ class FXMDIMaximizeButton
1223
+ alias old_initialize initialize
1224
+ def initialize(p, params={})
1225
+ default_params = { :tgt => nil, :sel => 0, :opts => FRAME_RAISED, :x => 0, :y => 0, :w => 0, :h => 0 }
1226
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1227
+ params = default_params.merge(params)
1228
+ old_initialize(p, params[:tgt], params[:sel], params[:opts], params[:x], params[:y], params[:w], params[:h])
1229
+ end
1230
+ end
1231
+
1232
+ class FXMDIMinimizeButton
1233
+ alias old_initialize initialize
1234
+ def initialize(p, params={})
1235
+ default_params = { :tgt => nil, :sel => 0, :opts => FRAME_RAISED, :x => 0, :y => 0, :w => 0, :h => 0 }
1236
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1237
+ params = default_params.merge(params)
1238
+ old_initialize(p, params[:tgt], params[:sel], params[:opts], params[:x], params[:y], params[:w], params[:h])
1239
+ end
1240
+ end
1241
+
1242
+ class FXMDIWindowButton
1243
+ alias old_initialize initialize
1244
+ def initialize(p, pup, params={})
1245
+ default_params = { :tgt => nil, :sel => 0, :opts => 0, :x => 0, :y => 0, :w => 0, :h => 0 }
1246
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1247
+ params = default_params.merge(params)
1248
+ old_initialize(p, pup, params[:tgt], params[:sel], params[:opts], params[:x], params[:y], params[:w], params[:h])
1249
+ end
1250
+ end
1251
+
1252
+ class FXMDIMenu
1253
+ alias old_initialize initialize
1254
+ def initialize(owner, params={})
1255
+ default_params = { :tgt => nil }
1256
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1257
+ params = default_params.merge(params)
1258
+ old_initialize(owner, params[:tgt])
1259
+ end
1260
+ end
1261
+
1262
+ class FXMDIChild
1263
+ alias old_initialize initialize
1264
+ def initialize(p, name, params={})
1265
+ default_params = { :ic => nil, :pup => nil, :opts => 0, :x => 0, :y => 0, :w => 0, :h => 0 }
1266
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1267
+ params = default_params.merge(params)
1268
+ old_initialize(p, name, params[:ic], params[:pup], params[:opts], params[:x], params[:y], params[:w], params[:h])
1269
+ end
1270
+ end
1271
+
1272
+ class FXMDIClient
1273
+ alias old_initialize initialize
1274
+ def initialize(p, params={})
1275
+ default_params = { :opts => 0, :x => 0, :y => 0, :w => 0, :h => 0 }
1276
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1277
+ params = default_params.merge(params)
1278
+ old_initialize(p, params[:opts], params[:x], params[:y], params[:w], params[:h])
1279
+ end
1280
+ end
1281
+
1282
+ class FXMemoryBuffer
1283
+ alias old_initialize initialize
1284
+ def initialize(data, params={})
1285
+ default_params = { }
1286
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1287
+ params = default_params.merge(params)
1288
+ old_initialize(data)
1289
+ end
1290
+ end
1291
+
1292
+ class FXMemoryStream
1293
+ alias old_initialize initialize
1294
+ def initialize(params={})
1295
+ default_params = { :cont => nil }
1296
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1297
+ params = default_params.merge(params)
1298
+ old_initialize(params[:cont])
1299
+ end
1300
+ end
1301
+
1302
+ class FXMenuButton
1303
+ alias old_initialize initialize
1304
+ def initialize(parent, text, params={})
1305
+ default_params = { :icon => nil, :popupMenu => nil, :opts => JUSTIFY_NORMAL|ICON_BEFORE_TEXT|MENUBUTTON_DOWN, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_SPACING, :padRight => DEFAULT_SPACING, :padTop => DEFAULT_SPACING, :padBottom => DEFAULT_SPACING }
1306
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1307
+ params = default_params.merge(params)
1308
+ old_initialize(parent, text, params[:icon], params[:popupMenu], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom])
1309
+ end
1310
+ end
1311
+
1312
+ class FXMenuCaption
1313
+ alias old_initialize initialize
1314
+ def initialize(parent, text, params={})
1315
+ default_params = { :icon => nil, :opts => 0 }
1316
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1317
+ params = default_params.merge(params)
1318
+ old_initialize(parent, text, params[:icon], params[:opts])
1319
+ end
1320
+ end
1321
+
1322
+ class FXMenuCascade
1323
+ alias old_initialize initialize
1324
+ def initialize(parent, text, params={})
1325
+ default_params = { :icon => nil, :popupMenu => nil, :opts => 0 }
1326
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1327
+ params = default_params.merge(params)
1328
+ old_initialize(parent, text, params[:icon], params[:popupMenu], params[:opts])
1329
+ end
1330
+ end
1331
+
1332
+ class FXMenuCheck
1333
+ alias old_initialize initialize
1334
+ def initialize(p, text, params={})
1335
+ default_params = { :tgt => nil, :sel => 0, :opts => 0 }
1336
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1337
+ params = default_params.merge(params)
1338
+ old_initialize(p, text, params[:tgt], params[:sel], params[:opts])
1339
+ end
1340
+ end
1341
+
1342
+ class FXMenuCommand
1343
+ alias old_initialize initialize
1344
+ def initialize(p, text, params={})
1345
+ default_params = { :ic => nil, :tgt => nil, :sel => 0, :opts => 0 }
1346
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1347
+ params = default_params.merge(params)
1348
+ old_initialize(p, text, params[:ic], params[:tgt], params[:sel], params[:opts])
1349
+ end
1350
+ end
1351
+
1352
+ class FXMenuPane
1353
+ alias old_initialize initialize
1354
+ def initialize(owner, params={})
1355
+ default_params = { :opts => 0 }
1356
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1357
+ params = default_params.merge(params)
1358
+ old_initialize(owner, params[:opts])
1359
+ end
1360
+ end
1361
+
1362
+ class FXMenuRadio
1363
+ alias old_initialize initialize
1364
+ def initialize(p, text, params={})
1365
+ default_params = { :tgt => nil, :sel => 0, :opts => 0 }
1366
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1367
+ params = default_params.merge(params)
1368
+ old_initialize(p, text, params[:tgt], params[:sel], params[:opts])
1369
+ end
1370
+ end
1371
+
1372
+ class FXMenuSeparator
1373
+ alias old_initialize initialize
1374
+ def initialize(parent, params={})
1375
+ default_params = { :opts => 0 }
1376
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1377
+ params = default_params.merge(params)
1378
+ old_initialize(parent, params[:opts])
1379
+ end
1380
+ end
1381
+
1382
+ class FXMenuTitle
1383
+ alias old_initialize initialize
1384
+ def initialize(parent, text, params={})
1385
+ default_params = { :icon => nil, :popupMenu => nil, :opts => 0 }
1386
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1387
+ params = default_params.merge(params)
1388
+ old_initialize(parent, text, params[:icon], params[:popupMenu], params[:opts])
1389
+ end
1390
+ end
1391
+
1392
+ class FXMessageBox
1393
+ alias old_initialize initialize
1394
+ def initialize(owner, caption, text, params={})
1395
+ default_params = { :ic => nil, :opts => 0, :x => 0, :y => 0 }
1396
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1397
+ params = default_params.merge(params)
1398
+ old_initialize(owner, caption, text, params[:ic], params[:opts], params[:x], params[:y])
1399
+ end
1400
+ end
1401
+
1402
+ class FXObject
1403
+ alias old_initialize initialize
1404
+ def initialize(params={})
1405
+ default_params = { }
1406
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1407
+ params = default_params.merge(params)
1408
+ old_initialize()
1409
+ end
1410
+ end
1411
+
1412
+ class FXOption
1413
+ alias old_initialize initialize
1414
+ def initialize(p, text, params={})
1415
+ default_params = { :ic => nil, :tgt => nil, :sel => 0, :opts => JUSTIFY_NORMAL|ICON_BEFORE_TEXT, :x => 0, :y => 0, :w => 0, :h => 0, :pl => DEFAULT_PAD, :pr => DEFAULT_PAD, :pt => DEFAULT_PAD, :pb => DEFAULT_PAD }
1416
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1417
+ params = default_params.merge(params)
1418
+ old_initialize(p, text, params[:ic], params[:tgt], params[:sel], params[:opts], params[:x], params[:y], params[:w], params[:h], params[:pl], params[:pr], params[:pt], params[:pb])
1419
+ end
1420
+ end
1421
+
1422
+ class FXOptionMenu
1423
+ alias old_initialize initialize
1424
+ def initialize(p, params={})
1425
+ default_params = { :pup => nil, :opts => JUSTIFY_NORMAL|ICON_BEFORE_TEXT, :x => 0, :y => 0, :w => 0, :h => 0, :pl => DEFAULT_PAD, :pr => DEFAULT_PAD, :pt => DEFAULT_PAD, :pb => DEFAULT_PAD }
1426
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1427
+ params = default_params.merge(params)
1428
+ old_initialize(p, params[:pup], params[:opts], params[:x], params[:y], params[:w], params[:h], params[:pl], params[:pr], params[:pt], params[:pb])
1429
+ end
1430
+ end
1431
+
1432
+ class FXPCXIcon
1433
+ alias old_initialize initialize
1434
+ def initialize(a, params={})
1435
+ default_params = { :pix => nil, :clr => 0, :opts => 0, :w => 1, :h => 1 }
1436
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1437
+ params = default_params.merge(params)
1438
+ old_initialize(a, params[:pix], params[:clr], params[:opts], params[:w], params[:h])
1439
+ end
1440
+ end
1441
+
1442
+ class FXPCXImage
1443
+ alias old_initialize initialize
1444
+ def initialize(a, params={})
1445
+ default_params = { :pix => nil, :opts => 0, :w => 1, :h => 1 }
1446
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1447
+ params = default_params.merge(params)
1448
+ old_initialize(a, params[:pix], params[:opts], params[:w], params[:h])
1449
+ end
1450
+ end
1451
+
1452
+ class FXPicker
1453
+ alias old_initialize initialize
1454
+ def initialize(p, text, params={})
1455
+ default_params = { :ic => nil, :tgt => nil, :sel => 0, :opts => BUTTON_NORMAL, :x => 0, :y => 0, :w => 0, :h => 0, :pl => DEFAULT_PAD, :pr => DEFAULT_PAD, :pt => DEFAULT_PAD, :pb => DEFAULT_PAD }
1456
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1457
+ params = default_params.merge(params)
1458
+ old_initialize(p, text, params[:ic], params[:tgt], params[:sel], params[:opts], params[:x], params[:y], params[:w], params[:h], params[:pl], params[:pr], params[:pt], params[:pb])
1459
+ end
1460
+ end
1461
+
1462
+ class FXPNGIcon
1463
+ alias old_initialize initialize
1464
+ def initialize(a, params={})
1465
+ default_params = { :pix => nil, :clr => 0, :opts => 0, :w => 1, :h => 1 }
1466
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1467
+ params = default_params.merge(params)
1468
+ old_initialize(a, params[:pix], params[:clr], params[:opts], params[:w], params[:h])
1469
+ end
1470
+ end
1471
+
1472
+ class FXPNGImage
1473
+ alias old_initialize initialize
1474
+ def initialize(a, params={})
1475
+ default_params = { :pix => nil, :opts => 0, :w => 1, :h => 1 }
1476
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1477
+ params = default_params.merge(params)
1478
+ old_initialize(a, params[:pix], params[:opts], params[:w], params[:h])
1479
+ end
1480
+ end
1481
+
1482
+ class FXPopup
1483
+ alias old_initialize initialize
1484
+ def initialize(owner, params={})
1485
+ default_params = { :opts => POPUP_VERTICAL|FRAME_RAISED|FRAME_THICK, :x => 0, :y => 0, :w => 0, :h => 0 }
1486
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1487
+ params = default_params.merge(params)
1488
+ old_initialize(owner, params[:opts], params[:x], params[:y], params[:w], params[:h])
1489
+ end
1490
+ end
1491
+
1492
+ class FXPPMIcon
1493
+ alias old_initialize initialize
1494
+ def initialize(a, params={})
1495
+ default_params = { :pix => nil, :clr => 0, :opts => 0, :w => 1, :h => 1 }
1496
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1497
+ params = default_params.merge(params)
1498
+ old_initialize(a, params[:pix], params[:clr], params[:opts], params[:w], params[:h])
1499
+ end
1500
+ end
1501
+
1502
+ class FXPPMImage
1503
+ alias old_initialize initialize
1504
+ def initialize(a, params={})
1505
+ default_params = { :pix => nil, :opts => 0, :w => 1, :h => 1 }
1506
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1507
+ params = default_params.merge(params)
1508
+ old_initialize(a, params[:pix], params[:opts], params[:w], params[:h])
1509
+ end
1510
+ end
1511
+
1512
+ class FXPrintDialog
1513
+ alias old_initialize initialize
1514
+ def initialize(owner, name, params={})
1515
+ default_params = { :opts => 0, :x => 0, :y => 0, :w => 0, :h => 0 }
1516
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1517
+ params = default_params.merge(params)
1518
+ old_initialize(owner, name, params[:opts], params[:x], params[:y], params[:w], params[:h])
1519
+ end
1520
+ end
1521
+
1522
+ class FXProgressBar
1523
+ alias old_initialize initialize
1524
+ def initialize(p, params={})
1525
+ default_params = { :tgt => nil, :sel => 0, :opts => PROGRESSBAR_NORMAL, :x => 0, :y => 0, :w => 0, :h => 0, :pl => DEFAULT_PAD, :pr => DEFAULT_PAD, :pt => DEFAULT_PAD, :pb => DEFAULT_PAD }
1526
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1527
+ params = default_params.merge(params)
1528
+ old_initialize(p, params[:tgt], params[:sel], params[:opts], params[:x], params[:y], params[:w], params[:h], params[:pl], params[:pr], params[:pt], params[:pb])
1529
+ end
1530
+ end
1531
+
1532
+ class FXProgressDialog
1533
+ alias old_initialize initialize
1534
+ def initialize(owner, caption, label, params={})
1535
+ default_params = { :opts => PROGRESSDIALOG_NORMAL, :x => 0, :y => 0, :w => 0, :h => 0 }
1536
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1537
+ params = default_params.merge(params)
1538
+ old_initialize(owner, caption, label, params[:opts], params[:x], params[:y], params[:w], params[:h])
1539
+ end
1540
+ end
1541
+
1542
+ class FXRadioButton
1543
+ alias old_initialize initialize
1544
+ def initialize(parent, text, params={})
1545
+ default_params = { :target => nil, :selector => 0, :opts => RADIOBUTTON_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
1546
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1547
+ params = default_params.merge(params)
1548
+ old_initialize(parent, text, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom])
1549
+ end
1550
+ end
1551
+
1552
+ class FXRealSlider
1553
+ alias old_initialize initialize
1554
+ def initialize(p, params={})
1555
+ default_params = { :tgt => nil, :sel => 0, :opts => REALSLIDER_NORMAL, :x => 0, :y => 0, :w => 0, :h => 0, :pl => 0, :pr => 0, :pt => 0, :pb => 0 }
1556
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1557
+ params = default_params.merge(params)
1558
+ old_initialize(p, params[:tgt], params[:sel], params[:opts], params[:x], params[:y], params[:w], params[:h], params[:pl], params[:pr], params[:pt], params[:pb])
1559
+ end
1560
+ end
1561
+
1562
+ class FXRealSpinner
1563
+ alias old_initialize initialize
1564
+ def initialize(p, cols, params={})
1565
+ default_params = { :tgt => nil, :sel => 0, :opts => REALSPIN_NORMAL, :x => 0, :y => 0, :w => 0, :h => 0, :pl => DEFAULT_PAD, :pr => DEFAULT_PAD, :pt => DEFAULT_PAD, :pb => DEFAULT_PAD }
1566
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1567
+ params = default_params.merge(params)
1568
+ old_initialize(p, cols, params[:tgt], params[:sel], params[:opts], params[:x], params[:y], params[:w], params[:h], params[:pl], params[:pr], params[:pt], params[:pb])
1569
+ end
1570
+ end
1571
+
1572
+ class FXRegistry
1573
+ alias old_initialize initialize
1574
+ def initialize(params={})
1575
+ default_params = { :appKey => "", :vendorKey => "" }
1576
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1577
+ params = default_params.merge(params)
1578
+ old_initialize(params[:appKey], params[:vendorKey])
1579
+ end
1580
+ end
1581
+
1582
+ class FXReplaceDialog
1583
+ alias old_initialize initialize
1584
+ def initialize(owner, caption, params={})
1585
+ default_params = { :ic => nil, :opts => 0, :x => 0, :y => 0, :w => 0, :h => 0 }
1586
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1587
+ params = default_params.merge(params)
1588
+ old_initialize(owner, caption, params[:ic], params[:opts], params[:x], params[:y], params[:w], params[:h])
1589
+ end
1590
+ end
1591
+
1592
+ class FXRGBIcon
1593
+ alias old_initialize initialize
1594
+ def initialize(a, params={})
1595
+ default_params = { :pix => nil, :clr => 0, :opts => 0, :w => 1, :h => 1 }
1596
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1597
+ params = default_params.merge(params)
1598
+ old_initialize(a, params[:pix], params[:clr], params[:opts], params[:w], params[:h])
1599
+ end
1600
+ end
1601
+
1602
+ class FXRGBImage
1603
+ alias old_initialize initialize
1604
+ def initialize(a, params={})
1605
+ default_params = { :pix => nil, :opts => 0, :w => 1, :h => 1 }
1606
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1607
+ params = default_params.merge(params)
1608
+ old_initialize(a, params[:pix], params[:opts], params[:w], params[:h])
1609
+ end
1610
+ end
1611
+
1612
+ class FXRootWindow
1613
+ alias old_initialize initialize
1614
+ def initialize(a, vis, params={})
1615
+ default_params = { }
1616
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1617
+ params = default_params.merge(params)
1618
+ old_initialize(a, vis)
1619
+ end
1620
+ end
1621
+
1622
+ class FXRuler
1623
+ alias old_initialize initialize
1624
+ def initialize(p, params={})
1625
+ default_params = { :tgt => nil, :sel => 0, :opts => RULER_NORMAL, :x => 0, :y => 0, :w => 0, :h => 0, :pl => DEFAULT_PAD, :pr => DEFAULT_PAD, :pt => DEFAULT_PAD, :pb => DEFAULT_PAD }
1626
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1627
+ params = default_params.merge(params)
1628
+ old_initialize(p, params[:tgt], params[:sel], params[:opts], params[:x], params[:y], params[:w], params[:h], params[:pl], params[:pr], params[:pt], params[:pb])
1629
+ end
1630
+ end
1631
+
1632
+ class FXRulerView
1633
+ alias old_initialize initialize
1634
+ def initialize(p, params={})
1635
+ default_params = { :tgt => nil, :sel => 0, :opts => 0, :x => 0, :y => 0, :w => 0, :h => 0 }
1636
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1637
+ params = default_params.merge(params)
1638
+ old_initialize(p, params[:tgt], params[:sel], params[:opts], params[:x], params[:y], params[:w], params[:h])
1639
+ end
1640
+ end
1641
+
1642
+ class NotifyHeader
1643
+ alias old_initialize initialize
1644
+ def initialize(params={})
1645
+ default_params = { }
1646
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1647
+ params = default_params.merge(params)
1648
+ old_initialize()
1649
+ end
1650
+ end
1651
+
1652
+ class SCNotification
1653
+ alias old_initialize initialize
1654
+ def initialize(params={})
1655
+ default_params = { }
1656
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1657
+ params = default_params.merge(params)
1658
+ old_initialize()
1659
+ end
1660
+ end
1661
+
1662
+ class TextRange
1663
+ alias old_initialize initialize
1664
+ def initialize(start, last, size, params={})
1665
+ default_params = { }
1666
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1667
+ params = default_params.merge(params)
1668
+ old_initialize(start, last, size)
1669
+ end
1670
+ end
1671
+
1672
+ class FXScintilla
1673
+ alias old_initialize initialize
1674
+ def initialize(p, params={})
1675
+ default_params = { :tgt => nil, :sel => 0, :opts => 0, :x => 0, :y => 0, :w => 0, :h => 0 }
1676
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1677
+ params = default_params.merge(params)
1678
+ old_initialize(p, params[:tgt], params[:sel], params[:opts], params[:x], params[:y], params[:w], params[:h])
1679
+ end
1680
+ end
1681
+
1682
+ class FXScrollArea
1683
+ alias old_initialize initialize
1684
+ def initialize(parent, params={})
1685
+ default_params = { :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
1686
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1687
+ params = default_params.merge(params)
1688
+ old_initialize(parent, params[:opts], params[:x], params[:y], params[:width], params[:height])
1689
+ end
1690
+ end
1691
+
1692
+ class FXScrollBar
1693
+ alias old_initialize initialize
1694
+ def initialize(p, params={})
1695
+ default_params = { :tgt => nil, :sel => 0, :opts => SCROLLBAR_VERTICAL, :x => 0, :y => 0, :w => 0, :h => 0 }
1696
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1697
+ params = default_params.merge(params)
1698
+ old_initialize(p, params[:tgt], params[:sel], params[:opts], params[:x], params[:y], params[:w], params[:h])
1699
+ end
1700
+ end
1701
+
1702
+ class FXScrollCorner
1703
+ alias old_initialize initialize
1704
+ def initialize(p, params={})
1705
+ default_params = { }
1706
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1707
+ params = default_params.merge(params)
1708
+ old_initialize(p)
1709
+ end
1710
+ end
1711
+
1712
+ class FXScrollPane
1713
+ alias old_initialize initialize
1714
+ def initialize(owner, nvis, params={})
1715
+ default_params = { :opts => 0 }
1716
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1717
+ params = default_params.merge(params)
1718
+ old_initialize(owner, nvis, params[:opts])
1719
+ end
1720
+ end
1721
+
1722
+ class FXScrollWindow
1723
+ alias old_initialize initialize
1724
+ def initialize(p, params={})
1725
+ default_params = { :opts => 0, :x => 0, :y => 0, :w => 0, :h => 0 }
1726
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1727
+ params = default_params.merge(params)
1728
+ old_initialize(p, params[:opts], params[:x], params[:y], params[:w], params[:h])
1729
+ end
1730
+ end
1731
+
1732
+ class FXSearchDialog
1733
+ alias old_initialize initialize
1734
+ def initialize(owner, caption, params={})
1735
+ default_params = { :ic => nil, :opts => 0, :x => 0, :y => 0, :w => 0, :h => 0 }
1736
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1737
+ params = default_params.merge(params)
1738
+ old_initialize(owner, caption, params[:ic], params[:opts], params[:x], params[:y], params[:w], params[:h])
1739
+ end
1740
+ end
1741
+
1742
+ class FXSeparator
1743
+ alias old_initialize initialize
1744
+ def initialize(p, params={})
1745
+ default_params = { :opts => SEPARATOR_GROOVE|LAYOUT_FILL_X, :x => 0, :y => 0, :w => 0, :h => 0, :pl => 0, :pr => 0, :pt => 0, :pb => 0 }
1746
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1747
+ params = default_params.merge(params)
1748
+ old_initialize(p, params[:opts], params[:x], params[:y], params[:w], params[:h], params[:pl], params[:pr], params[:pt], params[:pb])
1749
+ end
1750
+ end
1751
+
1752
+ class FXHorizontalSeparator
1753
+ alias old_initialize initialize
1754
+ def initialize(p, params={})
1755
+ default_params = { :opts => SEPARATOR_GROOVE|LAYOUT_FILL_X, :x => 0, :y => 0, :w => 0, :h => 0, :pl => 1, :pr => 1, :pt => 0, :pb => 0 }
1756
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1757
+ params = default_params.merge(params)
1758
+ old_initialize(p, params[:opts], params[:x], params[:y], params[:w], params[:h], params[:pl], params[:pr], params[:pt], params[:pb])
1759
+ end
1760
+ end
1761
+
1762
+ class FXVerticalSeparator
1763
+ alias old_initialize initialize
1764
+ def initialize(p, params={})
1765
+ default_params = { :opts => SEPARATOR_GROOVE|LAYOUT_FILL_Y, :x => 0, :y => 0, :w => 0, :h => 0, :pl => 0, :pr => 0, :pt => 1, :pb => 1 }
1766
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1767
+ params = default_params.merge(params)
1768
+ old_initialize(p, params[:opts], params[:x], params[:y], params[:w], params[:h], params[:pl], params[:pr], params[:pt], params[:pb])
1769
+ end
1770
+ end
1771
+
1772
+ class FXSettings
1773
+ alias old_initialize initialize
1774
+ def initialize(params={})
1775
+ default_params = { }
1776
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1777
+ params = default_params.merge(params)
1778
+ old_initialize()
1779
+ end
1780
+ end
1781
+
1782
+ class FXShell
1783
+ alias old_initialize initialize
1784
+ def initialize(params={})
1785
+ default_params = { }
1786
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1787
+ params = default_params.merge(params)
1788
+ old_initialize()
1789
+ end
1790
+ end
1791
+
1792
+ class FXShutterItem
1793
+ alias old_initialize initialize
1794
+ def initialize(p, params={})
1795
+ default_params = { :text => "", :icon => nil, :opts => 0, :x => 0, :y => 0, :w => 0, :h => 0, :pl => DEFAULT_SPACING, :pr => DEFAULT_SPACING, :pt => DEFAULT_SPACING, :pb => DEFAULT_SPACING, :hs => DEFAULT_SPACING, :vs => DEFAULT_SPACING }
1796
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1797
+ params = default_params.merge(params)
1798
+ old_initialize(p, params[:text], params[:icon], params[:opts], params[:x], params[:y], params[:w], params[:h], params[:pl], params[:pr], params[:pt], params[:pb], params[:hs], params[:vs])
1799
+ end
1800
+ end
1801
+
1802
+ class FXShutter
1803
+ alias old_initialize initialize
1804
+ def initialize(p, params={})
1805
+ default_params = { :tgt => nil, :sel => 0, :opts => 0, :x => 0, :y => 0, :w => 0, :h => 0, :pl => DEFAULT_SPACING, :pr => DEFAULT_SPACING, :pt => DEFAULT_SPACING, :pb => DEFAULT_SPACING, :hs => DEFAULT_SPACING, :vs => DEFAULT_SPACING }
1806
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1807
+ params = default_params.merge(params)
1808
+ old_initialize(p, params[:tgt], params[:sel], params[:opts], params[:x], params[:y], params[:w], params[:h], params[:pl], params[:pr], params[:pt], params[:pb], params[:hs], params[:vs])
1809
+ end
1810
+ end
1811
+
1812
+ class FXSlider
1813
+ alias old_initialize initialize
1814
+ def initialize(p, params={})
1815
+ default_params = { :tgt => nil, :sel => 0, :opts => SLIDER_NORMAL, :x => 0, :y => 0, :w => 0, :h => 0, :pl => 0, :pr => 0, :pt => 0, :pb => 0 }
1816
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1817
+ params = default_params.merge(params)
1818
+ old_initialize(p, params[:tgt], params[:sel], params[:opts], params[:x], params[:y], params[:w], params[:h], params[:pl], params[:pr], params[:pt], params[:pb])
1819
+ end
1820
+ end
1821
+
1822
+ class FXSpinner
1823
+ alias old_initialize initialize
1824
+ def initialize(p, cols, params={})
1825
+ default_params = { :tgt => nil, :sel => 0, :opts => SPIN_NORMAL, :x => 0, :y => 0, :w => 0, :h => 0, :pl => DEFAULT_PAD, :pr => DEFAULT_PAD, :pt => DEFAULT_PAD, :pb => DEFAULT_PAD }
1826
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1827
+ params = default_params.merge(params)
1828
+ old_initialize(p, cols, params[:tgt], params[:sel], params[:opts], params[:x], params[:y], params[:w], params[:h], params[:pl], params[:pr], params[:pt], params[:pb])
1829
+ end
1830
+ end
1831
+
1832
+ class FXSplashWindow
1833
+ alias old_initialize initialize
1834
+ def initialize(owner, icon, params={})
1835
+ default_params = { :opts => SPLASH_SIMPLE, :ms => 5000 }
1836
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1837
+ params = default_params.merge(params)
1838
+ old_initialize(owner, icon, params[:opts], params[:ms])
1839
+ end
1840
+ end
1841
+
1842
+ class FXSpring
1843
+ alias old_initialize initialize
1844
+ def initialize(p, params={})
1845
+ default_params = { :opts => 0, :relw => 0, :relh => 0, :x => 0, :y => 0, :w => 0, :h => 0, :pl => DEFAULT_SPACING, :pr => DEFAULT_SPACING, :pt => DEFAULT_SPACING, :pb => DEFAULT_SPACING, :hs => DEFAULT_SPACING, :vs => DEFAULT_SPACING }
1846
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1847
+ params = default_params.merge(params)
1848
+ old_initialize(p, params[:opts], params[:relw], params[:relh], params[:x], params[:y], params[:w], params[:h], params[:pl], params[:pr], params[:pt], params[:pb], params[:hs], params[:vs])
1849
+ end
1850
+ end
1851
+
1852
+ class FXStatusBar
1853
+ alias old_initialize initialize
1854
+ def initialize(p, params={})
1855
+ default_params = { :opts => 0, :x => 0, :y => 0, :w => 0, :h => 0, :pl => 3, :pr => 3, :pt => 2, :pb => 2, :hs => 4, :vs => 0 }
1856
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1857
+ params = default_params.merge(params)
1858
+ old_initialize(p, params[:opts], params[:x], params[:y], params[:w], params[:h], params[:pl], params[:pr], params[:pt], params[:pb], params[:hs], params[:vs])
1859
+ end
1860
+ end
1861
+
1862
+ class FXStatusLine
1863
+ alias old_initialize initialize
1864
+ def initialize(p, params={})
1865
+ default_params = { :tgt => nil, :sel => 0 }
1866
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1867
+ params = default_params.merge(params)
1868
+ old_initialize(p, params[:tgt], params[:sel])
1869
+ end
1870
+ end
1871
+
1872
+ class FXStream
1873
+ alias old_initialize initialize
1874
+ def initialize(params={})
1875
+ default_params = { :cont => nil }
1876
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1877
+ params = default_params.merge(params)
1878
+ old_initialize(params[:cont])
1879
+ end
1880
+ end
1881
+
1882
+ class FXStringDict
1883
+ alias old_initialize initialize
1884
+ def initialize(params={})
1885
+ default_params = { }
1886
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1887
+ params = default_params.merge(params)
1888
+ old_initialize()
1889
+ end
1890
+ end
1891
+
1892
+ class FXSwitcher
1893
+ alias old_initialize initialize
1894
+ def initialize(p, params={})
1895
+ default_params = { :opts => 0, :x => 0, :y => 0, :w => 0, :h => 0, :pl => DEFAULT_SPACING, :pr => DEFAULT_SPACING, :pt => DEFAULT_SPACING, :pb => DEFAULT_SPACING }
1896
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1897
+ params = default_params.merge(params)
1898
+ old_initialize(p, params[:opts], params[:x], params[:y], params[:w], params[:h], params[:pl], params[:pr], params[:pt], params[:pb])
1899
+ end
1900
+ end
1901
+
1902
+ class FXTabBar
1903
+ alias old_initialize initialize
1904
+ def initialize(p, params={})
1905
+ default_params = { :tgt => nil, :sel => 0, :opts => TABBOOK_NORMAL, :x => 0, :y => 0, :w => 0, :h => 0, :pl => DEFAULT_SPACING, :pr => DEFAULT_SPACING, :pt => DEFAULT_SPACING, :pb => DEFAULT_SPACING }
1906
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1907
+ params = default_params.merge(params)
1908
+ old_initialize(p, params[:tgt], params[:sel], params[:opts], params[:x], params[:y], params[:w], params[:h], params[:pl], params[:pr], params[:pt], params[:pb])
1909
+ end
1910
+ end
1911
+
1912
+ class FXTabBook
1913
+ alias old_initialize initialize
1914
+ def initialize(p, params={})
1915
+ default_params = { :tgt => nil, :sel => 0, :opts => TABBOOK_NORMAL, :x => 0, :y => 0, :w => 0, :h => 0, :pl => DEFAULT_SPACING, :pr => DEFAULT_SPACING, :pt => DEFAULT_SPACING, :pb => DEFAULT_SPACING }
1916
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1917
+ params = default_params.merge(params)
1918
+ old_initialize(p, params[:tgt], params[:sel], params[:opts], params[:x], params[:y], params[:w], params[:h], params[:pl], params[:pr], params[:pt], params[:pb])
1919
+ end
1920
+ end
1921
+
1922
+ class FXTabItem
1923
+ alias old_initialize initialize
1924
+ def initialize(p, text, params={})
1925
+ default_params = { :ic => nil, :opts => TAB_TOP_NORMAL, :x => 0, :y => 0, :w => 0, :h => 0, :pl => DEFAULT_PAD, :pr => DEFAULT_PAD, :pt => DEFAULT_PAD, :pb => DEFAULT_PAD }
1926
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1927
+ params = default_params.merge(params)
1928
+ old_initialize(p, text, params[:ic], params[:opts], params[:x], params[:y], params[:w], params[:h], params[:pl], params[:pr], params[:pt], params[:pb])
1929
+ end
1930
+ end
1931
+
1932
+ class FXTablePos
1933
+ alias old_initialize initialize
1934
+ def initialize(params={})
1935
+ default_params = { }
1936
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1937
+ params = default_params.merge(params)
1938
+ old_initialize()
1939
+ end
1940
+ end
1941
+
1942
+ class FXTableRange
1943
+ alias old_initialize initialize
1944
+ def initialize(params={})
1945
+ default_params = { }
1946
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1947
+ params = default_params.merge(params)
1948
+ old_initialize()
1949
+ end
1950
+ end
1951
+
1952
+ class FXTableItem
1953
+ alias old_initialize initialize
1954
+ def initialize(text, params={})
1955
+ default_params = { :icon => nil, :data => nil }
1956
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1957
+ params = default_params.merge(params)
1958
+ old_initialize(text, params[:icon], params[:data])
1959
+ end
1960
+ end
1961
+
1962
+ class FXTable
1963
+ alias old_initialize initialize
1964
+ def initialize(p, params={})
1965
+ default_params = { :tgt => nil, :sel => 0, :opts => 0, :x => 0, :y => 0, :w => 0, :h => 0, :pl => DEFAULT_MARGIN, :pr => DEFAULT_MARGIN, :pt => DEFAULT_MARGIN, :pb => DEFAULT_MARGIN }
1966
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1967
+ params = default_params.merge(params)
1968
+ old_initialize(p, params[:tgt], params[:sel], params[:opts], params[:x], params[:y], params[:w], params[:h], params[:pl], params[:pr], params[:pt], params[:pb])
1969
+ end
1970
+ end
1971
+
1972
+ class FXHiliteStyle
1973
+ alias old_initialize initialize
1974
+ def initialize(params={})
1975
+ default_params = { }
1976
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1977
+ params = default_params.merge(params)
1978
+ old_initialize()
1979
+ end
1980
+ end
1981
+
1982
+ class FXTextChange
1983
+ alias old_initialize initialize
1984
+ def initialize(params={})
1985
+ default_params = { }
1986
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1987
+ params = default_params.merge(params)
1988
+ old_initialize()
1989
+ end
1990
+ end
1991
+
1992
+ class FXText
1993
+ alias old_initialize initialize
1994
+ def initialize(p, params={})
1995
+ default_params = { :tgt => nil, :sel => 0, :opts => 0, :x => 0, :y => 0, :w => 0, :h => 0, :pl => 3, :pr => 3, :pt => 2, :pb => 2 }
1996
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1997
+ params = default_params.merge(params)
1998
+ old_initialize(p, params[:tgt], params[:sel], params[:opts], params[:x], params[:y], params[:w], params[:h], params[:pl], params[:pr], params[:pt], params[:pb])
1999
+ end
2000
+ end
2001
+
2002
+ class FXTextField
2003
+ alias old_initialize initialize
2004
+ def initialize(p, ncols, params={})
2005
+ default_params = { :tgt => nil, :sel => 0, :opts => TEXTFIELD_NORMAL, :x => 0, :y => 0, :w => 0, :h => 0, :pl => DEFAULT_PAD, :pr => DEFAULT_PAD, :pt => DEFAULT_PAD, :pb => DEFAULT_PAD }
2006
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2007
+ params = default_params.merge(params)
2008
+ old_initialize(p, ncols, params[:tgt], params[:sel], params[:opts], params[:x], params[:y], params[:w], params[:h], params[:pl], params[:pr], params[:pt], params[:pb])
2009
+ end
2010
+ end
2011
+
2012
+ class FXTGAIcon
2013
+ alias old_initialize initialize
2014
+ def initialize(a, params={})
2015
+ default_params = { :pix => nil, :clr => 0, :opts => 0, :w => 1, :h => 1 }
2016
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2017
+ params = default_params.merge(params)
2018
+ old_initialize(a, params[:pix], params[:clr], params[:opts], params[:w], params[:h])
2019
+ end
2020
+ end
2021
+
2022
+ class FXTGAImage
2023
+ alias old_initialize initialize
2024
+ def initialize(a, params={})
2025
+ default_params = { :pix => nil, :opts => 0, :w => 1, :h => 1 }
2026
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2027
+ params = default_params.merge(params)
2028
+ old_initialize(a, params[:pix], params[:opts], params[:w], params[:h])
2029
+ end
2030
+ end
2031
+
2032
+ class FXTIFIcon
2033
+ alias old_initialize initialize
2034
+ def initialize(a, params={})
2035
+ default_params = { :pix => nil, :clr => 0, :opts => 0, :w => 1, :h => 1 }
2036
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2037
+ params = default_params.merge(params)
2038
+ old_initialize(a, params[:pix], params[:clr], params[:opts], params[:w], params[:h])
2039
+ end
2040
+ end
2041
+
2042
+ class FXTIFImage
2043
+ alias old_initialize initialize
2044
+ def initialize(a, params={})
2045
+ default_params = { :pix => nil, :opts => 0, :w => 1, :h => 1 }
2046
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2047
+ params = default_params.merge(params)
2048
+ old_initialize(a, params[:pix], params[:opts], params[:w], params[:h])
2049
+ end
2050
+ end
2051
+
2052
+ class FXToggleButton
2053
+ alias old_initialize initialize
2054
+ def initialize(p, text1, text2, params={})
2055
+ default_params = { :icon1 => nil, :icon2 => nil, :tgt => nil, :sel => 0, :opts => TOGGLEBUTTON_NORMAL, :x => 0, :y => 0, :w => 0, :h => 0, :pl => DEFAULT_PAD, :pr => DEFAULT_PAD, :pt => DEFAULT_PAD, :pb => DEFAULT_PAD }
2056
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2057
+ params = default_params.merge(params)
2058
+ old_initialize(p, text1, text2, params[:icon1], params[:icon2], params[:tgt], params[:sel], params[:opts], params[:x], params[:y], params[:w], params[:h], params[:pl], params[:pr], params[:pt], params[:pb])
2059
+ end
2060
+ end
2061
+
2062
+ class FXToolBarGrip
2063
+ alias old_initialize initialize
2064
+ def initialize(p, params={})
2065
+ default_params = { :tgt => nil, :sel => 0, :opts => TOOLBARGRIP_SINGLE, :x => 0, :y => 0, :w => 0, :h => 0 }
2066
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2067
+ params = default_params.merge(params)
2068
+ old_initialize(p, params[:tgt], params[:sel], params[:opts], params[:x], params[:y], params[:w], params[:h])
2069
+ end
2070
+ end
2071
+
2072
+ class FXToolBarShell
2073
+ alias old_initialize initialize
2074
+ def initialize(owner, params={})
2075
+ default_params = { :opts => FRAME_RAISED|FRAME_THICK, :x => 0, :y => 0, :w => 0, :h => 0, :hs => 4, :vs => 4 }
2076
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2077
+ params = default_params.merge(params)
2078
+ old_initialize(owner, params[:opts], params[:x], params[:y], params[:w], params[:h], params[:hs], params[:vs])
2079
+ end
2080
+ end
2081
+
2082
+ class FXToolBarTab
2083
+ alias old_initialize initialize
2084
+ def initialize(p, params={})
2085
+ default_params = { :tgt => nil, :sel => 0, :opts => FRAME_RAISED, :x => 0, :y => 0, :w => 0, :h => 0 }
2086
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2087
+ params = default_params.merge(params)
2088
+ old_initialize(p, params[:tgt], params[:sel], params[:opts], params[:x], params[:y], params[:w], params[:h])
2089
+ end
2090
+ end
2091
+
2092
+ class FXToolTip
2093
+ alias old_initialize initialize
2094
+ def initialize(app, params={})
2095
+ default_params = { :opts => TOOLTIP_NORMAL, :x => 0, :y => 0, :w => 0, :h => 0 }
2096
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2097
+ params = default_params.merge(params)
2098
+ old_initialize(app, params[:opts], params[:x], params[:y], params[:w], params[:h])
2099
+ end
2100
+ end
2101
+
2102
+ class FXTopWindow
2103
+ alias old_initialize initialize
2104
+ def initialize(params={})
2105
+ default_params = { }
2106
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2107
+ params = default_params.merge(params)
2108
+ old_initialize()
2109
+ end
2110
+ end
2111
+
2112
+ class FXTranslator
2113
+ alias old_initialize initialize
2114
+ def initialize(a, params={})
2115
+ default_params = { }
2116
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2117
+ params = default_params.merge(params)
2118
+ old_initialize(a)
2119
+ end
2120
+ end
2121
+
2122
+ class FXTreeItem
2123
+ alias old_initialize initialize
2124
+ def initialize(text, params={})
2125
+ default_params = { :openIcon => nil, :closedIcon => nil, :data => nil }
2126
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2127
+ params = default_params.merge(params)
2128
+ old_initialize(text, params[:openIcon], params[:closedIcon], params[:data])
2129
+ end
2130
+ end
2131
+
2132
+ class FXTreeList
2133
+ alias old_initialize initialize
2134
+ def initialize(p, params={})
2135
+ default_params = { :tgt => nil, :sel => 0, :opts => TREELIST_NORMAL, :x => 0, :y => 0, :w => 0, :h => 0 }
2136
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2137
+ params = default_params.merge(params)
2138
+ old_initialize(p, params[:tgt], params[:sel], params[:opts], params[:x], params[:y], params[:w], params[:h])
2139
+ end
2140
+ end
2141
+
2142
+ class FXTreeListBox
2143
+ alias old_initialize initialize
2144
+ def initialize(p, params={})
2145
+ default_params = { :tgt => nil, :sel => 0, :opts => FRAME_SUNKEN|FRAME_THICK|TREELISTBOX_NORMAL, :x => 0, :y => 0, :w => 0, :h => 0, :pl => DEFAULT_PAD, :pr => DEFAULT_PAD, :pt => DEFAULT_PAD, :pb => DEFAULT_PAD }
2146
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2147
+ params = default_params.merge(params)
2148
+ old_initialize(p, params[:tgt], params[:sel], params[:opts], params[:x], params[:y], params[:w], params[:h], params[:pl], params[:pr], params[:pt], params[:pb])
2149
+ end
2150
+ end
2151
+
2152
+ class FXTriStateButton
2153
+ alias old_initialize initialize
2154
+ def initialize(p, text1, text2, text3, params={})
2155
+ default_params = { :icon1 => nil, :icon2 => nil, :icon3 => nil, :tgt => nil, :sel => 0, :opts => TOGGLEBUTTON_NORMAL, :x => 0, :y => 0, :w => 0, :h => 0, :pl => DEFAULT_PAD, :pr => DEFAULT_PAD, :pt => DEFAULT_PAD, :pb => DEFAULT_PAD }
2156
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2157
+ params = default_params.merge(params)
2158
+ old_initialize(p, text1, text2, text3, params[:icon1], params[:icon2], params[:icon3], params[:tgt], params[:sel], params[:opts], params[:x], params[:y], params[:w], params[:h], params[:pl], params[:pr], params[:pt], params[:pb])
2159
+ end
2160
+ end
2161
+
2162
+ class FXVec2d
2163
+ alias old_initialize initialize
2164
+ def initialize(xx, yy, params={})
2165
+ default_params = { }
2166
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2167
+ params = default_params.merge(params)
2168
+ old_initialize(xx, yy)
2169
+ end
2170
+ end
2171
+
2172
+ class FXVec2f
2173
+ alias old_initialize initialize
2174
+ def initialize(xx, yy, params={})
2175
+ default_params = { }
2176
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2177
+ params = default_params.merge(params)
2178
+ old_initialize(xx, yy)
2179
+ end
2180
+ end
2181
+
2182
+ class FXVec3d
2183
+ alias old_initialize initialize
2184
+ def initialize(xx, yy, zz, params={})
2185
+ default_params = { }
2186
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2187
+ params = default_params.merge(params)
2188
+ old_initialize(xx, yy, zz)
2189
+ end
2190
+ end
2191
+
2192
+ class FXVec3f
2193
+ alias old_initialize initialize
2194
+ def initialize(xx, yy, zz, params={})
2195
+ default_params = { }
2196
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2197
+ params = default_params.merge(params)
2198
+ old_initialize(xx, yy, zz)
2199
+ end
2200
+ end
2201
+
2202
+ class FXVec4d
2203
+ alias old_initialize initialize
2204
+ def initialize(xx, yy, zz, params={})
2205
+ default_params = { :ww => 1.0 }
2206
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2207
+ params = default_params.merge(params)
2208
+ old_initialize(xx, yy, zz, params[:ww])
2209
+ end
2210
+ end
2211
+
2212
+ class FXVec4f
2213
+ alias old_initialize initialize
2214
+ def initialize(xx, yy, zz, params={})
2215
+ default_params = { :ww => 1.0 }
2216
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2217
+ params = default_params.merge(params)
2218
+ old_initialize(xx, yy, zz, params[:ww])
2219
+ end
2220
+ end
2221
+
2222
+ class FXVerticalFrame
2223
+ alias old_initialize initialize
2224
+ def initialize(p, params={})
2225
+ default_params = { :opts => 0, :x => 0, :y => 0, :w => 0, :h => 0, :pl => DEFAULT_SPACING, :pr => DEFAULT_SPACING, :pt => DEFAULT_SPACING, :pb => DEFAULT_SPACING, :hs => DEFAULT_SPACING, :vs => DEFAULT_SPACING }
2226
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2227
+ params = default_params.merge(params)
2228
+ old_initialize(p, params[:opts], params[:x], params[:y], params[:w], params[:h], params[:pl], params[:pr], params[:pt], params[:pb], params[:hs], params[:vs])
2229
+ end
2230
+ end
2231
+
2232
+ class FXVisual
2233
+ alias old_initialize initialize
2234
+ def initialize(a, flgs, params={})
2235
+ default_params = { :d => 32 }
2236
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2237
+ params = default_params.merge(params)
2238
+ old_initialize(a, flgs, params[:d])
2239
+ end
2240
+ end
2241
+
2242
+ class FXWizard
2243
+ alias old_initialize initialize
2244
+ def initialize(owner, name, image, params={})
2245
+ default_params = { :opts => DECOR_TITLE|DECOR_BORDER|DECOR_RESIZE, :x => 0, :y => 0, :w => 0, :h => 0, :pl => 10, :pr => 10, :pt => 10, :pb => 10, :hs => 10, :vs => 10 }
2246
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2247
+ params = default_params.merge(params)
2248
+ old_initialize(owner, name, image, params[:opts], params[:x], params[:y], params[:w], params[:h], params[:pl], params[:pr], params[:pt], params[:pb], params[:hs], params[:vs])
2249
+ end
2250
+ end
2251
+
2252
+ class FXXBMIcon
2253
+ alias old_initialize initialize
2254
+ def initialize(a, params={})
2255
+ default_params = { :pixels => nil, :mask => nil, :clr => 0, :opts => 0, :w => 1, :h => 1 }
2256
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2257
+ params = default_params.merge(params)
2258
+ old_initialize(a, params[:pixels], params[:mask], params[:clr], params[:opts], params[:w], params[:h])
2259
+ end
2260
+ end
2261
+
2262
+ class FXXBMImage
2263
+ alias old_initialize initialize
2264
+ def initialize(a, params={})
2265
+ default_params = { :pixels => nil, :mask => nil, :opts => 0, :w => 1, :h => 1 }
2266
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2267
+ params = default_params.merge(params)
2268
+ old_initialize(a, params[:pixels], params[:mask], params[:opts], params[:w], params[:h])
2269
+ end
2270
+ end
2271
+
2272
+ class FXXPMIcon
2273
+ alias old_initialize initialize
2274
+ def initialize(a, params={})
2275
+ default_params = { :pix => nil, :clr => 0, :opts => 0, :w => 1, :h => 1 }
2276
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2277
+ params = default_params.merge(params)
2278
+ old_initialize(a, params[:pix], params[:clr], params[:opts], params[:w], params[:h])
2279
+ end
2280
+ end
2281
+
2282
+ class FXXPMImage
2283
+ alias old_initialize initialize
2284
+ def initialize(a, params={})
2285
+ default_params = { :pix => nil, :opts => 0, :w => 1, :h => 1 }
2286
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2287
+ params = default_params.merge(params)
2288
+ old_initialize(a, params[:pix], params[:opts], params[:w], params[:h])
2289
+ end
2290
+ end
2291
+
2292
+ end