Class: Fox::FXSize
- Inherits:
-
Object
- Object
- Fox::FXSize
- Defined in:
- rdoc-sources/FXSize.rb
Overview
Size
Instance Attribute Summary collapse
-
#h ⇒ Object
Height [Integer].
-
#w ⇒ Object
Width [Integer].
Instance Method Summary collapse
-
#empty? ⇒ Boolean
Return
true
if width or height is less than or equal to zero. -
#grow!(leftmargin, rightmargin, topmargin, bottommargin) ⇒ Object
Grow the rectangle by some amount and return a reference to the rectangle.
-
#initialize(ww, hh) ⇒ FXSize
constructor
Return an initialized FXSize instance, where ww and hh are the initial width and height.
-
#shrink!(leftmargin, rightmargin, topmargin, bottommargin) ⇒ Object
Shrink the rectangle by some amount, and return a reference to the rectangle.
Constructor Details
#initialize(ww, hh) ⇒ FXSize
Return an initialized FXSize instance, where ww and hh are the initial width and height.
15 |
# File 'rdoc-sources/FXSize.rb', line 15 def initialize; end |
Instance Attribute Details
#h ⇒ Object
Height [Integer]
10 11 12 |
# File 'rdoc-sources/FXSize.rb', line 10 def h @h end |
#w ⇒ Object
Width [Integer]
7 8 9 |
# File 'rdoc-sources/FXSize.rb', line 7 def w @w end |
Instance Method Details
#empty? ⇒ Boolean
Return true
if width or height is less than or equal to zero.
30 |
# File 'rdoc-sources/FXSize.rb', line 30 def empty?; end |
#grow!(leftmargin, rightmargin, topmargin, bottommargin) ⇒ Object
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]
39 |
# File 'rdoc-sources/FXSize.rb', line 39 def grow!(margin); end |
#shrink!(leftmargin, rightmargin, topmargin, bottommargin) ⇒ Object
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]
70 |
# File 'rdoc-sources/FXSize.rb', line 70 def shrink!(margin); end |