|
# File ../lib/fox/core.rb, line 102
def initialize(*args)
if args.length == 0
initialize4(0, 0, 0, 0)
elsif args.length == 2
if args[0].kind_of?(FXPoint) && args[1].kind_of?(FXSize)
p = args[0]
s = args[1]
initialize4(p.x, p.y, s.w, s.h)
else
topleft = args[0]
bottomright = args[1]
initialize4(topleft.x, topleft.y, bottomright.x-topleft.x+1, bottomright.y-topleft.y+1)
end
else
xx, yy, ww, hh = args[0], args[1], args[2], args[3]
initialize4(xx, yy, ww, hh)
end
end
|