Class: Fox::FXRegion

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

Instance Method Summary collapse

Constructor Details

#initialize(points, winding = false) ⇒ FXRegion

Construct polygon region from an array of points. Here, points is an array of FXPoint instances.



4
# File 'rdoc-sources/FXRegion.rb', line 4

def initialize; end

Instance Method Details

#*(other) ⇒ Object

Return a new FXRegion which is the intersection of this region and other (another FXRegion instance).



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

def *(other); end

#+(other) ⇒ Object

Return a new FXRegion which is the union of this region and other (another FXRegion instance).



43
# File 'rdoc-sources/FXRegion.rb', line 43

def +(other); end

#-(other) ⇒ Object

Return a new FXRegion which is the difference of this region and other (another FXRegion instance).



51
# File 'rdoc-sources/FXRegion.rb', line 51

def -(other); end

#==(other) ⇒ Object

Return true if this region is equal to other (another FXRegion instance).



58
# File 'rdoc-sources/FXRegion.rb', line 58

def ==(other); end

#^(other) ⇒ Object

Return a new FXRegion which is the exclusive-or (XOR) of this region with other (another FXRegion instance).



55
# File 'rdoc-sources/FXRegion.rb', line 55

def ^(other); end

#boundsObject

Return the bounding box (an FXRectangle instance) for this region.



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

def bounds; end

#contains?(x, y, w, h) ⇒ Boolean

Return true if this region contains the rectangle whose upper left corner is at (x, y) and whose width and height are (w, h).

Returns:

  • (Boolean)


28
# File 'rdoc-sources/FXRegion.rb', line 28

def contains?(x, y); end

#empty?Boolean

Return true if this region is empty

Returns:

  • (Boolean)


25
# File 'rdoc-sources/FXRegion.rb', line 25

def empty?; end

#offset!(dx, dy) ⇒ Object

Offset this region by (dx, dy) units, and return a reference to this region.



39
# File 'rdoc-sources/FXRegion.rb', line 39

def offset!(dx, dy); end

#resetObject

Reset this region to empty.



61
# File 'rdoc-sources/FXRegion.rb', line 61

def reset; end