class Fox::FXTextChange
Text mutation callback data passed with the SEL_INSERTED, SEL_REPLACED, and SEL_DELETED messages; both old and new text is available on behalf of the undo system as well as syntax highlighting.
Attributes
Text deleted at pos [String]
Text inserted at pos [String]
Public Instance Methods
Source
SWIGINTERN VALUE
_wrap_FXTextChange_del(int argc, VALUE *argv, VALUE self) {
FXTextChange *arg1 = (FXTextChange *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
VALUE 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_FXTextChange, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTextChange const *","del", 1, self ));
}
arg1 = reinterpret_cast< FXTextChange * >(argp1);
result = (VALUE)FXTextChange_del((FXTextChange const *)arg1);
vresult = result;
return vresult;
fail:
return Qnil;
}
Text deleted at pos [String]
Source
SWIGINTERN VALUE
_wrap_FXTextChange_ins(int argc, VALUE *argv, VALUE self) {
FXTextChange *arg1 = (FXTextChange *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
VALUE 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_FXTextChange, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTextChange const *","ins", 1, self ));
}
arg1 = reinterpret_cast< FXTextChange * >(argp1);
result = (VALUE)FXTextChange_ins((FXTextChange const *)arg1);
vresult = result;
return vresult;
fail:
return Qnil;
}
Text inserted at pos [String]
Source
SWIGINTERN VALUE
_wrap_FXTextChange_ndel_get(int argc, VALUE *argv, VALUE self) {
FXTextChange *arg1 = (FXTextChange *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXint 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_FXTextChange, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTextChange *","ndel", 1, self ));
}
arg1 = reinterpret_cast< FXTextChange * >(argp1);
result = (FXint) ((arg1)->ndel);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
Number of characters deleted at pos [Integer]
Source
SWIGINTERN VALUE
_wrap_FXTextChange_ndel_set(int argc, VALUE *argv, VALUE self) {
FXTextChange *arg1 = (FXTextChange *) 0 ;
FXint 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_FXTextChange, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTextChange *","ndel", 1, self ));
}
arg1 = reinterpret_cast< FXTextChange * >(argp1);
arg2 = NUM2INT(argv[0]);
if (arg1) (arg1)->ndel = arg2;
return Qnil;
fail:
return Qnil;
}
Number of characters deleted at pos [Integer]
Source
SWIGINTERN VALUE
_wrap_FXTextChange_nins_get(int argc, VALUE *argv, VALUE self) {
FXTextChange *arg1 = (FXTextChange *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXint 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_FXTextChange, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTextChange *","nins", 1, self ));
}
arg1 = reinterpret_cast< FXTextChange * >(argp1);
result = (FXint) ((arg1)->nins);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
Number of characters inserted at pos [Integer]
Source
SWIGINTERN VALUE
_wrap_FXTextChange_nins_set(int argc, VALUE *argv, VALUE self) {
FXTextChange *arg1 = (FXTextChange *) 0 ;
FXint 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_FXTextChange, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTextChange *","nins", 1, self ));
}
arg1 = reinterpret_cast< FXTextChange * >(argp1);
arg2 = NUM2INT(argv[0]);
if (arg1) (arg1)->nins = arg2;
return Qnil;
fail:
return Qnil;
}
Number of characters inserted at pos [Integer]
Source
SWIGINTERN VALUE
_wrap_FXTextChange_pos_get(int argc, VALUE *argv, VALUE self) {
FXTextChange *arg1 = (FXTextChange *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXint 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_FXTextChange, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTextChange *","pos", 1, self ));
}
arg1 = reinterpret_cast< FXTextChange * >(argp1);
result = (FXint) ((arg1)->pos);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
Position in buffer [Integer]
Source
SWIGINTERN VALUE
_wrap_FXTextChange_pos_set(int argc, VALUE *argv, VALUE self) {
FXTextChange *arg1 = (FXTextChange *) 0 ;
FXint 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_FXTextChange, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTextChange *","pos", 1, self ));
}
arg1 = reinterpret_cast< FXTextChange * >(argp1);
arg2 = NUM2INT(argv[0]);
if (arg1) (arg1)->pos = arg2;
return Qnil;
fail:
return Qnil;
}
Position in buffer [Integer]