Class: Fox::FXSize

Inherits:
Object
  • Object
show all
Defined in:
rdoc-sources/FXSize.rb

Overview

Size

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#hObject

Height [Integer]



10
11
12
# File 'rdoc-sources/FXSize.rb', line 10

def h
  @h
end

#wObject

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.

Returns:

  • (Boolean)


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