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

Methods

*   +   -   ==   ^   bounds   contains?   contains?   empty?   new   new   new   new   new   offset!   reset  

Public Class methods

Construct new empty region

Construct new region from rectangle rect (an FXRectangle instance)

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

Construct rectangle region, where (x, y) are the coordinates of the upper left-hand corner and (w, h) are its width and height.

Construct new region copied from region r (another FXRegion instance).

Public Instance methods

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

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

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

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

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

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

Return true if this region contains the point at (x, y).

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

Return true if this region is empty

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

Reset this region to empty.

[Validate]