class Fox::FXGLCanvas

Public Class Methods

getCurrentContext(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXGLCanvas_getCurrentContext(int argc, VALUE *argv, VALUE self) {
  FXuval result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  result = (FXuval)FXGLCanvas_getCurrentContext();
  vresult = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
  return vresult;
fail:
  return Qnil;
}
new(*args) click to toggle source
SWIGINTERN VALUE _wrap_new_FXGLCanvas(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[10];
  int ii;
  
  argc = nargs;
  if (argc > 10) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if ((argc >= 2) && (argc <= 9)) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXComposite, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXGLVisual, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        if (argc <= 2) {
          return _wrap_new_FXGLCanvas__SWIG_0(nargs, args, self);
        }
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_FXObject, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          if (argc <= 3) {
            return _wrap_new_FXGLCanvas__SWIG_0(nargs, args, self);
          }
          {
            _v = (TYPE(argv[3]) == T_FIXNUM || TYPE(argv[3]) == T_BIGNUM) ? 1 : 0;
          }
          if (_v) {
            if (argc <= 4) {
              return _wrap_new_FXGLCanvas__SWIG_0(nargs, args, self);
            }
            {
              _v = (TYPE(argv[4]) == T_FIXNUM || TYPE(argv[4]) == T_BIGNUM) ? 1 : 0;
            }
            if (_v) {
              if (argc <= 5) {
                return _wrap_new_FXGLCanvas__SWIG_0(nargs, args, self);
              }
              {
                _v = (TYPE(argv[5]) == T_FIXNUM || TYPE(argv[5]) == T_BIGNUM) ? 1 : 0;
              }
              if (_v) {
                if (argc <= 6) {
                  return _wrap_new_FXGLCanvas__SWIG_0(nargs, args, self);
                }
                {
                  _v = (TYPE(argv[6]) == T_FIXNUM || TYPE(argv[6]) == T_BIGNUM) ? 1 : 0;
                }
                if (_v) {
                  if (argc <= 7) {
                    return _wrap_new_FXGLCanvas__SWIG_0(nargs, args, self);
                  }
                  {
                    _v = (TYPE(argv[7]) == T_FIXNUM || TYPE(argv[7]) == T_BIGNUM) ? 1 : 0;
                  }
                  if (_v) {
                    if (argc <= 8) {
                      return _wrap_new_FXGLCanvas__SWIG_0(nargs, args, self);
                    }
                    {
                      _v = (TYPE(argv[8]) == T_FIXNUM || TYPE(argv[8]) == T_BIGNUM) ? 1 : 0;
                    }
                    if (_v) {
                      return _wrap_new_FXGLCanvas__SWIG_0(nargs, args, self);
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if ((argc >= 3) && (argc <= 10)) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXComposite, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXGLVisual, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_FXGLCanvas, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          if (argc <= 3) {
            return _wrap_new_FXGLCanvas__SWIG_1(nargs, args, self);
          }
          void *vptr = 0;
          int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_FXObject, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            if (argc <= 4) {
              return _wrap_new_FXGLCanvas__SWIG_1(nargs, args, self);
            }
            {
              _v = (TYPE(argv[4]) == T_FIXNUM || TYPE(argv[4]) == T_BIGNUM) ? 1 : 0;
            }
            if (_v) {
              if (argc <= 5) {
                return _wrap_new_FXGLCanvas__SWIG_1(nargs, args, self);
              }
              {
                _v = (TYPE(argv[5]) == T_FIXNUM || TYPE(argv[5]) == T_BIGNUM) ? 1 : 0;
              }
              if (_v) {
                if (argc <= 6) {
                  return _wrap_new_FXGLCanvas__SWIG_1(nargs, args, self);
                }
                {
                  _v = (TYPE(argv[6]) == T_FIXNUM || TYPE(argv[6]) == T_BIGNUM) ? 1 : 0;
                }
                if (_v) {
                  if (argc <= 7) {
                    return _wrap_new_FXGLCanvas__SWIG_1(nargs, args, self);
                  }
                  {
                    _v = (TYPE(argv[7]) == T_FIXNUM || TYPE(argv[7]) == T_BIGNUM) ? 1 : 0;
                  }
                  if (_v) {
                    if (argc <= 8) {
                      return _wrap_new_FXGLCanvas__SWIG_1(nargs, args, self);
                    }
                    {
                      _v = (TYPE(argv[8]) == T_FIXNUM || TYPE(argv[8]) == T_BIGNUM) ? 1 : 0;
                    }
                    if (_v) {
                      if (argc <= 9) {
                        return _wrap_new_FXGLCanvas__SWIG_1(nargs, args, self);
                      }
                      {
                        _v = (TYPE(argv[9]) == T_FIXNUM || TYPE(argv[9]) == T_BIGNUM) ? 1 : 0;
                      }
                      if (_v) {
                        return _wrap_new_FXGLCanvas__SWIG_1(nargs, args, self);
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 10, "FXGLCanvas.new", 
    "    FXGLCanvas.new(FXComposite *p, FXGLVisual *vis, FXObject *tgt, FXSelector sel, FXuint opts, FXint x, FXint y, FXint w, FXint h)\n"
    "    FXGLCanvas.new(FXComposite *p, FXGLVisual *vis, FXGLCanvas *sharegroup, FXObject *tgt, FXSelector sel, FXuint opts, FXint x, FXint y, FXint w, FXint h)\n");
  
  return Qnil;
}
new(parent, vis, *args, &blk) click to toggle source
# File lib/fox16/kwargs.rb, line 97
def initialize(parent, vis, *args, &blk)
  argument_names = %w{target selector opts x y width height}
  default_params = { :target => nil, :selector => 0, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
  params = {}
  params = args.pop if args.last.is_a? Hash
  if args.length > 0 && (args[0].is_a?(FXGLCanvas))
    sharegroup = args[0]
    args.each_with_index { |e, i| params[argument_names[i-1].intern] = e if i >= 1 }
    params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
    params = default_params.merge(params)
    old_initialize(parent, vis, sharegroup, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
  else
    args.each_with_index { |e, i| params[argument_names[i].intern] = e }
    params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
    params = default_params.merge(params)
    old_initialize(parent, vis, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
  end
end
Also aliased as: old_initialize

Public Instance Methods

canFocus(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXGLCanvas_canFocus(int argc, VALUE *argv, VALUE self) {
  FXGLCanvas *arg1 = (FXGLCanvas *) 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_FXGLCanvas, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas const *","canFocus", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGLCanvas * >(argp1);
  result = (bool)FXGLCanvas_canFocus((FXGLCanvas const *)arg1);
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}
changeFocus(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXGLCanvas_changeFocus(int argc, VALUE *argv, VALUE self) {
  FXGLCanvas *arg1 = (FXGLCanvas *) 0 ;
  FXWindow *arg2 = (FXWindow *) 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_FXGLCanvas, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas *","changeFocus", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGLCanvas * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXWindow, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXWindow *","changeFocus", 2, argv[0] )); 
  }
  arg2 = reinterpret_cast< FXWindow * >(argp2);
  FXGLCanvas_changeFocus(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}
clearShape(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXGLCanvas_clearShape(int argc, VALUE *argv, VALUE self) {
  FXGLCanvas *arg1 = (FXGLCanvas *) 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_FXGLCanvas, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas *","clearShape", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGLCanvas * >(argp1);
  FXGLCanvas_clearShape(arg1);
  return Qnil;
fail:
  return Qnil;
}
contains(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXGLCanvas_contains(int argc, VALUE *argv, VALUE self) {
  FXGLCanvas *arg1 = (FXGLCanvas *) 0 ;
  FXint arg2 ;
  FXint arg3 ;
  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_FXGLCanvas, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas const *","contains", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGLCanvas * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  result = (bool)FXGLCanvas_contains((FXGLCanvas const *)arg1,arg2,arg3);
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}
create(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXGLCanvas_create(int argc, VALUE *argv, VALUE self) {
  FXGLCanvas *arg1 = (FXGLCanvas *) 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_FXGLCanvas, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas *","create", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGLCanvas * >(argp1);
  FXGLCanvas_create(arg1);
  return Qnil;
fail:
  return Qnil;
}
destroy(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXGLCanvas_destroy(int argc, VALUE *argv, VALUE self) {
  FXGLCanvas *arg1 = (FXGLCanvas *) 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_FXGLCanvas, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas *","destroy", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGLCanvas * >(argp1);
  FXGLCanvas_destroy(arg1);
  return Qnil;
fail:
  return Qnil;
}
detach(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXGLCanvas_detach(int argc, VALUE *argv, VALUE self) {
  FXGLCanvas *arg1 = (FXGLCanvas *) 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_FXGLCanvas, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas *","detach", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGLCanvas * >(argp1);
  FXGLCanvas_detach(arg1);
  return Qnil;
fail:
  return Qnil;
}
disable(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXGLCanvas_disable(int argc, VALUE *argv, VALUE self) {
  FXGLCanvas *arg1 = (FXGLCanvas *) 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_FXGLCanvas, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas *","disable", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGLCanvas * >(argp1);
  FXGLCanvas_disable(arg1);
  return Qnil;
fail:
  return Qnil;
}
doesSaveUnder(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXGLCanvas_doesSaveUnder(int argc, VALUE *argv, VALUE self) {
  FXGLCanvas *arg1 = (FXGLCanvas *) 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_FXGLCanvas, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas const *","doesSaveUnder", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGLCanvas * >(argp1);
  result = (bool)FXGLCanvas_doesSaveUnder((FXGLCanvas const *)arg1);
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}
dropDisable(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXGLCanvas_dropDisable(int argc, VALUE *argv, VALUE self) {
  FXGLCanvas *arg1 = (FXGLCanvas *) 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_FXGLCanvas, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas *","dropDisable", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGLCanvas * >(argp1);
  FXGLCanvas_dropDisable(arg1);
  return Qnil;
fail:
  return Qnil;
}
dropEnable(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXGLCanvas_dropEnable(int argc, VALUE *argv, VALUE self) {
  FXGLCanvas *arg1 = (FXGLCanvas *) 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_FXGLCanvas, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas *","dropEnable", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGLCanvas * >(argp1);
  FXGLCanvas_dropEnable(arg1);
  return Qnil;
fail:
  return Qnil;
}
enable(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXGLCanvas_enable(int argc, VALUE *argv, VALUE self) {
  FXGLCanvas *arg1 = (FXGLCanvas *) 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_FXGLCanvas, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas *","enable", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGLCanvas * >(argp1);
  FXGLCanvas_enable(arg1);
  return Qnil;
fail:
  return Qnil;
}
getContext(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXGLCanvas_getContext(int argc, VALUE *argv, VALUE self) {
  FXGLCanvas *arg1 = (FXGLCanvas *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXuval 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_FXGLCanvas, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas const *","getContext", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGLCanvas * >(argp1);
  result = (FXuval)FXGLCanvas_getContext((FXGLCanvas const *)arg1);
  vresult = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
  return vresult;
fail:
  return Qnil;
}
getDefaultHeight(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXGLCanvas_getDefaultHeight(int argc, VALUE *argv, VALUE self) {
  FXGLCanvas *arg1 = (FXGLCanvas *) 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_FXGLCanvas, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas *","getDefaultHeight", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGLCanvas * >(argp1);
  result = (FXint)FXGLCanvas_getDefaultHeight(arg1);
  vresult = SWIG_From_int(static_cast< int >(result));
  return vresult;
fail:
  return Qnil;
}
getDefaultWidth(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXGLCanvas_getDefaultWidth(int argc, VALUE *argv, VALUE self) {
  FXGLCanvas *arg1 = (FXGLCanvas *) 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_FXGLCanvas, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas *","getDefaultWidth", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGLCanvas * >(argp1);
  result = (FXint)FXGLCanvas_getDefaultWidth(arg1);
  vresult = SWIG_From_int(static_cast< int >(result));
  return vresult;
fail:
  return Qnil;
}
getHeightForWidth(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXGLCanvas_getHeightForWidth(int argc, VALUE *argv, VALUE self) {
  FXGLCanvas *arg1 = (FXGLCanvas *) 0 ;
  FXint arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXint 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_FXGLCanvas, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas *","getHeightForWidth", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGLCanvas * >(argp1);
  arg2 = NUM2INT(argv[0]);
  result = (FXint)FXGLCanvas_getHeightForWidth(arg1,arg2);
  vresult = SWIG_From_int(static_cast< int >(result));
  return vresult;
fail:
  return Qnil;
}
getWidthForHeight(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXGLCanvas_getWidthForHeight(int argc, VALUE *argv, VALUE self) {
  FXGLCanvas *arg1 = (FXGLCanvas *) 0 ;
  FXint arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXint 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_FXGLCanvas, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas *","getWidthForHeight", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGLCanvas * >(argp1);
  arg2 = NUM2INT(argv[0]);
  result = (FXint)FXGLCanvas_getWidthForHeight(arg1,arg2);
  vresult = SWIG_From_int(static_cast< int >(result));
  return vresult;
fail:
  return Qnil;
}
hide(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXGLCanvas_hide(int argc, VALUE *argv, VALUE self) {
  FXGLCanvas *arg1 = (FXGLCanvas *) 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_FXGLCanvas, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas *","hide", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGLCanvas * >(argp1);
  FXGLCanvas_hide(arg1);
  return Qnil;
fail:
  return Qnil;
}
isComposite(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXGLCanvas_isComposite(int argc, VALUE *argv, VALUE self) {
  FXGLCanvas *arg1 = (FXGLCanvas *) 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_FXGLCanvas, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas const *","isComposite", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGLCanvas * >(argp1);
  result = (bool)FXGLCanvas_isComposite((FXGLCanvas const *)arg1);
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}
isCurrent(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXGLCanvas_isCurrent(int argc, VALUE *argv, VALUE self) {
  FXGLCanvas *arg1 = (FXGLCanvas *) 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_FXGLCanvas, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas const *","isCurrent", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGLCanvas * >(argp1);
  result = (FXbool)FXGLCanvas_isCurrent((FXGLCanvas const *)arg1);
  vresult = result ? Qtrue : Qfalse;
  return vresult;
fail:
  return Qnil;
}
killFocus(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXGLCanvas_killFocus(int argc, VALUE *argv, VALUE self) {
  FXGLCanvas *arg1 = (FXGLCanvas *) 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_FXGLCanvas, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas *","killFocus", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGLCanvas * >(argp1);
  FXGLCanvas_killFocus(arg1);
  return Qnil;
fail:
  return Qnil;
}
layout(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXGLCanvas_layout(int argc, VALUE *argv, VALUE self) {
  FXGLCanvas *arg1 = (FXGLCanvas *) 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_FXGLCanvas, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas *","layout", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGLCanvas * >(argp1);
  FXGLCanvas_layout(arg1);
  return Qnil;
fail:
  return Qnil;
}
load(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXGLCanvas_load(int argc, VALUE *argv, VALUE self) {
  FXGLCanvas *arg1 = (FXGLCanvas *) 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_FXGLCanvas, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas *","load", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGLCanvas * >(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);
  FXGLCanvas_load(arg1,*arg2);
  return Qnil;
fail:
  return Qnil;
}
lower(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXGLCanvas_lower(int argc, VALUE *argv, VALUE self) {
  FXGLCanvas *arg1 = (FXGLCanvas *) 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_FXGLCanvas, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas *","lower", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGLCanvas * >(argp1);
  FXGLCanvas_lower(arg1);
  return Qnil;
fail:
  return Qnil;
}
makeCurrent(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXGLCanvas_makeCurrent(int argc, VALUE *argv, VALUE self) {
  FXGLCanvas *arg1 = (FXGLCanvas *) 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_FXGLCanvas, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas *","makeCurrent", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGLCanvas * >(argp1);
  result = (FXbool)FXGLCanvas_makeCurrent(arg1);
  vresult = result ? Qtrue : Qfalse;
  return vresult;
fail:
  return Qnil;
}
makeNonCurrent(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXGLCanvas_makeNonCurrent(int argc, VALUE *argv, VALUE self) {
  FXGLCanvas *arg1 = (FXGLCanvas *) 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_FXGLCanvas, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas *","makeNonCurrent", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGLCanvas * >(argp1);
  result = (FXbool)FXGLCanvas_makeNonCurrent(arg1);
  vresult = result ? Qtrue : Qfalse;
  return vresult;
fail:
  return Qnil;
}
move(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXGLCanvas_move(int argc, VALUE *argv, VALUE self) {
  FXGLCanvas *arg1 = (FXGLCanvas *) 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_FXGLCanvas, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas *","move", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGLCanvas * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  FXGLCanvas_move(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}
old_initialize(parent, vis, *args, &blk)
Alias for: new
position(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXGLCanvas_position(int argc, VALUE *argv, VALUE self) {
  FXGLCanvas *arg1 = (FXGLCanvas *) 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_FXGLCanvas, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas *","position", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGLCanvas * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  arg4 = NUM2INT(argv[2]);
  arg5 = NUM2INT(argv[3]);
  FXGLCanvas_position(arg1,arg2,arg3,arg4,arg5);
  return Qnil;
fail:
  return Qnil;
}
raiseWindow(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXGLCanvas_raiseWindow(int argc, VALUE *argv, VALUE self) {
  FXGLCanvas *arg1 = (FXGLCanvas *) 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_FXGLCanvas, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas *","raise", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGLCanvas * >(argp1);
  FXGLCanvas_raise(arg1);
  return Qnil;
fail:
  return Qnil;
}
recalc(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXGLCanvas_recalc(int argc, VALUE *argv, VALUE self) {
  FXGLCanvas *arg1 = (FXGLCanvas *) 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_FXGLCanvas, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas *","recalc", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGLCanvas * >(argp1);
  FXGLCanvas_recalc(arg1);
  return Qnil;
fail:
  return Qnil;
}
reparent(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXGLCanvas_reparent(int argc, VALUE *argv, VALUE self) {
  FXGLCanvas *arg1 = (FXGLCanvas *) 0 ;
  FXWindow *arg2 = (FXWindow *) 0 ;
  FXWindow *arg3 = (FXWindow *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 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_FXGLCanvas, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas *","reparent", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGLCanvas * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXWindow, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXWindow *","reparent", 2, argv[0] )); 
  }
  arg2 = reinterpret_cast< FXWindow * >(argp2);
  res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_FXWindow, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "FXWindow *","reparent", 3, argv[1] )); 
  }
  arg3 = reinterpret_cast< FXWindow * >(argp3);
  FXGLCanvas_reparent(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}
resize(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXGLCanvas_resize(int argc, VALUE *argv, VALUE self) {
  FXGLCanvas *arg1 = (FXGLCanvas *) 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_FXGLCanvas, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas *","resize", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGLCanvas * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  FXGLCanvas_resize(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}
save(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXGLCanvas_save(int argc, VALUE *argv, VALUE self) {
  FXGLCanvas *arg1 = (FXGLCanvas *) 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_FXGLCanvas, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas const *","save", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGLCanvas * >(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);
  FXGLCanvas_save((FXGLCanvas const *)arg1,*arg2);
  return Qnil;
fail:
  return Qnil;
}
setBackColor(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXGLCanvas_setBackColor(int argc, VALUE *argv, VALUE self) {
  FXGLCanvas *arg1 = (FXGLCanvas *) 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_FXGLCanvas, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas *","setBackColor", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGLCanvas * >(argp1);
  arg2 = to_FXColor(argv[0]);
  FXGLCanvas_setBackColor(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}
setDefault(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXGLCanvas_setDefault(int argc, VALUE *argv, VALUE self) {
  FXGLCanvas *arg1 = (FXGLCanvas *) 0 ;
  FXbool arg2 = (FXbool) 1 ;
  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_FXGLCanvas, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas *","setDefault", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGLCanvas * >(argp1);
  if (argc > 0) {
    arg2 = to_FXbool(argv[0]);
  }
  FXGLCanvas_setDefault(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}
setFocus(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXGLCanvas_setFocus(int argc, VALUE *argv, VALUE self) {
  FXGLCanvas *arg1 = (FXGLCanvas *) 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_FXGLCanvas, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas *","setFocus", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGLCanvas * >(argp1);
  FXGLCanvas_setFocus(arg1);
  return Qnil;
fail:
  return Qnil;
}
setShape(*args) click to toggle source
SWIGINTERN VALUE _wrap_FXGLCanvas_setShape(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[3];
  int ii;
  
  argc = nargs + 1;
  argv[0] = self;
  if (argc > 3) SWIG_fail;
  for (ii = 1; (ii < argc); ++ii) {
    argv[ii] = args[ii-1];
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXGLCanvas, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXRegion, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_FXGLCanvas_setShape__SWIG_0(nargs, args, self);
      }
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXGLCanvas, 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) {
        return _wrap_FXGLCanvas_setShape__SWIG_1(nargs, args, self);
      }
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXGLCanvas, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXIcon, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_FXGLCanvas_setShape__SWIG_2(nargs, args, self);
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 3, "setShape", 
    "    void setShape(FXRegion const &region)\n"
    "    void setShape(FXBitmap *bitmap)\n"
    "    void setShape(FXIcon *icon)\n");
  
  return Qnil;
}
shared?(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXGLCanvas_sharedq___(int argc, VALUE *argv, VALUE self) {
  FXGLCanvas *arg1 = (FXGLCanvas *) 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_FXGLCanvas, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas const *","isShared", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGLCanvas * >(argp1);
  result = (FXbool)((FXGLCanvas const *)arg1)->isShared();
  vresult = result ? Qtrue : Qfalse;
  return vresult;
fail:
  return Qnil;
}
show(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXGLCanvas_show(int argc, VALUE *argv, VALUE self) {
  FXGLCanvas *arg1 = (FXGLCanvas *) 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_FXGLCanvas, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas *","show", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGLCanvas * >(argp1);
  FXGLCanvas_show(arg1);
  return Qnil;
fail:
  return Qnil;
}
swapBuffers(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXGLCanvas_swapBuffers(int argc, VALUE *argv, VALUE self) {
  FXGLCanvas *arg1 = (FXGLCanvas *) 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_FXGLCanvas, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas *","swapBuffers", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGLCanvas * >(argp1);
  FXGLCanvas_swapBuffers(arg1);
  return Qnil;
fail:
  return Qnil;
}
tr(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXGLCanvas_tr(int argc, VALUE *argv, VALUE self) {
  FXGLCanvas *arg1 = (FXGLCanvas *) 0 ;
  FXchar *arg2 = (FXchar *) 0 ;
  FXchar *arg3 = (FXchar *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXchar *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLCanvas, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas const *","tr", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGLCanvas * >(argp1);
  arg2 = NIL_P(argv[0]) ? 0 : StringValuePtr(argv[0]);
  if (argc > 1) {
    arg3 = NIL_P(argv[1]) ? 0 : StringValuePtr(argv[1]);
  }
  result = (FXchar *)FXGLCanvas_tr((FXGLCanvas const *)arg1,(char const *)arg2,(char const *)arg3);
  vresult = SWIG_FromCharPtr((const char *)result);
  return vresult;
fail:
  return Qnil;
}