    # File ../lib/fox/core.rb, line 134
        def contains(*args)
          if args.length == 1
            if args[0].kind_of?(FXPoint)
              contains(args[0].x, args[0].y)
            elsif args[0].kind_of?(FXRectangle)
              r = args[0]
              x <= r.x && y <= r.y && r.x+r.w<=x+w && r.y+r.h<=y+h
            else
              raise TypeError, 'expected FXPoint or FXRectangle'
            end
          elsif args.length == 2
            xx, yy = args[0], args[1]
            x <= xx && y <= yy && xx < x+w && yy < y+h
          end
        end