|
# File ../lib/fox/core.rb, line 31
def initialize(*args)
if args.length == 0
initializeXY(0, 0)
elsif args.length == 1
if args[0].kind_of?(FXSize)
initializeXY(args[0].w, args[0].h)
elsif args[0].kind_of?(FXPoint)
initializeXY(args[0].x, args[0].y)
else
raise TypeError, 'expected FXPoint or FXSize'
end
else
initializeXY(args[0], args[1])
end
end
|