class Fox::FXHiliteStyle
Public Class Methods
from_text(textw)
click to toggle source
Construct a new FXHiliteStyle instance, with fields initialized from an FXText instance.
# File lib/fox16/core.rb, line 191 def FXHiliteStyle.from_text(textw) hs = new hs.activeBackColor = textw.activeBackColor hs.hiliteBackColor = textw.hiliteBackColor hs.hiliteForeColor = textw.hiliteTextColor hs.normalBackColor = textw.backColor hs.normalForeColor = textw.textColor hs.selectBackColor = textw.selBackColor hs.selectForeColor = textw.selTextColor hs.style = 0 hs end
new(*args)
click to toggle source
SWIGINTERN VALUE _wrap_new_FXHiliteStyle(int argc, VALUE *argv, VALUE self) { FXHiliteStyle *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (FXHiliteStyle *)new_FXHiliteStyle(); DATA_PTR(self) = result; return self; fail: return Qnil; }
Public Instance Methods
activeBackColor(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXHiliteStyle_activeBackColor_get(int argc, VALUE *argv, VALUE self) { FXHiliteStyle *arg1 = (FXHiliteStyle *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXColor 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_FXHiliteStyle, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXHiliteStyle *","activeBackColor", 1, self )); } arg1 = reinterpret_cast< FXHiliteStyle * >(argp1); result = (FXColor) ((arg1)->activeBackColor); vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return vresult; fail: return Qnil; }
activeBackColor=(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXHiliteStyle_activeBackColor_set(int argc, VALUE *argv, VALUE self) { FXHiliteStyle *arg1 = (FXHiliteStyle *) 0 ; FXColor arg2 ; void *argp1 = 0 ; int res1 = 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_FXHiliteStyle, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXHiliteStyle *","activeBackColor", 1, self )); } arg1 = reinterpret_cast< FXHiliteStyle * >(argp1); arg2 = to_FXColor(argv[0]); if (arg1) (arg1)->activeBackColor = arg2; return Qnil; fail: return Qnil; }
hiliteBackColor(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXHiliteStyle_hiliteBackColor_get(int argc, VALUE *argv, VALUE self) { FXHiliteStyle *arg1 = (FXHiliteStyle *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXColor 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_FXHiliteStyle, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXHiliteStyle *","hiliteBackColor", 1, self )); } arg1 = reinterpret_cast< FXHiliteStyle * >(argp1); result = (FXColor) ((arg1)->hiliteBackColor); vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return vresult; fail: return Qnil; }
hiliteBackColor=(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXHiliteStyle_hiliteBackColor_set(int argc, VALUE *argv, VALUE self) { FXHiliteStyle *arg1 = (FXHiliteStyle *) 0 ; FXColor arg2 ; void *argp1 = 0 ; int res1 = 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_FXHiliteStyle, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXHiliteStyle *","hiliteBackColor", 1, self )); } arg1 = reinterpret_cast< FXHiliteStyle * >(argp1); arg2 = to_FXColor(argv[0]); if (arg1) (arg1)->hiliteBackColor = arg2; return Qnil; fail: return Qnil; }
hiliteForeColor(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXHiliteStyle_hiliteForeColor_get(int argc, VALUE *argv, VALUE self) { FXHiliteStyle *arg1 = (FXHiliteStyle *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXColor 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_FXHiliteStyle, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXHiliteStyle *","hiliteForeColor", 1, self )); } arg1 = reinterpret_cast< FXHiliteStyle * >(argp1); result = (FXColor) ((arg1)->hiliteForeColor); vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return vresult; fail: return Qnil; }
hiliteForeColor=(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXHiliteStyle_hiliteForeColor_set(int argc, VALUE *argv, VALUE self) { FXHiliteStyle *arg1 = (FXHiliteStyle *) 0 ; FXColor arg2 ; void *argp1 = 0 ; int res1 = 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_FXHiliteStyle, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXHiliteStyle *","hiliteForeColor", 1, self )); } arg1 = reinterpret_cast< FXHiliteStyle * >(argp1); arg2 = to_FXColor(argv[0]); if (arg1) (arg1)->hiliteForeColor = arg2; return Qnil; fail: return Qnil; }
normalBackColor(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXHiliteStyle_normalBackColor_get(int argc, VALUE *argv, VALUE self) { FXHiliteStyle *arg1 = (FXHiliteStyle *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXColor 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_FXHiliteStyle, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXHiliteStyle *","normalBackColor", 1, self )); } arg1 = reinterpret_cast< FXHiliteStyle * >(argp1); result = (FXColor) ((arg1)->normalBackColor); vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return vresult; fail: return Qnil; }
normalBackColor=(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXHiliteStyle_normalBackColor_set(int argc, VALUE *argv, VALUE self) { FXHiliteStyle *arg1 = (FXHiliteStyle *) 0 ; FXColor arg2 ; void *argp1 = 0 ; int res1 = 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_FXHiliteStyle, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXHiliteStyle *","normalBackColor", 1, self )); } arg1 = reinterpret_cast< FXHiliteStyle * >(argp1); arg2 = to_FXColor(argv[0]); if (arg1) (arg1)->normalBackColor = arg2; return Qnil; fail: return Qnil; }
normalForeColor(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXHiliteStyle_normalForeColor_get(int argc, VALUE *argv, VALUE self) { FXHiliteStyle *arg1 = (FXHiliteStyle *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXColor 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_FXHiliteStyle, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXHiliteStyle *","normalForeColor", 1, self )); } arg1 = reinterpret_cast< FXHiliteStyle * >(argp1); result = (FXColor) ((arg1)->normalForeColor); vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return vresult; fail: return Qnil; }
normalForeColor=(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXHiliteStyle_normalForeColor_set(int argc, VALUE *argv, VALUE self) { FXHiliteStyle *arg1 = (FXHiliteStyle *) 0 ; FXColor arg2 ; void *argp1 = 0 ; int res1 = 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_FXHiliteStyle, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXHiliteStyle *","normalForeColor", 1, self )); } arg1 = reinterpret_cast< FXHiliteStyle * >(argp1); arg2 = to_FXColor(argv[0]); if (arg1) (arg1)->normalForeColor = arg2; return Qnil; fail: return Qnil; }
selectBackColor(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXHiliteStyle_selectBackColor_get(int argc, VALUE *argv, VALUE self) { FXHiliteStyle *arg1 = (FXHiliteStyle *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXColor 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_FXHiliteStyle, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXHiliteStyle *","selectBackColor", 1, self )); } arg1 = reinterpret_cast< FXHiliteStyle * >(argp1); result = (FXColor) ((arg1)->selectBackColor); vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return vresult; fail: return Qnil; }
selectBackColor=(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXHiliteStyle_selectBackColor_set(int argc, VALUE *argv, VALUE self) { FXHiliteStyle *arg1 = (FXHiliteStyle *) 0 ; FXColor arg2 ; void *argp1 = 0 ; int res1 = 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_FXHiliteStyle, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXHiliteStyle *","selectBackColor", 1, self )); } arg1 = reinterpret_cast< FXHiliteStyle * >(argp1); arg2 = to_FXColor(argv[0]); if (arg1) (arg1)->selectBackColor = arg2; return Qnil; fail: return Qnil; }
selectForeColor(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXHiliteStyle_selectForeColor_get(int argc, VALUE *argv, VALUE self) { FXHiliteStyle *arg1 = (FXHiliteStyle *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXColor 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_FXHiliteStyle, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXHiliteStyle *","selectForeColor", 1, self )); } arg1 = reinterpret_cast< FXHiliteStyle * >(argp1); result = (FXColor) ((arg1)->selectForeColor); vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return vresult; fail: return Qnil; }
selectForeColor=(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXHiliteStyle_selectForeColor_set(int argc, VALUE *argv, VALUE self) { FXHiliteStyle *arg1 = (FXHiliteStyle *) 0 ; FXColor arg2 ; void *argp1 = 0 ; int res1 = 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_FXHiliteStyle, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXHiliteStyle *","selectForeColor", 1, self )); } arg1 = reinterpret_cast< FXHiliteStyle * >(argp1); arg2 = to_FXColor(argv[0]); if (arg1) (arg1)->selectForeColor = arg2; return Qnil; fail: return Qnil; }
style(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXHiliteStyle_style_get(int argc, VALUE *argv, VALUE self) { FXHiliteStyle *arg1 = (FXHiliteStyle *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXuint 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_FXHiliteStyle, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXHiliteStyle *","style", 1, self )); } arg1 = reinterpret_cast< FXHiliteStyle * >(argp1); result = (FXuint) ((arg1)->style); vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return vresult; fail: return Qnil; }
style=(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXHiliteStyle_style_set(int argc, VALUE *argv, VALUE self) { FXHiliteStyle *arg1 = (FXHiliteStyle *) 0 ; FXuint arg2 ; void *argp1 = 0 ; int res1 = 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_FXHiliteStyle, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXHiliteStyle *","style", 1, self )); } arg1 = reinterpret_cast< FXHiliteStyle * >(argp1); arg2 = NUM2UINT(argv[0]); if (arg1) (arg1)->style = arg2; return Qnil; fail: return Qnil; }