class Fox::FXSettings
Public Class Methods
new(*args)
click to toggle source
SWIGINTERN VALUE _wrap_new_FXSettings(int argc, VALUE *argv, VALUE self) { FXSettings *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } { result = (FXSettings *)new_FXSettings(); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; }
Public Instance Methods
clear(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXSettings_clear(int argc, VALUE *argv, VALUE self) { FXSettings *arg1 = (FXSettings *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXbool result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXSettings, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSettings *","clear", 1, self )); } arg1 = reinterpret_cast< FXSettings * >(argp1); result = (FXbool)(arg1)->clear(); vresult = result ? Qtrue : Qfalse; return vresult; fail: return Qnil; }
data(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXSettings_data(int argc, VALUE *argv, VALUE self) { FXSettings *arg1 = (FXSettings *) 0 ; FXuint arg2 ; void *argp1 = 0 ; int res1 = 0 ; FXStringDict *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXSettings, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSettings const *","data", 1, self )); } arg1 = reinterpret_cast< FXSettings * >(argp1); arg2 = NUM2UINT(argv[0]); result = (FXStringDict *)((FXSettings const *)arg1)->data(arg2); { swig_type_info *ty = SWIG_TypeDynamicCast(SWIGTYPE_p_FXStringDict, (void **) &result); vresult = FXRbGetRubyObj(result, ty); } return vresult; fail: return Qnil; }
deleteEntry(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXSettings_deleteEntry(int argc, VALUE *argv, VALUE self) { FXSettings *arg1 = (FXSettings *) 0 ; FXchar *arg2 = (FXchar *) 0 ; FXchar *arg3 = (FXchar *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXSettings, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSettings *","deleteEntry", 1, self )); } arg1 = reinterpret_cast< FXSettings * >(argp1); arg2 = NIL_P(argv[0]) ? 0 : StringValuePtr(argv[0]); arg3 = NIL_P(argv[1]) ? 0 : StringValuePtr(argv[1]); result = (bool)(arg1)->deleteEntry((FXchar const *)arg2,(FXchar const *)arg3); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; }
deleteSection(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXSettings_deleteSection(int argc, VALUE *argv, VALUE self) { FXSettings *arg1 = (FXSettings *) 0 ; FXchar *arg2 = (FXchar *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXSettings, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSettings *","deleteSection", 1, self )); } arg1 = reinterpret_cast< FXSettings * >(argp1); arg2 = NIL_P(argv[0]) ? 0 : StringValuePtr(argv[0]); result = (bool)(arg1)->deleteSection((FXchar const *)arg2); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; }
each_section() { |data(pos)| ... }
click to toggle source
Iterate over sections (where each section is a dictionary).
# File lib/fox16/settings.rb, line 9 def each_section pos = first while pos < getTotalSize() yield data(pos) pos = self.next(pos) end end
existingEntry(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXSettings_existingEntry(int argc, VALUE *argv, VALUE self) { FXSettings *arg1 = (FXSettings *) 0 ; FXchar *arg2 = (FXchar *) 0 ; FXchar *arg3 = (FXchar *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXSettings, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSettings *","existingEntry", 1, self )); } arg1 = reinterpret_cast< FXSettings * >(argp1); arg2 = NIL_P(argv[0]) ? 0 : StringValuePtr(argv[0]); arg3 = NIL_P(argv[1]) ? 0 : StringValuePtr(argv[1]); result = (bool)(arg1)->existingEntry((FXchar const *)arg2,(FXchar const *)arg3); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; }
existingEntry?(*args)
click to toggle source
# File lib/fox16/aliases.rb, line 3885 def existingEntry?(*args) existingEntry(*args) end
existingSection(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXSettings_existingSection(int argc, VALUE *argv, VALUE self) { FXSettings *arg1 = (FXSettings *) 0 ; FXchar *arg2 = (FXchar *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXSettings, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSettings *","existingSection", 1, self )); } arg1 = reinterpret_cast< FXSettings * >(argp1); arg2 = NIL_P(argv[0]) ? 0 : StringValuePtr(argv[0]); result = (bool)(arg1)->existingSection((FXchar const *)arg2); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; }
existingSection?(*args)
click to toggle source
# File lib/fox16/aliases.rb, line 3888 def existingSection?(*args) existingSection(*args) end
find(section) → FXStringDict
click to toggle source
Find an element in the class.
SWIGINTERN VALUE _wrap_FXSettings_find(int argc, VALUE *argv, VALUE self) { FXSettings *arg1 = (FXSettings *) 0 ; FXchar *arg2 = (FXchar *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXStringDict *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXSettings, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSettings const *","find", 1, self )); } arg1 = reinterpret_cast< FXSettings * >(argp1); arg2 = NIL_P(argv[0]) ? 0 : StringValuePtr(argv[0]); result = (FXStringDict *)((FXSettings const *)arg1)->find((FXchar const *)arg2); { swig_type_info *ty = SWIG_TypeDynamicCast(SWIGTYPE_p_FXStringDict, (void **) &result); vresult = FXRbGetRubyObj(result, ty); } return vresult; fail: return Qnil; }
isModified(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXSettings_isModified(int argc, VALUE *argv, VALUE self) { FXSettings *arg1 = (FXSettings *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXSettings, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSettings const *","isModified", 1, self )); } arg1 = reinterpret_cast< FXSettings * >(argp1); result = (bool)((FXSettings const *)arg1)->isModified(); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; }
load(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXSettings_load(int argc, VALUE *argv, VALUE self) { FXSettings *arg1 = (FXSettings *) 0 ; FXStream *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXSettings, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSettings *","load", 1, self )); } arg1 = reinterpret_cast< FXSettings * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXStream, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXStream &","load", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXStream &","load", 2, argv[0])); } arg2 = reinterpret_cast< FXStream * >(argp2); FXSettings_load(arg1,*arg2); return Qnil; fail: return Qnil; }
modified=(*args)
click to toggle source
# File lib/fox16/aliases.rb, line 3891 def modified=(*args) setModified(*args) end
modified?()
click to toggle source
# File lib/fox16/aliases.rb, line 3894 def modified? isModified end
parseFile(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXSettings_parseFile(int argc, VALUE *argv, VALUE self) { FXSettings *arg1 = (FXSettings *) 0 ; FXString *arg2 = 0 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; SwigValueWrapper< FXString > p2 ; bool val3 ; int ecode3 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXSettings, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSettings *","parseFile", 1, self )); } arg1 = reinterpret_cast< FXSettings * >(argp1); p2 = to_FXString(argv[0]); arg2 = &p2; ecode3 = SWIG_AsVal_bool(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "bool","parseFile", 3, argv[1] )); } arg3 = static_cast< bool >(val3); result = (bool)(arg1)->parseFile((FXString const &)*arg2,arg3); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; }
readBoolEntry(section, key, default=false)
click to toggle source
Read a boolean registry entry from the specified section and key. If no value is found, the default value is returned.
# File lib/fox16/core.rb, line 217 def readBoolEntry(section, key, default=false) default = default ? 1 : 0 readIntEntry(section, key, default) != 0 end
readColorEntry(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXSettings_readColorEntry(int argc, VALUE *argv, VALUE self) { FXSettings *arg1 = (FXSettings *) 0 ; FXchar *arg2 = (FXchar *) 0 ; FXchar *arg3 = (FXchar *) 0 ; FXColor arg4 = (FXColor) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXColor result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXSettings, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSettings *","readColorEntry", 1, self )); } arg1 = reinterpret_cast< FXSettings * >(argp1); arg2 = NIL_P(argv[0]) ? 0 : StringValuePtr(argv[0]); arg3 = NIL_P(argv[1]) ? 0 : StringValuePtr(argv[1]); if (argc > 2) { arg4 = to_FXColor(argv[2]); } result = (FXColor)(arg1)->readColorEntry((FXchar const *)arg2,(FXchar const *)arg3,arg4); vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return vresult; fail: return Qnil; }
readIntEntry(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXSettings_readIntEntry(int argc, VALUE *argv, VALUE self) { FXSettings *arg1 = (FXSettings *) 0 ; FXchar *arg2 = (FXchar *) 0 ; FXchar *arg3 = (FXchar *) 0 ; FXint arg4 = (FXint) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXint result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXSettings, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSettings *","readIntEntry", 1, self )); } arg1 = reinterpret_cast< FXSettings * >(argp1); arg2 = NIL_P(argv[0]) ? 0 : StringValuePtr(argv[0]); arg3 = NIL_P(argv[1]) ? 0 : StringValuePtr(argv[1]); if (argc > 2) { arg4 = NUM2INT(argv[2]); } result = (FXint)(arg1)->readIntEntry((FXchar const *)arg2,(FXchar const *)arg3,arg4); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; }
readRealEntry(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXSettings_readRealEntry(int argc, VALUE *argv, VALUE self) { FXSettings *arg1 = (FXSettings *) 0 ; FXchar *arg2 = (FXchar *) 0 ; FXchar *arg3 = (FXchar *) 0 ; FXdouble arg4 = (FXdouble) 0.0 ; void *argp1 = 0 ; int res1 = 0 ; double val4 ; int ecode4 = 0 ; FXdouble result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXSettings, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSettings *","readRealEntry", 1, self )); } arg1 = reinterpret_cast< FXSettings * >(argp1); arg2 = NIL_P(argv[0]) ? 0 : StringValuePtr(argv[0]); arg3 = NIL_P(argv[1]) ? 0 : StringValuePtr(argv[1]); if (argc > 2) { ecode4 = SWIG_AsVal_double(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "FXdouble","readRealEntry", 4, argv[2] )); } arg4 = static_cast< FXdouble >(val4); } result = (FXdouble)(arg1)->readRealEntry((FXchar const *)arg2,(FXchar const *)arg3,arg4); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; }
readStringEntry(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXSettings_readStringEntry(int argc, VALUE *argv, VALUE self) { FXSettings *arg1 = (FXSettings *) 0 ; FXchar *arg2 = (FXchar *) 0 ; FXchar *arg3 = (FXchar *) 0 ; FXchar *arg4 = (FXchar *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXchar *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXSettings, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSettings *","readStringEntry", 1, self )); } arg1 = reinterpret_cast< FXSettings * >(argp1); arg2 = NIL_P(argv[0]) ? 0 : StringValuePtr(argv[0]); arg3 = NIL_P(argv[1]) ? 0 : StringValuePtr(argv[1]); if (argc > 2) { arg4 = NIL_P(argv[2]) ? 0 : StringValuePtr(argv[2]); } result = (FXchar *)(arg1)->readStringEntry((FXchar const *)arg2,(FXchar const *)arg3,(FXchar const *)arg4); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; }
readUnsignedEntry(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXSettings_readUnsignedEntry(int argc, VALUE *argv, VALUE self) { FXSettings *arg1 = (FXSettings *) 0 ; FXchar *arg2 = (FXchar *) 0 ; FXchar *arg3 = (FXchar *) 0 ; FXuint arg4 = (FXuint) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXuint result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXSettings, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSettings *","readUnsignedEntry", 1, self )); } arg1 = reinterpret_cast< FXSettings * >(argp1); arg2 = NIL_P(argv[0]) ? 0 : StringValuePtr(argv[0]); arg3 = NIL_P(argv[1]) ? 0 : StringValuePtr(argv[1]); if (argc > 2) { arg4 = NUM2UINT(argv[2]); } result = (FXuint)(arg1)->readUnsignedEntry((FXchar const *)arg2,(FXchar const *)arg3,arg4); vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return vresult; fail: return Qnil; }
save(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXSettings_save(int argc, VALUE *argv, VALUE self) { FXSettings *arg1 = (FXSettings *) 0 ; FXStream *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXSettings, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSettings const *","save", 1, self )); } arg1 = reinterpret_cast< FXSettings * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXStream, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXStream &","save", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXStream &","save", 2, argv[0])); } arg2 = reinterpret_cast< FXStream * >(argp2); FXSettings_save((FXSettings const *)arg1,*arg2); return Qnil; fail: return Qnil; }
setModified(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXSettings_setModified(int argc, VALUE *argv, VALUE self) { FXSettings *arg1 = (FXSettings *) 0 ; bool arg2 = (bool) true ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; if ((argc < 0) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXSettings, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSettings *","setModified", 1, self )); } arg1 = reinterpret_cast< FXSettings * >(argp1); if (argc > 0) { ecode2 = SWIG_AsVal_bool(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","setModified", 2, argv[0] )); } arg2 = static_cast< bool >(val2); } (arg1)->setModified(arg2); return Qnil; fail: return Qnil; }
unparseFile(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXSettings_unparseFile(int argc, VALUE *argv, VALUE self) { FXSettings *arg1 = (FXSettings *) 0 ; FXString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; SwigValueWrapper< FXString > p2 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXSettings, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSettings *","unparseFile", 1, self )); } arg1 = reinterpret_cast< FXSettings * >(argp1); p2 = to_FXString(argv[0]); arg2 = &p2; result = (bool)(arg1)->unparseFile((FXString const &)*arg2); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; }
writeBoolEntry(section, key, value)
click to toggle source
Write a boolean registry value to the specified section and key.
# File lib/fox16/core.rb, line 225 def writeBoolEntry(section, key, value) writeIntEntry(section, key, value ? 1 : 0) end
writeColorEntry(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXSettings_writeColorEntry(int argc, VALUE *argv, VALUE self) { FXSettings *arg1 = (FXSettings *) 0 ; FXchar *arg2 = (FXchar *) 0 ; FXchar *arg3 = (FXchar *) 0 ; FXColor arg4 ; void *argp1 = 0 ; int res1 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXSettings, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSettings *","writeColorEntry", 1, self )); } arg1 = reinterpret_cast< FXSettings * >(argp1); arg2 = NIL_P(argv[0]) ? 0 : StringValuePtr(argv[0]); arg3 = NIL_P(argv[1]) ? 0 : StringValuePtr(argv[1]); arg4 = to_FXColor(argv[2]); result = (bool)(arg1)->writeColorEntry((FXchar const *)arg2,(FXchar const *)arg3,arg4); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; }
writeIntEntry(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXSettings_writeIntEntry(int argc, VALUE *argv, VALUE self) { FXSettings *arg1 = (FXSettings *) 0 ; FXchar *arg2 = (FXchar *) 0 ; FXchar *arg3 = (FXchar *) 0 ; FXint arg4 ; void *argp1 = 0 ; int res1 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXSettings, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSettings *","writeIntEntry", 1, self )); } arg1 = reinterpret_cast< FXSettings * >(argp1); arg2 = NIL_P(argv[0]) ? 0 : StringValuePtr(argv[0]); arg3 = NIL_P(argv[1]) ? 0 : StringValuePtr(argv[1]); arg4 = NUM2INT(argv[2]); result = (bool)(arg1)->writeIntEntry((FXchar const *)arg2,(FXchar const *)arg3,arg4); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; }
writeRealEntry(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXSettings_writeRealEntry(int argc, VALUE *argv, VALUE self) { FXSettings *arg1 = (FXSettings *) 0 ; FXchar *arg2 = (FXchar *) 0 ; FXchar *arg3 = (FXchar *) 0 ; FXdouble arg4 ; void *argp1 = 0 ; int res1 = 0 ; double val4 ; int ecode4 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXSettings, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSettings *","writeRealEntry", 1, self )); } arg1 = reinterpret_cast< FXSettings * >(argp1); arg2 = NIL_P(argv[0]) ? 0 : StringValuePtr(argv[0]); arg3 = NIL_P(argv[1]) ? 0 : StringValuePtr(argv[1]); ecode4 = SWIG_AsVal_double(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "FXdouble","writeRealEntry", 4, argv[2] )); } arg4 = static_cast< FXdouble >(val4); result = (bool)(arg1)->writeRealEntry((FXchar const *)arg2,(FXchar const *)arg3,arg4); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; }
writeStringEntry(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXSettings_writeStringEntry(int argc, VALUE *argv, VALUE self) { FXSettings *arg1 = (FXSettings *) 0 ; FXchar *arg2 = (FXchar *) 0 ; FXchar *arg3 = (FXchar *) 0 ; FXchar *arg4 = (FXchar *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXSettings, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSettings *","writeStringEntry", 1, self )); } arg1 = reinterpret_cast< FXSettings * >(argp1); arg2 = NIL_P(argv[0]) ? 0 : StringValuePtr(argv[0]); arg3 = NIL_P(argv[1]) ? 0 : StringValuePtr(argv[1]); arg4 = NIL_P(argv[2]) ? 0 : StringValuePtr(argv[2]); result = (bool)(arg1)->writeStringEntry((FXchar const *)arg2,(FXchar const *)arg3,(FXchar const *)arg4); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; }
writeUnsignedEntry(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXSettings_writeUnsignedEntry(int argc, VALUE *argv, VALUE self) { FXSettings *arg1 = (FXSettings *) 0 ; FXchar *arg2 = (FXchar *) 0 ; FXchar *arg3 = (FXchar *) 0 ; FXuint arg4 ; void *argp1 = 0 ; int res1 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXSettings, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSettings *","writeUnsignedEntry", 1, self )); } arg1 = reinterpret_cast< FXSettings * >(argp1); arg2 = NIL_P(argv[0]) ? 0 : StringValuePtr(argv[0]); arg3 = NIL_P(argv[1]) ? 0 : StringValuePtr(argv[1]); arg4 = NUM2UINT(argv[2]); result = (bool)(arg1)->writeUnsignedEntry((FXchar const *)arg2,(FXchar const *)arg3,arg4); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; }