class Fox::FXDCWindow
A window device context allows drawing into an FXDrawable, such as an on-screen window (i.e. FXWindow and its derivatives) or an off-screen image (FXImage and its derivatives). Because certain hardware resources are locked down, only one FXDCWindow may be locked on a drawable at any one time.
Public Class Methods
Source
SWIGINTERN VALUE _wrap_new_FXDCWindow(int nargs, VALUE *args, VALUE self) {
int argc;
VALUE argv[2];
int ii;
argc = nargs;
if (argc > 2) SWIG_fail;
for (ii = 0; (ii < argc); ++ii) {
argv[ii] = args[ii];
}
if (argc == 1) {
int _v = 0;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXDrawable, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_new_FXDCWindow__SWIG_1(nargs, args, self);
}
}
if (argc == 2) {
int _v = 0;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXDrawable, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXEvent, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_new_FXDCWindow__SWIG_0(nargs, args, self);
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 2, "FXDCWindow.new",
" FXDCWindow.new(FXDrawable *drawable, FXEvent *event)\n"
" FXDCWindow.new(FXDrawable *drawable)\n");
return Qnil;
}
Source
# File rdoc-sources/FXDCWindow.rb, line 19 def initialize(drawable, event=nil) # :yields: dc end
Construct a device context for drawing into a window (specified by drawable). If event is +nil_, the device context is constructed for normal drawing, and the clip rectangle is set to the whole rectange. If event is a reference to an FXEvent, the device context is constructed for painting in response to an expose; this sets the clip rectangle to the exposed rectangle. If an optional code block is provided, the new device context will be passed into the block as an argument and {#end} will be called automatically when the block terminates.
Public Instance Methods
Source
SWIGINTERN VALUE
_wrap_FXDCWindow_begin(int argc, VALUE *argv, VALUE self) {
FXDCWindow *arg1 = (FXDCWindow *) 0 ;
FXDrawable *arg2 = (FXDrawable *) 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_FXDCWindow, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","begin", 1, self ));
}
arg1 = reinterpret_cast< FXDCWindow * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXDrawable, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXDrawable *","begin", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXDrawable * >(argp2);
(arg1)->begin(arg2);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXDCWindow_clearClipMask(int argc, VALUE *argv, VALUE self) {
FXDCWindow *arg1 = (FXDCWindow *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
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_FXDCWindow, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","clearClipMask", 1, self ));
}
arg1 = reinterpret_cast< FXDCWindow * >(argp1);
FXDCWindow_clearClipMask(arg1);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXDCWindow_clearClipRectangle(int argc, VALUE *argv, VALUE self) {
FXDCWindow *arg1 = (FXDCWindow *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
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_FXDCWindow, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","clearClipRectangle", 1, self ));
}
arg1 = reinterpret_cast< FXDCWindow * >(argp1);
FXDCWindow_clearClipRectangle(arg1);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXDCWindow_clipChildren(int argc, VALUE *argv, VALUE self) {
FXDCWindow *arg1 = (FXDCWindow *) 0 ;
FXbool 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_FXDCWindow, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","clipChildren", 1, self ));
}
arg1 = reinterpret_cast< FXDCWindow * >(argp1);
arg2 = to_FXbool(argv[0]);
FXDCWindow_clipChildren(arg1,arg2);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXDCWindow_drawArc(int argc, VALUE *argv, VALUE self) {
FXDCWindow *arg1 = (FXDCWindow *) 0 ;
FXint arg2 ;
FXint arg3 ;
FXint arg4 ;
FXint arg5 ;
FXint arg6 ;
FXint arg7 ;
void *argp1 = 0 ;
int res1 = 0 ;
if ((argc < 6) || (argc > 6)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 6)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXDCWindow, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","drawArc", 1, self ));
}
arg1 = reinterpret_cast< FXDCWindow * >(argp1);
arg2 = NUM2INT(argv[0]);
arg3 = NUM2INT(argv[1]);
arg4 = NUM2INT(argv[2]);
arg5 = NUM2INT(argv[3]);
arg6 = NUM2INT(argv[4]);
arg7 = NUM2INT(argv[5]);
FXDCWindow_drawArc(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXDCWindow_drawArcs(int argc, VALUE *argv, VALUE self) {
FXDCWindow *arg1 = (FXDCWindow *) 0 ;
FXArc *arg2 = (FXArc *) 0 ;
FXuint arg3 ;
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_FXDCWindow, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","drawArcs", 1, self ));
}
arg1 = reinterpret_cast< FXDCWindow * >(argp1);
{
Check_Type(argv[0], T_ARRAY);
arg2 = new FXArc[RARRAY_LEN(argv[0])];
arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
for (FXuint i = 0; i < arg3; i++) {
FXArc *pArc;
Data_Get_Struct(rb_ary_entry(argv[0], i), FXArc, pArc);
arg2[i] = *pArc;
}
}
FXDCWindow_drawArcs(arg1,(FXArc const *)arg2,arg3);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE _wrap_FXDCWindow_drawArea(int nargs, VALUE *args, VALUE self) {
int argc;
VALUE argv[11];
int ii;
argc = nargs + 1;
argv[0] = self;
if (argc > 11) SWIG_fail;
for (ii = 1; (ii < argc); ++ii) {
argv[ii] = args[ii-1];
}
if (argc == 8) {
int _v = 0;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXDCWindow, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXDrawable, 0);
_v = SWIG_CheckState(res);
if (_v) {
{
_v = (TYPE(argv[2]) == T_FIXNUM || TYPE(argv[2]) == T_BIGNUM) ? 1 : 0;
}
if (_v) {
{
_v = (TYPE(argv[3]) == T_FIXNUM || TYPE(argv[3]) == T_BIGNUM) ? 1 : 0;
}
if (_v) {
{
_v = (TYPE(argv[4]) == T_FIXNUM || TYPE(argv[4]) == T_BIGNUM) ? 1 : 0;
}
if (_v) {
{
_v = (TYPE(argv[5]) == T_FIXNUM || TYPE(argv[5]) == T_BIGNUM) ? 1 : 0;
}
if (_v) {
{
_v = (TYPE(argv[6]) == T_FIXNUM || TYPE(argv[6]) == T_BIGNUM) ? 1 : 0;
}
if (_v) {
{
_v = (TYPE(argv[7]) == T_FIXNUM || TYPE(argv[7]) == T_BIGNUM) ? 1 : 0;
}
if (_v) {
return _wrap_FXDCWindow_drawArea__SWIG_0(nargs, args, self);
}
}
}
}
}
}
}
}
}
if (argc == 10) {
int _v = 0;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXDCWindow, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXDrawable, 0);
_v = SWIG_CheckState(res);
if (_v) {
{
_v = (TYPE(argv[2]) == T_FIXNUM || TYPE(argv[2]) == T_BIGNUM) ? 1 : 0;
}
if (_v) {
{
_v = (TYPE(argv[3]) == T_FIXNUM || TYPE(argv[3]) == T_BIGNUM) ? 1 : 0;
}
if (_v) {
{
_v = (TYPE(argv[4]) == T_FIXNUM || TYPE(argv[4]) == T_BIGNUM) ? 1 : 0;
}
if (_v) {
{
_v = (TYPE(argv[5]) == T_FIXNUM || TYPE(argv[5]) == T_BIGNUM) ? 1 : 0;
}
if (_v) {
{
_v = (TYPE(argv[6]) == T_FIXNUM || TYPE(argv[6]) == T_BIGNUM) ? 1 : 0;
}
if (_v) {
{
_v = (TYPE(argv[7]) == T_FIXNUM || TYPE(argv[7]) == T_BIGNUM) ? 1 : 0;
}
if (_v) {
{
_v = (TYPE(argv[8]) == T_FIXNUM || TYPE(argv[8]) == T_BIGNUM) ? 1 : 0;
}
if (_v) {
{
_v = (TYPE(argv[9]) == T_FIXNUM || TYPE(argv[9]) == T_BIGNUM) ? 1 : 0;
}
if (_v) {
return _wrap_FXDCWindow_drawArea__SWIG_1(nargs, args, self);
}
}
}
}
}
}
}
}
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 11, "drawArea",
" void drawArea(FXDrawable const *source, FXint sx, FXint sy, FXint sw, FXint sh, FXint dx, FXint dy)\n"
" void drawArea(FXDrawable const *source, FXint sx, FXint sy, FXint sw, FXint sh, FXint dx, FXint dy, FXint dw, FXint dh)\n");
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXDCWindow_drawBitmap(int argc, VALUE *argv, VALUE self) {
FXDCWindow *arg1 = (FXDCWindow *) 0 ;
FXBitmap *arg2 = (FXBitmap *) 0 ;
FXint arg3 ;
FXint arg4 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
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_FXDCWindow, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","drawBitmap", 1, self ));
}
arg1 = reinterpret_cast< FXDCWindow * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXBitmap, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXBitmap const *","drawBitmap", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXBitmap * >(argp2);
arg3 = NUM2INT(argv[1]);
arg4 = NUM2INT(argv[2]);
FXDCWindow_drawBitmap(arg1,(FXBitmap const *)arg2,arg3,arg4);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXDCWindow_drawEllipse(int argc, VALUE *argv, VALUE self) {
FXDCWindow *arg1 = (FXDCWindow *) 0 ;
FXint arg2 ;
FXint arg3 ;
FXint arg4 ;
FXint arg5 ;
void *argp1 = 0 ;
int res1 = 0 ;
if ((argc < 4) || (argc > 4)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXDCWindow, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","drawEllipse", 1, self ));
}
arg1 = reinterpret_cast< FXDCWindow * >(argp1);
arg2 = NUM2INT(argv[0]);
arg3 = NUM2INT(argv[1]);
arg4 = NUM2INT(argv[2]);
arg5 = NUM2INT(argv[3]);
FXDCWindow_drawEllipse(arg1,arg2,arg3,arg4,arg5);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXDCWindow_drawFocusRectangle(int argc, VALUE *argv, VALUE self) {
FXDCWindow *arg1 = (FXDCWindow *) 0 ;
FXint arg2 ;
FXint arg3 ;
FXint arg4 ;
FXint arg5 ;
void *argp1 = 0 ;
int res1 = 0 ;
if ((argc < 4) || (argc > 4)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXDCWindow, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","drawFocusRectangle", 1, self ));
}
arg1 = reinterpret_cast< FXDCWindow * >(argp1);
arg2 = NUM2INT(argv[0]);
arg3 = NUM2INT(argv[1]);
arg4 = NUM2INT(argv[2]);
arg5 = NUM2INT(argv[3]);
FXDCWindow_drawFocusRectangle(arg1,arg2,arg3,arg4,arg5);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXDCWindow_drawHashBox(int argc, VALUE *argv, VALUE self) {
FXDCWindow *arg1 = (FXDCWindow *) 0 ;
FXint arg2 ;
FXint arg3 ;
FXint arg4 ;
FXint arg5 ;
FXint arg6 = (FXint) 1 ;
void *argp1 = 0 ;
int res1 = 0 ;
if ((argc < 4) || (argc > 5)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXDCWindow, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","drawHashBox", 1, self ));
}
arg1 = reinterpret_cast< FXDCWindow * >(argp1);
arg2 = NUM2INT(argv[0]);
arg3 = NUM2INT(argv[1]);
arg4 = NUM2INT(argv[2]);
arg5 = NUM2INT(argv[3]);
if (argc > 4) {
arg6 = NUM2INT(argv[4]);
}
FXDCWindow_drawHashBox(arg1,arg2,arg3,arg4,arg5,arg6);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXDCWindow_drawIcon(int argc, VALUE *argv, VALUE self) {
FXDCWindow *arg1 = (FXDCWindow *) 0 ;
FXIcon *arg2 = (FXIcon *) 0 ;
FXint arg3 ;
FXint arg4 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
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_FXDCWindow, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","drawIcon", 1, self ));
}
arg1 = reinterpret_cast< FXDCWindow * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXIcon, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXIcon const *","drawIcon", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXIcon * >(argp2);
arg3 = NUM2INT(argv[1]);
arg4 = NUM2INT(argv[2]);
FXDCWindow_drawIcon(arg1,(FXIcon const *)arg2,arg3,arg4);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXDCWindow_drawIconShaded(int argc, VALUE *argv, VALUE self) {
FXDCWindow *arg1 = (FXDCWindow *) 0 ;
FXIcon *arg2 = (FXIcon *) 0 ;
FXint arg3 ;
FXint arg4 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
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_FXDCWindow, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","drawIconShaded", 1, self ));
}
arg1 = reinterpret_cast< FXDCWindow * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXIcon, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXIcon const *","drawIconShaded", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXIcon * >(argp2);
arg3 = NUM2INT(argv[1]);
arg4 = NUM2INT(argv[2]);
FXDCWindow_drawIconShaded(arg1,(FXIcon const *)arg2,arg3,arg4);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXDCWindow_drawIconSunken(int argc, VALUE *argv, VALUE self) {
FXDCWindow *arg1 = (FXDCWindow *) 0 ;
FXIcon *arg2 = (FXIcon *) 0 ;
FXint arg3 ;
FXint arg4 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
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_FXDCWindow, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","drawIconSunken", 1, self ));
}
arg1 = reinterpret_cast< FXDCWindow * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXIcon, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXIcon const *","drawIconSunken", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXIcon * >(argp2);
arg3 = NUM2INT(argv[1]);
arg4 = NUM2INT(argv[2]);
FXDCWindow_drawIconSunken(arg1,(FXIcon const *)arg2,arg3,arg4);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXDCWindow_drawImage(int argc, VALUE *argv, VALUE self) {
FXDCWindow *arg1 = (FXDCWindow *) 0 ;
FXImage *arg2 = (FXImage *) 0 ;
FXint arg3 ;
FXint arg4 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
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_FXDCWindow, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","drawImage", 1, self ));
}
arg1 = reinterpret_cast< FXDCWindow * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXImage, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXImage const *","drawImage", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXImage * >(argp2);
arg3 = NUM2INT(argv[1]);
arg4 = NUM2INT(argv[2]);
FXDCWindow_drawImage(arg1,(FXImage const *)arg2,arg3,arg4);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXDCWindow_drawImageText(int argc, VALUE *argv, VALUE self) {
FXDCWindow *arg1 = (FXDCWindow *) 0 ;
FXint arg2 ;
FXint arg3 ;
FXchar *arg4 = (FXchar *) 0 ;
FXuint arg5 ;
void *argp1 = 0 ;
int res1 = 0 ;
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_FXDCWindow, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","drawImageText", 1, self ));
}
arg1 = reinterpret_cast< FXDCWindow * >(argp1);
arg2 = NUM2INT(argv[0]);
arg3 = NUM2INT(argv[1]);
{
Check_Type(argv[2], T_STRING);
arg4 = StringValuePtr(argv[2]);
arg5 = RSTRING_LEN(argv[2]);
}
FXDCWindow_drawImageText(arg1,arg2,arg3,(char const *)arg4,arg5);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXDCWindow_drawLine(int argc, VALUE *argv, VALUE self) {
FXDCWindow *arg1 = (FXDCWindow *) 0 ;
FXint arg2 ;
FXint arg3 ;
FXint arg4 ;
FXint arg5 ;
void *argp1 = 0 ;
int res1 = 0 ;
if ((argc < 4) || (argc > 4)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXDCWindow, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","drawLine", 1, self ));
}
arg1 = reinterpret_cast< FXDCWindow * >(argp1);
arg2 = NUM2INT(argv[0]);
arg3 = NUM2INT(argv[1]);
arg4 = NUM2INT(argv[2]);
arg5 = NUM2INT(argv[3]);
FXDCWindow_drawLine(arg1,arg2,arg3,arg4,arg5);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXDCWindow_drawLineSegments(int argc, VALUE *argv, VALUE self) {
FXDCWindow *arg1 = (FXDCWindow *) 0 ;
FXSegment *arg2 = (FXSegment *) 0 ;
FXuint arg3 ;
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_FXDCWindow, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","drawLineSegments", 1, self ));
}
arg1 = reinterpret_cast< FXDCWindow * >(argp1);
{
Check_Type(argv[0], T_ARRAY);
arg2 = new FXSegment[RARRAY_LEN(argv[0])];
arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
for (FXuint i = 0; i < arg3; i++) {
FXSegment *pSeg;
Data_Get_Struct(rb_ary_entry(argv[0], i), FXSegment, pSeg);
arg2[i] = *pSeg;
}
}
FXDCWindow_drawLineSegments(arg1,(FXSegment const *)arg2,arg3);
{
delete [] arg2;
}
return Qnil;
fail:
{
delete [] arg2;
}
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXDCWindow_drawLines(int argc, VALUE *argv, VALUE self) {
FXDCWindow *arg1 = (FXDCWindow *) 0 ;
FXPoint *arg2 = (FXPoint *) 0 ;
FXuint arg3 ;
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_FXDCWindow, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","drawLines", 1, self ));
}
arg1 = reinterpret_cast< FXDCWindow * >(argp1);
{
Check_Type(argv[0], T_ARRAY);
arg2 = new FXPoint[RARRAY_LEN(argv[0])];
arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
for (FXuint i = 0; i < arg3; i++) {
FXPoint *pPoint;
Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
arg2[i] = *pPoint;
}
}
FXDCWindow_drawLines(arg1,(FXPoint const *)arg2,arg3);
{
delete [] arg2;
}
return Qnil;
fail:
{
delete [] arg2;
}
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXDCWindow_drawLinesRel(int argc, VALUE *argv, VALUE self) {
FXDCWindow *arg1 = (FXDCWindow *) 0 ;
FXPoint *arg2 = (FXPoint *) 0 ;
FXuint arg3 ;
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_FXDCWindow, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","drawLinesRel", 1, self ));
}
arg1 = reinterpret_cast< FXDCWindow * >(argp1);
{
Check_Type(argv[0], T_ARRAY);
arg2 = new FXPoint[RARRAY_LEN(argv[0])];
arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
for (FXuint i = 0; i < arg3; i++) {
FXPoint *pPoint;
Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
arg2[i] = *pPoint;
}
}
FXDCWindow_drawLinesRel(arg1,(FXPoint const *)arg2,arg3);
{
delete [] arg2;
}
return Qnil;
fail:
{
delete [] arg2;
}
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXDCWindow_drawPoint(int argc, VALUE *argv, VALUE self) {
FXDCWindow *arg1 = (FXDCWindow *) 0 ;
FXint arg2 ;
FXint arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
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_FXDCWindow, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","drawPoint", 1, self ));
}
arg1 = reinterpret_cast< FXDCWindow * >(argp1);
arg2 = NUM2INT(argv[0]);
arg3 = NUM2INT(argv[1]);
FXDCWindow_drawPoint(arg1,arg2,arg3);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXDCWindow_drawPoints(int argc, VALUE *argv, VALUE self) {
FXDCWindow *arg1 = (FXDCWindow *) 0 ;
FXPoint *arg2 = (FXPoint *) 0 ;
FXuint arg3 ;
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_FXDCWindow, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","drawPoints", 1, self ));
}
arg1 = reinterpret_cast< FXDCWindow * >(argp1);
{
Check_Type(argv[0], T_ARRAY);
arg2 = new FXPoint[RARRAY_LEN(argv[0])];
arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
for (FXuint i = 0; i < arg3; i++) {
FXPoint *pPoint;
Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
arg2[i] = *pPoint;
}
}
FXDCWindow_drawPoints(arg1,(FXPoint const *)arg2,arg3);
{
delete [] arg2;
}
return Qnil;
fail:
{
delete [] arg2;
}
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXDCWindow_drawPointsRel(int argc, VALUE *argv, VALUE self) {
FXDCWindow *arg1 = (FXDCWindow *) 0 ;
FXPoint *arg2 = (FXPoint *) 0 ;
FXuint arg3 ;
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_FXDCWindow, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","drawPointsRel", 1, self ));
}
arg1 = reinterpret_cast< FXDCWindow * >(argp1);
{
Check_Type(argv[0], T_ARRAY);
arg2 = new FXPoint[RARRAY_LEN(argv[0])];
arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
for (FXuint i = 0; i < arg3; i++) {
FXPoint *pPoint;
Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
arg2[i] = *pPoint;
}
}
FXDCWindow_drawPointsRel(arg1,(FXPoint const *)arg2,arg3);
{
delete [] arg2;
}
return Qnil;
fail:
{
delete [] arg2;
}
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXDCWindow_drawRectangle(int argc, VALUE *argv, VALUE self) {
FXDCWindow *arg1 = (FXDCWindow *) 0 ;
FXint arg2 ;
FXint arg3 ;
FXint arg4 ;
FXint arg5 ;
void *argp1 = 0 ;
int res1 = 0 ;
if ((argc < 4) || (argc > 4)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXDCWindow, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","drawRectangle", 1, self ));
}
arg1 = reinterpret_cast< FXDCWindow * >(argp1);
arg2 = NUM2INT(argv[0]);
arg3 = NUM2INT(argv[1]);
arg4 = NUM2INT(argv[2]);
arg5 = NUM2INT(argv[3]);
FXDCWindow_drawRectangle(arg1,arg2,arg3,arg4,arg5);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXDCWindow_drawRectangles(int argc, VALUE *argv, VALUE self) {
FXDCWindow *arg1 = (FXDCWindow *) 0 ;
FXRectangle *arg2 = (FXRectangle *) 0 ;
FXuint arg3 ;
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_FXDCWindow, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","drawRectangles", 1, self ));
}
arg1 = reinterpret_cast< FXDCWindow * >(argp1);
{
Check_Type(argv[0], T_ARRAY);
arg2 = new FXRectangle[RARRAY_LEN(argv[0])];
arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
for (FXuint i = 0; i < arg3; i++) {
FXRectangle *pRect;
Data_Get_Struct(rb_ary_entry(argv[0], i), FXRectangle, pRect);
arg2[i] = *pRect;
}
}
FXDCWindow_drawRectangles(arg1,(FXRectangle const *)arg2,arg3);
{
delete [] arg2;
}
return Qnil;
fail:
{
delete [] arg2;
}
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXDCWindow_drawRoundRectangle(int argc, VALUE *argv, VALUE self) {
FXDCWindow *arg1 = (FXDCWindow *) 0 ;
FXint arg2 ;
FXint arg3 ;
FXint arg4 ;
FXint arg5 ;
FXint arg6 ;
FXint arg7 ;
void *argp1 = 0 ;
int res1 = 0 ;
if ((argc < 6) || (argc > 6)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 6)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXDCWindow, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","drawRoundRectangle", 1, self ));
}
arg1 = reinterpret_cast< FXDCWindow * >(argp1);
arg2 = NUM2INT(argv[0]);
arg3 = NUM2INT(argv[1]);
arg4 = NUM2INT(argv[2]);
arg5 = NUM2INT(argv[3]);
arg6 = NUM2INT(argv[4]);
arg7 = NUM2INT(argv[5]);
FXDCWindow_drawRoundRectangle(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXDCWindow_drawText(int argc, VALUE *argv, VALUE self) {
FXDCWindow *arg1 = (FXDCWindow *) 0 ;
FXint arg2 ;
FXint arg3 ;
FXchar *arg4 = (FXchar *) 0 ;
FXuint arg5 ;
void *argp1 = 0 ;
int res1 = 0 ;
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_FXDCWindow, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","drawText", 1, self ));
}
arg1 = reinterpret_cast< FXDCWindow * >(argp1);
arg2 = NUM2INT(argv[0]);
arg3 = NUM2INT(argv[1]);
{
Check_Type(argv[2], T_STRING);
arg4 = StringValuePtr(argv[2]);
arg5 = RSTRING_LEN(argv[2]);
}
FXDCWindow_drawText(arg1,arg2,arg3,(char const *)arg4,arg5);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXDCWindow_end(int argc, VALUE *argv, VALUE self) {
FXDCWindow *arg1 = (FXDCWindow *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
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_FXDCWindow, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","end", 1, self ));
}
arg1 = reinterpret_cast< FXDCWindow * >(argp1);
(arg1)->end();
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXDCWindow_fillArc(int argc, VALUE *argv, VALUE self) {
FXDCWindow *arg1 = (FXDCWindow *) 0 ;
FXint arg2 ;
FXint arg3 ;
FXint arg4 ;
FXint arg5 ;
FXint arg6 ;
FXint arg7 ;
void *argp1 = 0 ;
int res1 = 0 ;
if ((argc < 6) || (argc > 6)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 6)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXDCWindow, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","fillArc", 1, self ));
}
arg1 = reinterpret_cast< FXDCWindow * >(argp1);
arg2 = NUM2INT(argv[0]);
arg3 = NUM2INT(argv[1]);
arg4 = NUM2INT(argv[2]);
arg5 = NUM2INT(argv[3]);
arg6 = NUM2INT(argv[4]);
arg7 = NUM2INT(argv[5]);
FXDCWindow_fillArc(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXDCWindow_fillArcs(int argc, VALUE *argv, VALUE self) {
FXDCWindow *arg1 = (FXDCWindow *) 0 ;
FXArc *arg2 = (FXArc *) 0 ;
FXuint arg3 ;
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_FXDCWindow, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","fillArcs", 1, self ));
}
arg1 = reinterpret_cast< FXDCWindow * >(argp1);
{
Check_Type(argv[0], T_ARRAY);
arg2 = new FXArc[RARRAY_LEN(argv[0])];
arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
for (FXuint i = 0; i < arg3; i++) {
FXArc *pArc;
Data_Get_Struct(rb_ary_entry(argv[0], i), FXArc, pArc);
arg2[i] = *pArc;
}
}
FXDCWindow_fillArcs(arg1,(FXArc const *)arg2,arg3);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXDCWindow_fillChord(int argc, VALUE *argv, VALUE self) {
FXDCWindow *arg1 = (FXDCWindow *) 0 ;
FXint arg2 ;
FXint arg3 ;
FXint arg4 ;
FXint arg5 ;
FXint arg6 ;
FXint arg7 ;
void *argp1 = 0 ;
int res1 = 0 ;
if ((argc < 6) || (argc > 6)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 6)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXDCWindow, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","fillChord", 1, self ));
}
arg1 = reinterpret_cast< FXDCWindow * >(argp1);
arg2 = NUM2INT(argv[0]);
arg3 = NUM2INT(argv[1]);
arg4 = NUM2INT(argv[2]);
arg5 = NUM2INT(argv[3]);
arg6 = NUM2INT(argv[4]);
arg7 = NUM2INT(argv[5]);
FXDCWindow_fillChord(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXDCWindow_fillChords(int argc, VALUE *argv, VALUE self) {
FXDCWindow *arg1 = (FXDCWindow *) 0 ;
FXArc *arg2 = (FXArc *) 0 ;
FXuint arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
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_FXDCWindow, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","fillChords", 1, self ));
}
arg1 = reinterpret_cast< FXDCWindow * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXArc, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXArc const *","fillChords", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXArc * >(argp2);
arg3 = NUM2UINT(argv[1]);
FXDCWindow_fillChords(arg1,(FXArc const *)arg2,arg3);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXDCWindow_fillComplexPolygon(int argc, VALUE *argv, VALUE self) {
FXDCWindow *arg1 = (FXDCWindow *) 0 ;
FXPoint *arg2 = (FXPoint *) 0 ;
FXuint arg3 ;
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_FXDCWindow, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","fillComplexPolygon", 1, self ));
}
arg1 = reinterpret_cast< FXDCWindow * >(argp1);
{
Check_Type(argv[0], T_ARRAY);
arg2 = new FXPoint[RARRAY_LEN(argv[0])];
arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
for (FXuint i = 0; i < arg3; i++) {
FXPoint *pPoint;
Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
arg2[i] = *pPoint;
}
}
FXDCWindow_fillComplexPolygon(arg1,(FXPoint const *)arg2,arg3);
{
delete [] arg2;
}
return Qnil;
fail:
{
delete [] arg2;
}
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXDCWindow_fillComplexPolygonRel(int argc, VALUE *argv, VALUE self) {
FXDCWindow *arg1 = (FXDCWindow *) 0 ;
FXPoint *arg2 = (FXPoint *) 0 ;
FXuint arg3 ;
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_FXDCWindow, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","fillComplexPolygonRel", 1, self ));
}
arg1 = reinterpret_cast< FXDCWindow * >(argp1);
{
Check_Type(argv[0], T_ARRAY);
arg2 = new FXPoint[RARRAY_LEN(argv[0])];
arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
for (FXuint i = 0; i < arg3; i++) {
FXPoint *pPoint;
Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
arg2[i] = *pPoint;
}
}
FXDCWindow_fillComplexPolygonRel(arg1,(FXPoint const *)arg2,arg3);
{
delete [] arg2;
}
return Qnil;
fail:
{
delete [] arg2;
}
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXDCWindow_fillConcavePolygon(int argc, VALUE *argv, VALUE self) {
FXDCWindow *arg1 = (FXDCWindow *) 0 ;
FXPoint *arg2 = (FXPoint *) 0 ;
FXuint arg3 ;
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_FXDCWindow, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","fillConcavePolygon", 1, self ));
}
arg1 = reinterpret_cast< FXDCWindow * >(argp1);
{
Check_Type(argv[0], T_ARRAY);
arg2 = new FXPoint[RARRAY_LEN(argv[0])];
arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
for (FXuint i = 0; i < arg3; i++) {
FXPoint *pPoint;
Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
arg2[i] = *pPoint;
}
}
FXDCWindow_fillConcavePolygon(arg1,(FXPoint const *)arg2,arg3);
{
delete [] arg2;
}
return Qnil;
fail:
{
delete [] arg2;
}
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXDCWindow_fillConcavePolygonRel(int argc, VALUE *argv, VALUE self) {
FXDCWindow *arg1 = (FXDCWindow *) 0 ;
FXPoint *arg2 = (FXPoint *) 0 ;
FXuint arg3 ;
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_FXDCWindow, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","fillConcavePolygonRel", 1, self ));
}
arg1 = reinterpret_cast< FXDCWindow * >(argp1);
{
Check_Type(argv[0], T_ARRAY);
arg2 = new FXPoint[RARRAY_LEN(argv[0])];
arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
for (FXuint i = 0; i < arg3; i++) {
FXPoint *pPoint;
Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
arg2[i] = *pPoint;
}
}
FXDCWindow_fillConcavePolygonRel(arg1,(FXPoint const *)arg2,arg3);
{
delete [] arg2;
}
return Qnil;
fail:
{
delete [] arg2;
}
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXDCWindow_fillPolygon(int argc, VALUE *argv, VALUE self) {
FXDCWindow *arg1 = (FXDCWindow *) 0 ;
FXPoint *arg2 = (FXPoint *) 0 ;
FXuint arg3 ;
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_FXDCWindow, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","fillPolygon", 1, self ));
}
arg1 = reinterpret_cast< FXDCWindow * >(argp1);
{
Check_Type(argv[0], T_ARRAY);
arg2 = new FXPoint[RARRAY_LEN(argv[0])];
arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
for (FXuint i = 0; i < arg3; i++) {
FXPoint *pPoint;
Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
arg2[i] = *pPoint;
}
}
FXDCWindow_fillPolygon(arg1,(FXPoint const *)arg2,arg3);
{
delete [] arg2;
}
return Qnil;
fail:
{
delete [] arg2;
}
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXDCWindow_fillPolygonRel(int argc, VALUE *argv, VALUE self) {
FXDCWindow *arg1 = (FXDCWindow *) 0 ;
FXPoint *arg2 = (FXPoint *) 0 ;
FXuint arg3 ;
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_FXDCWindow, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","fillPolygonRel", 1, self ));
}
arg1 = reinterpret_cast< FXDCWindow * >(argp1);
{
Check_Type(argv[0], T_ARRAY);
arg2 = new FXPoint[RARRAY_LEN(argv[0])];
arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
for (FXuint i = 0; i < arg3; i++) {
FXPoint *pPoint;
Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
arg2[i] = *pPoint;
}
}
FXDCWindow_fillPolygonRel(arg1,(FXPoint const *)arg2,arg3);
{
delete [] arg2;
}
return Qnil;
fail:
{
delete [] arg2;
}
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXDCWindow_fillRectangle(int argc, VALUE *argv, VALUE self) {
FXDCWindow *arg1 = (FXDCWindow *) 0 ;
FXint arg2 ;
FXint arg3 ;
FXint arg4 ;
FXint arg5 ;
void *argp1 = 0 ;
int res1 = 0 ;
if ((argc < 4) || (argc > 4)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXDCWindow, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","fillRectangle", 1, self ));
}
arg1 = reinterpret_cast< FXDCWindow * >(argp1);
arg2 = NUM2INT(argv[0]);
arg3 = NUM2INT(argv[1]);
arg4 = NUM2INT(argv[2]);
arg5 = NUM2INT(argv[3]);
FXDCWindow_fillRectangle(arg1,arg2,arg3,arg4,arg5);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXDCWindow_fillRectangles(int argc, VALUE *argv, VALUE self) {
FXDCWindow *arg1 = (FXDCWindow *) 0 ;
FXRectangle *arg2 = (FXRectangle *) 0 ;
FXuint arg3 ;
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_FXDCWindow, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","fillRectangles", 1, self ));
}
arg1 = reinterpret_cast< FXDCWindow * >(argp1);
{
Check_Type(argv[0], T_ARRAY);
arg2 = new FXRectangle[RARRAY_LEN(argv[0])];
arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
for (FXuint i = 0; i < arg3; i++) {
FXRectangle *pRect;
Data_Get_Struct(rb_ary_entry(argv[0], i), FXRectangle, pRect);
arg2[i] = *pRect;
}
}
FXDCWindow_fillRectangles(arg1,(FXRectangle const *)arg2,arg3);
{
delete [] arg2;
}
return Qnil;
fail:
{
delete [] arg2;
}
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXDCWindow_fillRoundRectangle(int argc, VALUE *argv, VALUE self) {
FXDCWindow *arg1 = (FXDCWindow *) 0 ;
FXint arg2 ;
FXint arg3 ;
FXint arg4 ;
FXint arg5 ;
FXint arg6 ;
FXint arg7 ;
void *argp1 = 0 ;
int res1 = 0 ;
if ((argc < 6) || (argc > 6)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 6)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXDCWindow, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","fillRoundRectangle", 1, self ));
}
arg1 = reinterpret_cast< FXDCWindow * >(argp1);
arg2 = NUM2INT(argv[0]);
arg3 = NUM2INT(argv[1]);
arg4 = NUM2INT(argv[2]);
arg5 = NUM2INT(argv[3]);
arg6 = NUM2INT(argv[4]);
arg7 = NUM2INT(argv[5]);
FXDCWindow_fillRoundRectangle(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXDCWindow_readPixel(int argc, VALUE *argv, VALUE self) {
FXDCWindow *arg1 = (FXDCWindow *) 0 ;
FXint arg2 ;
FXint arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXColor 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_FXDCWindow, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","readPixel", 1, self ));
}
arg1 = reinterpret_cast< FXDCWindow * >(argp1);
arg2 = NUM2INT(argv[0]);
arg3 = NUM2INT(argv[1]);
result = (FXColor)FXDCWindow_readPixel(arg1,arg2,arg3);
vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXDCWindow_setBackground(int argc, VALUE *argv, VALUE self) {
FXDCWindow *arg1 = (FXDCWindow *) 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_FXDCWindow, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","setBackground", 1, self ));
}
arg1 = reinterpret_cast< FXDCWindow * >(argp1);
arg2 = to_FXColor(argv[0]);
FXDCWindow_setBackground(arg1,arg2);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXDCWindow_setClipMask(int argc, VALUE *argv, VALUE self) {
FXDCWindow *arg1 = (FXDCWindow *) 0 ;
FXBitmap *arg2 = (FXBitmap *) 0 ;
FXint arg3 = (FXint) 0 ;
FXint arg4 = (FXint) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
if ((argc < 1) || (argc > 3)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXDCWindow, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","setClipMask", 1, self ));
}
arg1 = reinterpret_cast< FXDCWindow * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXBitmap, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXBitmap *","setClipMask", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXBitmap * >(argp2);
if (argc > 1) {
arg3 = NUM2INT(argv[1]);
}
if (argc > 2) {
arg4 = NUM2INT(argv[2]);
}
FXDCWindow_setClipMask(arg1,arg2,arg3,arg4);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE _wrap_FXDCWindow_setClipRectangle(int nargs, VALUE *args, VALUE self) {
int argc;
VALUE argv[6];
int ii;
argc = nargs + 1;
argv[0] = self;
if (argc > 6) SWIG_fail;
for (ii = 1; (ii < argc); ++ii) {
argv[ii] = args[ii-1];
}
if (argc == 2) {
int _v = 0;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXDCWindow, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXRectangle, SWIG_POINTER_NO_NULL);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_FXDCWindow_setClipRectangle__SWIG_1(nargs, args, self);
}
}
}
if (argc == 5) {
int _v = 0;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXDCWindow, 0);
_v = SWIG_CheckState(res);
if (_v) {
{
_v = (TYPE(argv[1]) == T_FIXNUM || TYPE(argv[1]) == T_BIGNUM) ? 1 : 0;
}
if (_v) {
{
_v = (TYPE(argv[2]) == T_FIXNUM || TYPE(argv[2]) == T_BIGNUM) ? 1 : 0;
}
if (_v) {
{
_v = (TYPE(argv[3]) == T_FIXNUM || TYPE(argv[3]) == T_BIGNUM) ? 1 : 0;
}
if (_v) {
{
_v = (TYPE(argv[4]) == T_FIXNUM || TYPE(argv[4]) == T_BIGNUM) ? 1 : 0;
}
if (_v) {
return _wrap_FXDCWindow_setClipRectangle__SWIG_0(nargs, args, self);
}
}
}
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 6, "setClipRectangle",
" void setClipRectangle(FXint x, FXint y, FXint w, FXint h)\n"
" void setClipRectangle(FXRectangle const &rectangle)\n");
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXDCWindow_setClipRegion(int argc, VALUE *argv, VALUE self) {
FXDCWindow *arg1 = (FXDCWindow *) 0 ;
FXRegion *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_FXDCWindow, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","setClipRegion", 1, self ));
}
arg1 = reinterpret_cast< FXDCWindow * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXRegion, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXRegion const &","setClipRegion", 2, argv[0] ));
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXRegion const &","setClipRegion", 2, argv[0]));
}
arg2 = reinterpret_cast< FXRegion * >(argp2);
FXDCWindow_setClipRegion(arg1,(FXRegion const &)*arg2);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXDCWindow_setDashes(int argc, VALUE *argv, VALUE self) {
FXDCWindow *arg1 = (FXDCWindow *) 0 ;
FXuint arg2 ;
FXchar *arg3 = (FXchar *) 0 ;
FXuint arg4 ;
void *argp1 = 0 ;
int res1 = 0 ;
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_FXDCWindow, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","setDashes", 1, self ));
}
arg1 = reinterpret_cast< FXDCWindow * >(argp1);
arg2 = NUM2UINT(argv[0]);
{
Check_Type(argv[1], T_ARRAY);
arg3 = new FXchar[RARRAY_LEN(argv[1])];
arg4 = static_cast<FXuint>( RARRAY_LEN(argv[1]) );
for (FXuint i = 0; i < arg4; i++) {
arg3[i] = NUM2INT(rb_ary_entry(argv[1], i));
}
}
FXDCWindow_setDashes(arg1,arg2,(char const *)arg3,arg4);
{
delete [] arg3;
}
return Qnil;
fail:
{
delete [] arg3;
}
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXDCWindow_setFillRule(int argc, VALUE *argv, VALUE self) {
FXDCWindow *arg1 = (FXDCWindow *) 0 ;
FXFillRule arg2 = (FXFillRule) RULE_EVEN_ODD ;
void *argp1 = 0 ;
int res1 = 0 ;
int 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_FXDCWindow, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","setFillRule", 1, self ));
}
arg1 = reinterpret_cast< FXDCWindow * >(argp1);
if (argc > 0) {
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXFillRule","setFillRule", 2, argv[0] ));
}
arg2 = static_cast< FXFillRule >(val2);
}
FXDCWindow_setFillRule(arg1,arg2);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXDCWindow_setFillStyle(int argc, VALUE *argv, VALUE self) {
FXDCWindow *arg1 = (FXDCWindow *) 0 ;
FXFillStyle arg2 = (FXFillStyle) FILL_SOLID ;
void *argp1 = 0 ;
int res1 = 0 ;
int 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_FXDCWindow, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","setFillStyle", 1, self ));
}
arg1 = reinterpret_cast< FXDCWindow * >(argp1);
if (argc > 0) {
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXFillStyle","setFillStyle", 2, argv[0] ));
}
arg2 = static_cast< FXFillStyle >(val2);
}
FXDCWindow_setFillStyle(arg1,arg2);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXDCWindow_setFont(int argc, VALUE *argv, VALUE self) {
FXDCWindow *arg1 = (FXDCWindow *) 0 ;
FXFont *arg2 = (FXFont *) 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_FXDCWindow, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","setFont", 1, self ));
}
arg1 = reinterpret_cast< FXDCWindow * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXFont, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXFont *","setFont", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXFont * >(argp2);
FXDCWindow_setFont(arg1,arg2);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXDCWindow_setForeground(int argc, VALUE *argv, VALUE self) {
FXDCWindow *arg1 = (FXDCWindow *) 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_FXDCWindow, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","setForeground", 1, self ));
}
arg1 = reinterpret_cast< FXDCWindow * >(argp1);
arg2 = to_FXColor(argv[0]);
FXDCWindow_setForeground(arg1,arg2);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXDCWindow_setFunction(int argc, VALUE *argv, VALUE self) {
FXDCWindow *arg1 = (FXDCWindow *) 0 ;
FXFunction arg2 = (FXFunction) BLT_SRC ;
void *argp1 = 0 ;
int res1 = 0 ;
int 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_FXDCWindow, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","setFunction", 1, self ));
}
arg1 = reinterpret_cast< FXDCWindow * >(argp1);
if (argc > 0) {
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXFunction","setFunction", 2, argv[0] ));
}
arg2 = static_cast< FXFunction >(val2);
}
FXDCWindow_setFunction(arg1,arg2);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXDCWindow_setLineCap(int argc, VALUE *argv, VALUE self) {
FXDCWindow *arg1 = (FXDCWindow *) 0 ;
FXCapStyle arg2 = (FXCapStyle) CAP_BUTT ;
void *argp1 = 0 ;
int res1 = 0 ;
int 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_FXDCWindow, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","setLineCap", 1, self ));
}
arg1 = reinterpret_cast< FXDCWindow * >(argp1);
if (argc > 0) {
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXCapStyle","setLineCap", 2, argv[0] ));
}
arg2 = static_cast< FXCapStyle >(val2);
}
FXDCWindow_setLineCap(arg1,arg2);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXDCWindow_setLineJoin(int argc, VALUE *argv, VALUE self) {
FXDCWindow *arg1 = (FXDCWindow *) 0 ;
FXJoinStyle arg2 = (FXJoinStyle) JOIN_MITER ;
void *argp1 = 0 ;
int res1 = 0 ;
int 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_FXDCWindow, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","setLineJoin", 1, self ));
}
arg1 = reinterpret_cast< FXDCWindow * >(argp1);
if (argc > 0) {
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXJoinStyle","setLineJoin", 2, argv[0] ));
}
arg2 = static_cast< FXJoinStyle >(val2);
}
FXDCWindow_setLineJoin(arg1,arg2);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXDCWindow_setLineStyle(int argc, VALUE *argv, VALUE self) {
FXDCWindow *arg1 = (FXDCWindow *) 0 ;
FXLineStyle arg2 = (FXLineStyle) LINE_SOLID ;
void *argp1 = 0 ;
int res1 = 0 ;
int 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_FXDCWindow, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","setLineStyle", 1, self ));
}
arg1 = reinterpret_cast< FXDCWindow * >(argp1);
if (argc > 0) {
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXLineStyle","setLineStyle", 2, argv[0] ));
}
arg2 = static_cast< FXLineStyle >(val2);
}
FXDCWindow_setLineStyle(arg1,arg2);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXDCWindow_setLineWidth(int argc, VALUE *argv, VALUE self) {
FXDCWindow *arg1 = (FXDCWindow *) 0 ;
FXuint arg2 = (FXuint) 0 ;
void *argp1 = 0 ;
int res1 = 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_FXDCWindow, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","setLineWidth", 1, self ));
}
arg1 = reinterpret_cast< FXDCWindow * >(argp1);
if (argc > 0) {
arg2 = NUM2UINT(argv[0]);
}
FXDCWindow_setLineWidth(arg1,arg2);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE _wrap_FXDCWindow_setStipple(int nargs, VALUE *args, VALUE self) {
int argc;
VALUE argv[5];
int ii;
argc = nargs + 1;
argv[0] = self;
if (argc > 5) SWIG_fail;
for (ii = 1; (ii < argc); ++ii) {
argv[ii] = args[ii-1];
}
if ((argc >= 2) && (argc <= 4)) {
int _v = 0;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXDCWindow, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXBitmap, 0);
_v = SWIG_CheckState(res);
if (_v) {
if (argc <= 2) {
return _wrap_FXDCWindow_setStipple__SWIG_0(nargs, args, self);
}
{
_v = (TYPE(argv[2]) == T_FIXNUM || TYPE(argv[2]) == T_BIGNUM) ? 1 : 0;
}
if (_v) {
if (argc <= 3) {
return _wrap_FXDCWindow_setStipple__SWIG_0(nargs, args, self);
}
{
_v = (TYPE(argv[3]) == T_FIXNUM || TYPE(argv[3]) == T_BIGNUM) ? 1 : 0;
}
if (_v) {
return _wrap_FXDCWindow_setStipple__SWIG_0(nargs, args, self);
}
}
}
}
}
if ((argc >= 2) && (argc <= 4)) {
int _v = 0;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXDCWindow, 0);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_int(argv[1], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
if (argc <= 2) {
return _wrap_FXDCWindow_setStipple__SWIG_1(nargs, args, self);
}
{
_v = (TYPE(argv[2]) == T_FIXNUM || TYPE(argv[2]) == T_BIGNUM) ? 1 : 0;
}
if (_v) {
if (argc <= 3) {
return _wrap_FXDCWindow_setStipple__SWIG_1(nargs, args, self);
}
{
_v = (TYPE(argv[3]) == T_FIXNUM || TYPE(argv[3]) == T_BIGNUM) ? 1 : 0;
}
if (_v) {
return _wrap_FXDCWindow_setStipple__SWIG_1(nargs, args, self);
}
}
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 5, "setStipple",
" void setStipple(FXBitmap *bitmap, FXint dx, FXint dy)\n"
" void setStipple(FXStipplePattern pat, FXint dx, FXint dy)\n");
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXDCWindow_setTile(int argc, VALUE *argv, VALUE self) {
FXDCWindow *arg1 = (FXDCWindow *) 0 ;
FXImage *arg2 = (FXImage *) 0 ;
FXint arg3 = (FXint) 0 ;
FXint arg4 = (FXint) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
if ((argc < 1) || (argc > 3)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXDCWindow, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","setTile", 1, self ));
}
arg1 = reinterpret_cast< FXDCWindow * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXImage, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXImage *","setTile", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXImage * >(argp2);
if (argc > 1) {
arg3 = NUM2INT(argv[1]);
}
if (argc > 2) {
arg4 = NUM2INT(argv[2]);
}
FXDCWindow_setTile(arg1,arg2,arg3,arg4);
return Qnil;
fail:
return Qnil;
}