|
# File ../lib/fox/core.rb, line 189
def shrink(*args)
if args.length == 1
margin = args[0]
shrink(margin, margin, margin, margin)
elsif args.length == 2
hormargin = args[0]
vermargin = args[1]
shrink(hormargin, hormargin, vermargin, vermargin)
else
leftmargin = args[0]
rightmargin = args[1]
topmargin = args[2]
bottommargin = args[3]
self.x = self.x + leftmargin
self.y = self.y + topmargin
self.w = self.w - (leftmargin + rightmargin)
self.h = self.h - (topmargin + bottommargin)
end
self
end
|