Class: Fox::FXExtentd

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(xlo, xhi, ylo, yhi) ⇒ FXExtentd

Initialize from four numbers



10
# File 'rdoc-sources/FXExtentd.rb', line 10

def initialize; end

Instance Attribute Details

#lowerObject (readonly)

Lower corner of this extent (an FXVec2d instance).



4
5
6
# File 'rdoc-sources/FXExtentd.rb', line 4

def lower
  @lower
end

#upperObject (readonly)

Upper corner of this extent (an FXVec2d instance).



7
8
9
# File 'rdoc-sources/FXExtentd.rb', line 7

def upper
  @upper
end

Instance Method Details

#[](i) ⇒ Object

Indexing with 0..1 (returns an FXVec2d instance).



23
# File 'rdoc-sources/FXExtentd.rb', line 23

def [](i); end

#centerObject

Return center of box (as an FXVec2d)



47
# File 'rdoc-sources/FXExtentd.rb', line 47

def center; end

#contains?(ext) ⇒ Boolean

Return true if box properly contains another box (where ext is another FXExtentd instance).

Returns:

  • (Boolean)


53
# File 'rdoc-sources/FXExtentd.rb', line 53

def contains?(x, y); end

#corner(c) ⇒ Object

Return corner number 0, 1, 2 or 3 (as a FXVec2d instance).



76
# File 'rdoc-sources/FXExtentd.rb', line 76

def corner(c); end

#diagonalObject

Compute diagonal vector (returns an FXVec2d)



44
# File 'rdoc-sources/FXExtentd.rb', line 44

def diagonal; end

#diameterObject

Return length of diagonal



38
# File 'rdoc-sources/FXExtentd.rb', line 38

def diameter; end

#empty?Boolean

Return true if empty

Returns:

  • (Boolean)


50
# File 'rdoc-sources/FXExtentd.rb', line 50

def empty?; end

#heightObject

Return height of box



29
# File 'rdoc-sources/FXExtentd.rb', line 29

def height; end

#include!(ext) ⇒ Object

Include given range into extent (where ext is another FXExtentd instance) and return a reference to self.



63
# File 'rdoc-sources/FXExtentd.rb', line 63

def include!(x, y); end

#intersect_with(other) ⇒ Object

Return a new FXExtentd that is the intersection of this extent and other.



82
# File 'rdoc-sources/FXExtentd.rb', line 82

def intersect_with(other); end

#longestObject

Return length of longest side



32
# File 'rdoc-sources/FXExtentd.rb', line 32

def longest; end

#overlap?(other) ⇒ Boolean

Return true if this extent’s bounds overlap with other extent’s bounds.

Returns:

  • (Boolean)


73
# File 'rdoc-sources/FXExtentd.rb', line 73

def overlap?(other); end

#radiusObject

Return radius of box



41
# File 'rdoc-sources/FXExtentd.rb', line 41

def radius; end

#shortestObject

Return length of shortest side



35
# File 'rdoc-sources/FXExtentd.rb', line 35

def shortest; end

#unite_with(other) ⇒ Object

Return a new FXExtentd that is the union of this extent and other.



79
# File 'rdoc-sources/FXExtentd.rb', line 79

def unite_with(other); end

#widthObject

Return width of box



26
# File 'rdoc-sources/FXExtentd.rb', line 26

def width; end