Class Fox::FXSize
In: rdoc-sources/FXSize.rb
Parent: Object

Size

Methods

empty?   grow!   grow!   grow!   new   new   new   shrink!   shrink!   shrink!  

Attributes

h  [RW]  Height [Integer]
w  [RW]  Width [Integer]

Public Class methods

Return an uninitialized FXSize instance.

Return an initialized FXSize instance, where ww and hh are the initial width and height.

Return an initialized FXSize instance which is a copy of the input size s (an FXSize instance).

Public Instance methods

Return true if width or height is less than or equal to zero.

Grow the rectangle by some amount and return a reference to the rectangle.

Parameters:

margin:number of units to grow on each side [Integer]

Grow the rectangle by some amount and return a reference to the rectangle.

Parameters:

leftmargin:number of units to grow on the left side [Integer]
rightmargin:number of units to grow on the right side [Integer]
topmargin:number of units to grow on the top side [Integer]
bottommargin:number of units to grow on the bottom side [Integer]

Grow the rectangle by some amount and return a reference to the rectangle.

Parameters:

hormargin:number of units to grow on the left and right sides [Integer]
vermargin:number of units to grow on the top and bottom sides [Integer]

Shrink the rectangle by margin units, and return a reference to the rectangle.

Parameters:

margin:number of units to shrink on each side [Integer]

Shrink the rectangle by some amount, and return a reference to the rectangle.

Parameters:

hormargin:number of units to shrink on the left and right sides [Integer]
vermargin:number of units to shrink on the top and bottom sides [Integer]

Shrink the rectangle by some amount, and return a reference to the rectangle.

Parameters:

leftmargin:number of units to shrink on the left side [Integer]
rightmargin:number of units to shrink on the right side [Integer]
topmargin:number of units to shrink on the top side [Integer]
bottommargin:number of units to shrink on the bottom side [Integer]

[Validate]