fxruby 1.4.1 → 1.4.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -21,7 +21,7 @@
21
21
  ***********************************************************************/
22
22
 
23
23
  /***********************************************************************
24
- * $Id: FXRuby.cpp,v 1.4 2005/08/17 01:04:21 lyle Exp $
24
+ * $Id: FXRuby.cpp,v 1.5 2005/08/21 21:57:59 lyle Exp $
25
25
  ***********************************************************************/
26
26
 
27
27
  #ifdef _MSC_VER
@@ -510,7 +510,9 @@ static VALUE FXRbConvertMessageData(FXObject* sender,FXObject* recv,FXSelector s
510
510
  type==SEL_MINIMIZE ||
511
511
  type==SEL_RESTORE ||
512
512
  type==SEL_MAXIMIZE ||
513
- type==SEL_UPDATE){
513
+ type==SEL_UPDATE ||
514
+ type==SEL_QUERY_HELP ||
515
+ type==SEL_QUERY_TIP){
514
516
  FXASSERT(ptr==0);
515
517
  return Qnil;
516
518
  }
@@ -892,6 +894,8 @@ void* FXRbGetExpectedData(VALUE recv,FXSelector key,VALUE value){
892
894
  case SEL_RESTORE:
893
895
  case SEL_MAXIMIZE:
894
896
  case SEL_UPDATE:
897
+ case SEL_QUERY_TIP:
898
+ case SEL_QUERY_HELP:
895
899
  return NULL;
896
900
  case SEL_VERIFY:
897
901
  return reinterpret_cast<void*>(STR2CSTR(value));
@@ -1370,6 +1370,19 @@ FXFontDesc FXFont_getFontDesc(FXFont const *self){
1370
1370
  self->getFontDesc(fontdesc);
1371
1371
  return fontdesc;
1372
1372
  }
1373
+ FXbool FXFont_hasChar(FXFont const *self,VALUE ch){
1374
+ if(TYPE(ch)==T_STRING){
1375
+ if(RSTRING(ch)->len==1){
1376
+ return self->hasChar(*(STR2CSTR(ch)));
1377
+ }
1378
+ else{
1379
+ rb_raise(rb_eArgError,"expected a string of length one");
1380
+ }
1381
+ }
1382
+ else{
1383
+ return self->hasChar(NUM2INT(ch));
1384
+ }
1385
+ }
1373
1386
  FXint FXFont_getTextWidth(FXFont const *self,VALUE str){
1374
1387
  Check_Type(str,T_STRING);
1375
1388
  return self->getTextWidth(RSTRING(str)->ptr,RSTRING(str)->len);
@@ -2006,9 +2019,8 @@ static VALUE _wrap_FXStream_container(int argc, VALUE *argv, VALUE self) { FXStr
2006
2019
  return vresult; }
2007
2020
  static VALUE _wrap_FXStream_getPosition(int argc, VALUE *argv, VALUE self) { FXStream *arg1 = (FXStream *) 0 ; FXlong result;
2008
2021
  VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
2009
- SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXStream, 1); result = ((FXStream const *)arg1)->position(); {
2010
- FXlong * resultptr; resultptr = new FXlong((FXlong &)result);
2011
- vresult = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_FXlong, 1); } return vresult; }
2022
+ SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXStream, 1); result = ((FXStream const *)arg1)->position();
2023
+ vresult = LONG2NUM(result); return vresult; }
2012
2024
  static VALUE _wrap_FXStream_swapBytes__SWIG_0(int argc, VALUE *argv, VALUE self) { FXStream *arg1 = (FXStream *) 0 ;
2013
2025
  FXbool arg2 ; if ((argc < 1) || (argc > 1)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
2014
2026
  SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXStream, 1); arg2 = to_FXbool(argv[0]); (arg1)->swapBytes(arg2);
@@ -2047,12 +2059,11 @@ static VALUE _wrap_FXStream_flush(int argc, VALUE *argv, VALUE self) { FXStream
2047
2059
  VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
2048
2060
  SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXStream, 1); result = (FXbool)FXStream_flush(arg1);
2049
2061
  vresult = result ? Qtrue : Qfalse; return vresult; }
2050
- static VALUE _wrap_FXStream_position(int argc, VALUE *argv, VALUE self) { FXStream *arg1 = (FXStream *) 0 ; FXlong arg2 ;
2062
+ static VALUE _wrap_FXStream_setPosition(int argc, VALUE *argv, VALUE self) { FXStream *arg1 = (FXStream *) 0 ; FXlong arg2 ;
2051
2063
  int arg3 = (int) FXFromStart ; FXbool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 2))
2052
2064
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
2053
- SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXStream, 1); { FXlong * ptr;
2054
- SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_FXlong, 1); if (ptr) arg2 = *ptr; } if (argc > 1) {
2055
- arg3 = (int) NUM2INT(argv[1]); } result = (FXbool)FXStream_position(arg1,arg2,(FXWhence )arg3);
2065
+ SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXStream, 1); arg2 = static_cast<FXlong>(NUM2LONG(argv[0]));
2066
+ if (argc > 1) { arg3 = (int) NUM2INT(argv[1]); } result = (FXbool)FXStream_position(arg1,arg2,(FXWhence )arg3);
2056
2067
  vresult = result ? Qtrue : Qfalse; return vresult; }
2057
2068
  #ifdef HAVE_RB_DEFINE_ALLOC_FUNC
2058
2069
  static VALUE _wrap_FXFileStream_allocate(VALUE self) {
@@ -2079,9 +2090,8 @@ static VALUE _wrap_FXFileStream_open(int argc, VALUE *argv, VALUE self) { FXFile
2079
2090
  static VALUE _wrap_FXFileStream_getPosition(int argc, VALUE *argv, VALUE self) { FXFileStream *arg1 = (FXFileStream *) 0 ;
2080
2091
  FXlong result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0))
2081
2092
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
2082
- SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXFileStream, 1); result = ((FXFileStream const *)arg1)->position(); {
2083
- FXlong * resultptr; resultptr = new FXlong((FXlong &)result);
2084
- vresult = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_FXlong, 1); } return vresult; }
2093
+ SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXFileStream, 1); result = ((FXFileStream const *)arg1)->position();
2094
+ vresult = LONG2NUM(result); return vresult; }
2085
2095
  static void
2086
2096
  free_FXFileStream(FXFileStream *arg1) {
2087
2097
  delete arg1;
@@ -2096,12 +2106,11 @@ static VALUE _wrap_FXFileStream_flush(int argc, VALUE *argv, VALUE self) { FXFil
2096
2106
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
2097
2107
  SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXFileStream, 1); result = (FXbool)FXFileStream_flush(arg1);
2098
2108
  vresult = result ? Qtrue : Qfalse; return vresult; }
2099
- static VALUE _wrap_FXFileStream_position(int argc, VALUE *argv, VALUE self) { FXFileStream *arg1 = (FXFileStream *) 0 ;
2109
+ static VALUE _wrap_FXFileStream_setPosition(int argc, VALUE *argv, VALUE self) { FXFileStream *arg1 = (FXFileStream *) 0 ;
2100
2110
  FXlong arg2 ; int arg3 = (int) FXFromStart ; FXbool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 2))
2101
2111
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
2102
- SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXFileStream, 1); { FXlong * ptr;
2103
- SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_FXlong, 1); if (ptr) arg2 = *ptr; } if (argc > 1) {
2104
- arg3 = (int) NUM2INT(argv[1]); } result = (FXbool)FXFileStream_position(arg1,arg2,(FXWhence )arg3);
2112
+ SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXFileStream, 1); arg2 = static_cast<FXlong>(NUM2LONG(argv[0]));
2113
+ if (argc > 1) { arg3 = (int) NUM2INT(argv[1]); } result = (FXbool)FXFileStream_position(arg1,arg2,(FXWhence )arg3);
2105
2114
  vresult = result ? Qtrue : Qfalse; return vresult; }
2106
2115
  #ifdef HAVE_RB_DEFINE_ALLOC_FUNC
2107
2116
  static VALUE _wrap_FXMemoryStream_allocate(VALUE self) {
@@ -2136,9 +2145,8 @@ static VALUE _wrap_FXMemoryStream_giveBuffer(int argc, VALUE *argv, VALUE self)
2136
2145
  static VALUE _wrap_FXMemoryStream_getPosition(int argc, VALUE *argv, VALUE self) { FXMemoryStream *arg1 = (FXMemoryStream *) 0 ;
2137
2146
  FXlong result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0))
2138
2147
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
2139
- SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXMemoryStream, 1); result = ((FXMemoryStream const *)arg1)->position(); {
2140
- FXlong * resultptr; resultptr = new FXlong((FXlong &)result);
2141
- vresult = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_FXlong, 1); } return vresult; }
2148
+ SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXMemoryStream, 1); result = ((FXMemoryStream const *)arg1)->position();
2149
+ vresult = LONG2NUM(result); return vresult; }
2142
2150
  static void
2143
2151
  free_FXMemoryStream(FXMemoryStream *arg1) {
2144
2152
  delete arg1;
@@ -4123,6 +4131,16 @@ static VALUE _wrap_FXStringDict_remove(int argc, VALUE *argv, VALUE self) { FXSt
4123
4131
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
4124
4132
  SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXStringDict, 1); arg2 = StringValuePtr(argv[0]);
4125
4133
  result = (FXchar *)(arg1)->remove((FXchar const *)arg2); vresult = rb_str_new2(result); return vresult; }
4134
+ static VALUE _wrap_FXStringDict_find(int argc, VALUE *argv, VALUE self) { FXStringDict *arg1 = (FXStringDict *) 0 ;
4135
+ FXchar *arg2 ; FXchar *result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1))
4136
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
4137
+ SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXStringDict, 1); arg2 = StringValuePtr(argv[0]);
4138
+ result = (FXchar *)((FXStringDict const *)arg1)->find((FXchar const *)arg2); vresult = rb_str_new2(result); return vresult; }
4139
+ static VALUE _wrap_FXStringDict_data(int argc, VALUE *argv, VALUE self) { FXStringDict *arg1 = (FXStringDict *) 0 ;
4140
+ FXuint arg2 ; FXchar *result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1))
4141
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
4142
+ SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXStringDict, 1); arg2 = NUM2UINT(argv[0]);
4143
+ result = (FXchar *)((FXStringDict const *)arg1)->data(arg2); vresult = rb_str_new2(result); return vresult; }
4126
4144
  static void
4127
4145
  free_FXStringDict(FXStringDict *arg1) {
4128
4146
  delete arg1;
@@ -4161,6 +4179,20 @@ static VALUE _wrap_FXSettings_unparseFile(int argc, VALUE *argv, VALUE self) { F
4161
4179
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
4162
4180
  SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXSettings, 1); p2 = to_FXString(argv[0]); arg2 = &p2;
4163
4181
  result = (FXbool)(arg1)->unparseFile((FXString const &)*arg2); vresult = result ? Qtrue : Qfalse; return vresult; }
4182
+ static VALUE _wrap_FXSettings_data(int argc, VALUE *argv, VALUE self) { FXSettings *arg1 = (FXSettings *) 0 ; FXuint arg2 ;
4183
+ FXStringDict *result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1))
4184
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
4185
+ SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXSettings, 1); arg2 = NUM2UINT(argv[0]);
4186
+ result = (FXStringDict *)((FXSettings const *)arg1)->data(arg2); {
4187
+ swig_type_info *ty = SWIG_TypeDynamicCast(SWIGTYPE_p_FXStringDict, (void **) &result);
4188
+ vresult = FXRbGetRubyObj(result, ty); } return vresult; }
4189
+ static VALUE _wrap_FXSettings_find(int argc, VALUE *argv, VALUE self) { FXSettings *arg1 = (FXSettings *) 0 ; FXchar *arg2 ;
4190
+ FXStringDict *result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1))
4191
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
4192
+ SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXSettings, 1); arg2 = StringValuePtr(argv[0]);
4193
+ result = (FXStringDict *)((FXSettings const *)arg1)->find((FXchar const *)arg2); {
4194
+ swig_type_info *ty = SWIG_TypeDynamicCast(SWIGTYPE_p_FXStringDict, (void **) &result);
4195
+ vresult = FXRbGetRubyObj(result, ty); } return vresult; }
4164
4196
  static VALUE _wrap_FXSettings_readStringEntry(int argc, VALUE *argv, VALUE self) { FXSettings *arg1 = (FXSettings *) 0 ;
4165
4197
  FXchar *arg2 ; FXchar *arg3 ; FXchar *arg4 = (FXchar *) 0 ; FXchar *result; VALUE vresult = Qnil;
4166
4198
  if ((argc < 2) || (argc > 3)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc);
@@ -5209,10 +5241,10 @@ static VALUE _wrap_FXFont_isFontMono(int argc, VALUE *argv, VALUE self) { FXFont
5209
5241
  VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
5210
5242
  SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXFont, 1); result = (FXbool)((FXFont const *)arg1)->isFontMono();
5211
5243
  vresult = result ? Qtrue : Qfalse; return vresult; }
5212
- static VALUE _wrap_FXFont_hasChar(int argc, VALUE *argv, VALUE self) { FXFont *arg1 = (FXFont *) 0 ; FXint arg2 ; FXbool result;
5244
+ static VALUE _wrap_FXFont_hasChar(int argc, VALUE *argv, VALUE self) { FXFont *arg1 = (FXFont *) 0 ; VALUE arg2 ; FXbool result;
5213
5245
  VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
5214
- SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXFont, 1); arg2 = NUM2INT(argv[0]);
5215
- result = (FXbool)((FXFont const *)arg1)->hasChar(arg2); vresult = result ? Qtrue : Qfalse; return vresult; }
5246
+ SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXFont, 1); arg2 = argv[0];
5247
+ result = (FXbool)FXFont_hasChar((FXFont const *)arg1,arg2); vresult = result ? Qtrue : Qfalse; return vresult; }
5216
5248
  static VALUE _wrap_FXFont_getMinChar(int argc, VALUE *argv, VALUE self) { FXFont *arg1 = (FXFont *) 0 ; FXint result;
5217
5249
  VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
5218
5250
  SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXFont, 1); result = (FXint)((FXFont const *)arg1)->getMinChar();
@@ -9125,7 +9157,7 @@ SWIGEXPORT(void) Init_core(void) {
9125
9157
  rb_define_method(cFXStream.klass, "isBigEndian", VALUEFUNC(_wrap_FXStream_isBigEndian), -1);
9126
9158
  rb_define_method(cFXStream.klass, "close", VALUEFUNC(_wrap_FXStream_close), -1);
9127
9159
  rb_define_method(cFXStream.klass, "flush", VALUEFUNC(_wrap_FXStream_flush), -1);
9128
- rb_define_method(cFXStream.klass, "position", VALUEFUNC(_wrap_FXStream_position), -1);
9160
+ rb_define_method(cFXStream.klass, "setPosition", VALUEFUNC(_wrap_FXStream_setPosition), -1);
9129
9161
  cFXStream.mark = (void (*)(void *)) FXRbStream::markfunc;
9130
9162
  cFXStream.destroy = (void (*)(void *)) FXRbUnregisterRubyObj;
9131
9163
 
@@ -9137,7 +9169,7 @@ SWIGEXPORT(void) Init_core(void) {
9137
9169
  rb_define_method(cFXFileStream.klass, "getPosition", VALUEFUNC(_wrap_FXFileStream_getPosition), -1);
9138
9170
  rb_define_method(cFXFileStream.klass, "close", VALUEFUNC(_wrap_FXFileStream_close), -1);
9139
9171
  rb_define_method(cFXFileStream.klass, "flush", VALUEFUNC(_wrap_FXFileStream_flush), -1);
9140
- rb_define_method(cFXFileStream.klass, "position", VALUEFUNC(_wrap_FXFileStream_position), -1);
9172
+ rb_define_method(cFXFileStream.klass, "setPosition", VALUEFUNC(_wrap_FXFileStream_setPosition), -1);
9141
9173
  cFXFileStream.mark = (void (*)(void *)) FXRbFileStream::markfunc;
9142
9174
  cFXFileStream.destroy = (void (*)(void *)) FXRbUnregisterRubyObj;
9143
9175
 
@@ -9634,6 +9666,8 @@ SWIGEXPORT(void) Init_core(void) {
9634
9666
  rb_define_method(cFXStringDict.klass, "insert", VALUEFUNC(_wrap_FXStringDict_insert), -1);
9635
9667
  rb_define_method(cFXStringDict.klass, "replace", VALUEFUNC(_wrap_FXStringDict_replace), -1);
9636
9668
  rb_define_method(cFXStringDict.klass, "remove", VALUEFUNC(_wrap_FXStringDict_remove), -1);
9669
+ rb_define_method(cFXStringDict.klass, "find", VALUEFUNC(_wrap_FXStringDict_find), -1);
9670
+ rb_define_method(cFXStringDict.klass, "data", VALUEFUNC(_wrap_FXStringDict_data), -1);
9637
9671
  rb_define_method(cFXStringDict.klass, "save", VALUEFUNC(_wrap_FXStringDict_save), -1);
9638
9672
  rb_define_method(cFXStringDict.klass, "load", VALUEFUNC(_wrap_FXStringDict_load), -1);
9639
9673
  cFXStringDict.mark = (void (*)(void *)) FXRbStringDict::markfunc;
@@ -9645,6 +9679,8 @@ SWIGEXPORT(void) Init_core(void) {
9645
9679
  rb_define_method(cFXSettings.klass, "initialize", VALUEFUNC(_wrap_new_FXSettings), -1);
9646
9680
  rb_define_method(cFXSettings.klass, "parseFile", VALUEFUNC(_wrap_FXSettings_parseFile), -1);
9647
9681
  rb_define_method(cFXSettings.klass, "unparseFile", VALUEFUNC(_wrap_FXSettings_unparseFile), -1);
9682
+ rb_define_method(cFXSettings.klass, "data", VALUEFUNC(_wrap_FXSettings_data), -1);
9683
+ rb_define_method(cFXSettings.klass, "find", VALUEFUNC(_wrap_FXSettings_find), -1);
9648
9684
  rb_define_method(cFXSettings.klass, "readStringEntry", VALUEFUNC(_wrap_FXSettings_readStringEntry), -1);
9649
9685
  rb_define_method(cFXSettings.klass, "readIntEntry", VALUEFUNC(_wrap_FXSettings_readIntEntry), -1);
9650
9686
  rb_define_method(cFXSettings.klass, "readUnsignedEntry", VALUEFUNC(_wrap_FXSettings_readUnsignedEntry), -1);
@@ -531,12 +531,11 @@ SWIGIMPORT(void) SWIG_Ruby_ConvertPacked(VALUE obj, void *ptr, int sz, swig_ty
531
531
  #define SWIGTYPE_p_FXIconList swig_types[12]
532
532
  #define SWIGTYPE_p_FXIcon swig_types[13]
533
533
  #define SWIGTYPE_p_FXHeader swig_types[14]
534
- #define SWIGTYPE_p_FXlong swig_types[15]
535
- #define SWIGTYPE_p_FXFileList swig_types[16]
536
- #define SWIGTYPE_p_FXIconItem swig_types[17]
537
- #define SWIGTYPE_p_FXRegion swig_types[18]
538
- #define SWIGTYPE_p_FXFileItem swig_types[19]
539
- static swig_type_info *swig_types[21];
534
+ #define SWIGTYPE_p_FXFileList swig_types[15]
535
+ #define SWIGTYPE_p_FXIconItem swig_types[16]
536
+ #define SWIGTYPE_p_FXRegion swig_types[17]
537
+ #define SWIGTYPE_p_FXFileItem swig_types[18]
538
+ static swig_type_info *swig_types[20];
540
539
 
541
540
  /* -------- TYPES TABLE (END) -------- */
542
541
 
@@ -2049,9 +2048,8 @@ static VALUE _wrap_FXFileItem_getAssoc(int argc, VALUE *argv, VALUE self) { FXFi
2049
2048
  return vresult; }
2050
2049
  static VALUE _wrap_FXFileItem_getSize(int argc, VALUE *argv, VALUE self) { FXFileItem *arg1 = (FXFileItem *) 0 ; FXlong result;
2051
2050
  VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
2052
- SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXFileItem, 1); result = ((FXFileItem const *)arg1)->getSize(); {
2053
- FXlong * resultptr; resultptr = new FXlong((FXlong &)result);
2054
- vresult = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_FXlong, 1); } return vresult; }
2051
+ SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXFileItem, 1); result = ((FXFileItem const *)arg1)->getSize();
2052
+ vresult = LONG2NUM(result); return vresult; }
2055
2053
  static VALUE _wrap_FXFileItem_getDate(int argc, VALUE *argv, VALUE self) { FXFileItem *arg1 = (FXFileItem *) 0 ; FXTime result;
2056
2054
  VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
2057
2055
  SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXFileItem, 1); result = (FXTime)((FXFileItem const *)arg1)->getDate();
@@ -3482,7 +3480,6 @@ static swig_type_info _swigt__p_FXDrawable[] = {{"_p_FXDrawable", 0, "FXDrawable
3482
3480
  static swig_type_info _swigt__p_FXIconList[] = {{"_p_FXIconList", 0, "FXIconList *", 0, 0, 0, 0},{"_p_FXIconList", 0, 0, 0, 0, 0, 0},{"_p_FXFileList", _p_FXFileListTo_p_FXIconList, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
3483
3481
  static swig_type_info _swigt__p_FXIcon[] = {{"_p_FXIcon", 0, "FXIcon *", 0, 0, 0, 0},{"_p_FXIcon", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
3484
3482
  static swig_type_info _swigt__p_FXHeader[] = {{"_p_FXHeader", 0, "FXHeader *", 0, 0, 0, 0},{"_p_FXHeader", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
3485
- static swig_type_info _swigt__p_FXlong[] = {{"_p_FXlong", 0, "FXlong *", 0, 0, 0, 0},{"_p_FXlong", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
3486
3483
  static swig_type_info _swigt__p_FXFileList[] = {{"_p_FXFileList", 0, "FXFileList *", 0, 0, 0, 0},{"_p_FXFileList", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
3487
3484
  static swig_type_info _swigt__p_FXIconItem[] = {{"_p_FXIconItem", 0, "FXIconItem *", 0, 0, 0, 0},{"_p_FXIconItem", 0, 0, 0, 0, 0, 0},{"_p_FXFileItem", _p_FXFileItemTo_p_FXIconItem, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
3488
3485
  static swig_type_info _swigt__p_FXRegion[] = {{"_p_FXRegion", 0, "FXRegion *", 0, 0, 0, 0},{"_p_FXRegion", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
@@ -3504,7 +3501,6 @@ _swigt__p_FXDrawable,
3504
3501
  _swigt__p_FXIconList,
3505
3502
  _swigt__p_FXIcon,
3506
3503
  _swigt__p_FXHeader,
3507
- _swigt__p_FXlong,
3508
3504
  _swigt__p_FXFileList,
3509
3505
  _swigt__p_FXIconItem,
3510
3506
  _swigt__p_FXRegion,
@@ -691,12 +691,22 @@ static void free_FXMenuBar(FXMenuBar *);
691
691
  FXMenuCheck *new_FXMenuCheck(FXComposite *p,FXString const &text,FXObject *tgt,FXSelector sel,FXuint opts){
692
692
  return new FXRbMenuCheck(p,text,tgt,sel,opts);
693
693
  }
694
+ FXbool FXMenuCheck_getCheck(FXMenuCheck const *self){
695
+ rb_warning("FXMenuCheck#getCheck is deprecated; use checked?, unchecked? or maybe?");
696
+ return self->getCheck();
697
+ }
698
+ FXuchar FXMenuCheck_getCheckState(FXMenuCheck const *self){ return self->getCheck(); }
694
699
 
695
700
  swig_class cFXMenuCheck;
696
701
  static void free_FXMenuCheck(FXMenuCheck *);
697
702
  FXMenuRadio *new_FXMenuRadio(FXComposite *p,FXString const &text,FXObject *tgt,FXSelector sel,FXuint opts){
698
703
  return new FXRbMenuRadio(p,text,tgt,sel,opts);
699
704
  }
705
+ FXbool FXMenuRadio_getCheck(FXMenuRadio const *self){
706
+ rb_warning("FXMenuRadio#getCheck is deprecated; use checked?, unchecked? or maybe?");
707
+ return self->getCheck();
708
+ }
709
+ FXuchar FXMenuRadio_getCheckState(FXMenuRadio const *self){ return self->getCheck(); }
700
710
 
701
711
  swig_class cFXMenuRadio;
702
712
  static void free_FXMenuRadio(FXMenuRadio *);
@@ -2903,8 +2913,13 @@ static VALUE _wrap_FXMenuCheck_setCheck(int argc, VALUE *argv, VALUE self) { FXM
2903
2913
  static VALUE _wrap_FXMenuCheck_getCheck(int argc, VALUE *argv, VALUE self) { FXMenuCheck *arg1 = (FXMenuCheck *) 0 ;
2904
2914
  FXbool result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0))
2905
2915
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
2906
- SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXMenuCheck, 1); result = (FXbool)((FXMenuCheck const *)arg1)->getCheck();
2907
- vresult = result ? Qtrue : Qfalse; return vresult; }
2916
+ SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXMenuCheck, 1);
2917
+ result = (FXbool)FXMenuCheck_getCheck((FXMenuCheck const *)arg1); vresult = result ? Qtrue : Qfalse; return vresult; }
2918
+ static VALUE _wrap_FXMenuCheck_getCheckState(int argc, VALUE *argv, VALUE self) { FXMenuCheck *arg1 = (FXMenuCheck *) 0 ;
2919
+ FXuchar result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0))
2920
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
2921
+ SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXMenuCheck, 1);
2922
+ result = (FXuchar)FXMenuCheck_getCheckState((FXMenuCheck const *)arg1); vresult = UINT2NUM(result); return vresult; }
2908
2923
  static VALUE _wrap_FXMenuCheck_getBoxColor(int argc, VALUE *argv, VALUE self) { FXMenuCheck *arg1 = (FXMenuCheck *) 0 ;
2909
2924
  FXColor result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0))
2910
2925
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
@@ -3186,8 +3201,13 @@ static VALUE _wrap_FXMenuRadio_setCheck(int argc, VALUE *argv, VALUE self) { FXM
3186
3201
  static VALUE _wrap_FXMenuRadio_getCheck(int argc, VALUE *argv, VALUE self) { FXMenuRadio *arg1 = (FXMenuRadio *) 0 ;
3187
3202
  FXbool result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0))
3188
3203
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
3189
- SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXMenuRadio, 1); result = (FXbool)((FXMenuRadio const *)arg1)->getCheck();
3190
- vresult = result ? Qtrue : Qfalse; return vresult; }
3204
+ SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXMenuRadio, 1);
3205
+ result = (FXbool)FXMenuRadio_getCheck((FXMenuRadio const *)arg1); vresult = result ? Qtrue : Qfalse; return vresult; }
3206
+ static VALUE _wrap_FXMenuRadio_getCheckState(int argc, VALUE *argv, VALUE self) { FXMenuRadio *arg1 = (FXMenuRadio *) 0 ;
3207
+ FXuchar result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0))
3208
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
3209
+ SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXMenuRadio, 1);
3210
+ result = (FXuchar)FXMenuRadio_getCheckState((FXMenuRadio const *)arg1); vresult = UINT2NUM(result); return vresult; }
3191
3211
  static VALUE _wrap_FXMenuRadio_getRadioColor(int argc, VALUE *argv, VALUE self) { FXMenuRadio *arg1 = (FXMenuRadio *) 0 ;
3192
3212
  FXColor result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0))
3193
3213
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
@@ -5149,6 +5169,7 @@ SWIGEXPORT(void) Init_menu(void) {
5149
5169
  rb_define_method(cFXMenuCheck.klass, "onCmdAccel", VALUEFUNC(_wrap_FXMenuCheck_onCmdAccel), -1);
5150
5170
  rb_define_method(cFXMenuCheck.klass, "setCheck", VALUEFUNC(_wrap_FXMenuCheck_setCheck), -1);
5151
5171
  rb_define_method(cFXMenuCheck.klass, "getCheck", VALUEFUNC(_wrap_FXMenuCheck_getCheck), -1);
5172
+ rb_define_method(cFXMenuCheck.klass, "getCheckState", VALUEFUNC(_wrap_FXMenuCheck_getCheckState), -1);
5152
5173
  rb_define_method(cFXMenuCheck.klass, "getBoxColor", VALUEFUNC(_wrap_FXMenuCheck_getBoxColor), -1);
5153
5174
  rb_define_method(cFXMenuCheck.klass, "setBoxColor", VALUEFUNC(_wrap_FXMenuCheck_setBoxColor), -1);
5154
5175
  rb_define_method(cFXMenuCheck.klass, "save", VALUEFUNC(_wrap_FXMenuCheck_save), -1);
@@ -5206,6 +5227,7 @@ SWIGEXPORT(void) Init_menu(void) {
5206
5227
  rb_define_method(cFXMenuRadio.klass, "onCmdAccel", VALUEFUNC(_wrap_FXMenuRadio_onCmdAccel), -1);
5207
5228
  rb_define_method(cFXMenuRadio.klass, "setCheck", VALUEFUNC(_wrap_FXMenuRadio_setCheck), -1);
5208
5229
  rb_define_method(cFXMenuRadio.klass, "getCheck", VALUEFUNC(_wrap_FXMenuRadio_getCheck), -1);
5230
+ rb_define_method(cFXMenuRadio.klass, "getCheckState", VALUEFUNC(_wrap_FXMenuRadio_getCheckState), -1);
5209
5231
  rb_define_method(cFXMenuRadio.klass, "getRadioColor", VALUEFUNC(_wrap_FXMenuRadio_getRadioColor), -1);
5210
5232
  rb_define_method(cFXMenuRadio.klass, "setRadioColor", VALUEFUNC(_wrap_FXMenuRadio_setRadioColor), -1);
5211
5233
  rb_define_method(cFXMenuRadio.klass, "save", VALUEFUNC(_wrap_FXMenuRadio_save), -1);
@@ -533,12 +533,11 @@ SWIGIMPORT(void) SWIG_Ruby_ConvertPacked(VALUE obj, void *ptr, int sz, swig_ty
533
533
  #define SWIGTYPE_p_FXTreeList swig_types[14]
534
534
  #define SWIGTYPE_p_FXIcon swig_types[15]
535
535
  #define SWIGTYPE_p_FXHeader swig_types[16]
536
- #define SWIGTYPE_p_FXlong swig_types[17]
537
- #define SWIGTYPE_p_FXFoldingListSortFunc swig_types[18]
538
- #define SWIGTYPE_p_FXFoldingList swig_types[19]
539
- #define SWIGTYPE_p_FXRegion swig_types[20]
540
- #define SWIGTYPE_p_FXTreeItem swig_types[21]
541
- static swig_type_info *swig_types[23];
536
+ #define SWIGTYPE_p_FXFoldingListSortFunc swig_types[17]
537
+ #define SWIGTYPE_p_FXFoldingList swig_types[18]
538
+ #define SWIGTYPE_p_FXRegion swig_types[19]
539
+ #define SWIGTYPE_p_FXTreeItem swig_types[20]
540
+ static swig_type_info *swig_types[22];
542
541
 
543
542
  /* -------- TYPES TABLE (END) -------- */
544
543
 
@@ -3360,9 +3359,8 @@ static VALUE _wrap_FXDirItem_getAssoc(int argc, VALUE *argv, VALUE self) { FXDir
3360
3359
  return vresult; }
3361
3360
  static VALUE _wrap_FXDirItem_getSize(int argc, VALUE *argv, VALUE self) { FXDirItem *arg1 = (FXDirItem *) 0 ; FXlong result;
3362
3361
  VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
3363
- SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXDirItem, 1); result = ((FXDirItem const *)arg1)->getSize(); {
3364
- FXlong * resultptr; resultptr = new FXlong((FXlong &)result);
3365
- vresult = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_FXlong, 1); } return vresult; }
3362
+ SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXDirItem, 1); result = ((FXDirItem const *)arg1)->getSize();
3363
+ vresult = LONG2NUM(result); return vresult; }
3366
3364
  static VALUE _wrap_FXDirItem_getDate(int argc, VALUE *argv, VALUE self) { FXDirItem *arg1 = (FXDirItem *) 0 ; FXTime result;
3367
3365
  VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
3368
3366
  SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXDirItem, 1); result = (FXTime)((FXDirItem const *)arg1)->getDate();
@@ -5163,7 +5161,6 @@ static swig_type_info _swigt__p_FXDirItem[] = {{"_p_FXDirItem", 0, "FXDirItem *"
5163
5161
  static swig_type_info _swigt__p_FXTreeList[] = {{"_p_FXTreeList", 0, "FXTreeList *", 0, 0, 0, 0},{"_p_FXDirList", _p_FXDirListTo_p_FXTreeList, 0, 0, 0, 0, 0},{"_p_FXTreeList", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5164
5162
  static swig_type_info _swigt__p_FXIcon[] = {{"_p_FXIcon", 0, "FXIcon *", 0, 0, 0, 0},{"_p_FXIcon", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5165
5163
  static swig_type_info _swigt__p_FXHeader[] = {{"_p_FXHeader", 0, "FXHeader *", 0, 0, 0, 0},{"_p_FXHeader", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5166
- static swig_type_info _swigt__p_FXlong[] = {{"_p_FXlong", 0, "FXlong *", 0, 0, 0, 0},{"_p_FXlong", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5167
5164
  static swig_type_info _swigt__p_FXFoldingListSortFunc[] = {{"_p_FXFoldingListSortFunc", 0, "FXFoldingListSortFunc *", 0, 0, 0, 0},{"_p_FXFoldingListSortFunc", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5168
5165
  static swig_type_info _swigt__p_FXFoldingList[] = {{"_p_FXFoldingList", 0, "FXFoldingList *", 0, 0, 0, 0},{"_p_FXFoldingList", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5169
5166
  static swig_type_info _swigt__p_FXRegion[] = {{"_p_FXRegion", 0, "FXRegion *", 0, 0, 0, 0},{"_p_FXRegion", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
@@ -5187,7 +5184,6 @@ _swigt__p_FXDirItem,
5187
5184
  _swigt__p_FXTreeList,
5188
5185
  _swigt__p_FXIcon,
5189
5186
  _swigt__p_FXHeader,
5190
- _swigt__p_FXlong,
5191
5187
  _swigt__p_FXFoldingListSortFunc,
5192
5188
  _swigt__p_FXFoldingList,
5193
5189
  _swigt__p_FXRegion,
@@ -432,15 +432,6 @@ module Fox
432
432
  def check=(*args) # :nodoc:
433
433
  setCheck(*args)
434
434
  end # deprecated
435
- def checked?
436
- self.checkState == TRUE
437
- end
438
- def unchecked?
439
- self.checkState == FALSE
440
- end
441
- def maybe?
442
- self.checkState == MAYBE
443
- end
444
435
  def checkButtonStyle=(*args) # :nodoc:
445
436
  setCheckButtonStyle(*args)
446
437
  end
@@ -1726,6 +1717,7 @@ module Fox
1726
1717
  def fontSpacing(*args) # :nodoc:
1727
1718
  getFontSpacing(*args)
1728
1719
  end
1720
+ alias hasChar? hasChar
1729
1721
  end
1730
1722
  class FXFontDialog
1731
1723
  def fontSelection(*args) # :nodoc:
@@ -2977,20 +2969,54 @@ module Fox
2977
2969
  end
2978
2970
  end
2979
2971
  class FXMenuCheck
2980
- alias check getCheck
2981
- alias check= setCheck
2982
- alias boxColor getBoxColor
2983
- alias boxColor= setBoxColor
2972
+ def checkState # :nodoc:
2973
+ getCheckState
2974
+ end
2975
+ def setCheckState(*args) # :nodoc:
2976
+ setCheck(*args)
2977
+ end
2978
+ def checkState=(*args) # :nodoc:
2979
+ setCheck(*args)
2980
+ end
2981
+ def check # :nodoc:
2982
+ getCheck
2983
+ end # deprecated
2984
+ def check=(*args) # :nodoc:
2985
+ setCheck(*args)
2986
+ end # deprecated
2987
+ def boxColor # :nodoc:
2988
+ getBoxColor()
2989
+ end
2990
+ def boxColor=(*args) # :nodoc:
2991
+ setBoxColor(*args)
2992
+ end
2984
2993
  end
2985
2994
  class FXMenuCommand
2986
2995
  alias accelText= setAccelText
2987
2996
  alias accelText getAccelText
2988
2997
  end
2989
2998
  class FXMenuRadio
2990
- alias check getCheck
2991
- alias check= setCheck
2992
- alias radioColor getRadioColor
2993
- alias radioColor= setRadioColor
2999
+ def checkState # :nodoc:
3000
+ getCheckState
3001
+ end
3002
+ def setCheckState(*args) # :nodoc:
3003
+ setCheck(*args)
3004
+ end
3005
+ def checkState=(*args) # :nodoc:
3006
+ setCheck(*args)
3007
+ end
3008
+ def check # :nodoc:
3009
+ getCheck
3010
+ end # deprecated
3011
+ def check=(*args) # :nodoc:
3012
+ setCheck(*args)
3013
+ end # deprecated
3014
+ def radioColor # :nodoc:
3015
+ getRadioColor()
3016
+ end
3017
+ def radioColor=(*args) # :nodoc:
3018
+ setRadioColor(*args)
3019
+ end
2994
3020
  end
2995
3021
  class FXMenuSeparator
2996
3022
  def hiliteColor=(*args) # :nodoc:
@@ -3262,27 +3288,18 @@ module Fox
3262
3288
  def checkState # :nodoc:
3263
3289
  getCheckState
3264
3290
  end
3265
- def setCheckState(*args)
3291
+ def setCheckState(*args) # :nodoc:
3266
3292
  setCheck(*args)
3267
3293
  end
3268
- def checkState=(*args)
3294
+ def checkState=(*args) # :nodoc:
3269
3295
  setCheck(*args)
3270
3296
  end
3271
3297
  def check # :nodoc:
3272
3298
  getCheck
3273
- end # deprecated
3274
- def check=(*args) # also deprecated
3299
+ end # deprecated
3300
+ def check=(*args) # :nodoc:
3275
3301
  setCheck(*args)
3276
- end
3277
- def checked?
3278
- self.checkState == TRUE
3279
- end
3280
- def unchecked?
3281
- self.checkState == FALSE
3282
- end
3283
- def maybe?
3284
- self.checkState == MAYBE
3285
- end
3302
+ end # deprecated
3286
3303
  def radioButtonStyle=(*args) # :nodoc:
3287
3304
  setRadioButtonStyle(*args)
3288
3305
  end
@@ -4880,8 +4897,11 @@ module Fox
4880
4897
  end
4881
4898
  end
4882
4899
  class FXTopWindow
4883
- def iconified?(*args) # :nodoc:
4884
- isIconified(*args)
4900
+ def minimized? # # :nodoc:
4901
+ isMinimized()
4902
+ end
4903
+ def maximized? # :nodoc:
4904
+ isMaximized()
4885
4905
  end
4886
4906
  def title=(*args) # :nodoc:
4887
4907
  setTitle(*args)