Sha256: 2641489d1ba8997f6ec5b961601a559ee1efee876d6c58934411ca7a0aafdc72

Contents?: true

Size: 1.97 KB

Versions: 55

Compression:

Stored size: 1.97 KB

Contents

module Fox
  class FXRegion
    # Construct new empty region
    def initialize; end
    
    # Construct new region copied from region _r_ (another FXRegion instance).
    def initialize(r); end
    
    # Construct new region from rectangle _rect_ (an FXRectangle instance)
    def initialize(rect); end
    
    #
    # Construct rectangle region, where (_x_, _y_) are the coordinates of the
    # upper left-hand corner and (_w_, _h_) are its width and height.
    #
    def initialize(x, y, w, h); end
    
    #
    # Construct polygon region from an array of points. Here, _points_ is
    # an array of FXPoint instances.
    #
    def initialize(points, winding=false); end
    
    # Return +true+ if this region is empty
    def empty?; end
    
    # Return +true+ if this region contains the point at (_x_, _y_).
    def contains?(x, y); end
    
    # Return +true+ if this region contains the rectangle whose upper left
    # corner is at (_x_, _y_) and whose width and height are (_w_, _h_).
    def contains?(x, y, w, h); end
    
    # Return the bounding box (an FXRectangle instance) for this region.
    def bounds; end
    
    # Offset this region by (_dx_, _dy_) units, and return a reference to
    # this region.
    def offset!(dx, dy); end
    
    # Return a new FXRegion which is the union of this region and _other_
    # (another FXRegion instance).
    def +(other); end
    
    # Return a new FXRegion which is the intersection of this region and
    # _other_ (another FXRegion instance).
    def *(other); end
    
    # Return a new FXRegion which is the difference of this region and
    # _other_ (another FXRegion instance).
    def -(other); end
    
    # Return a new FXRegion which is the exclusive-or (XOR) of this region
    # with _other_ (another FXRegion instance).
    def ^(other); end
    
    # Return +true+ if this region is equal to _other_ (another FXRegion instance).
    def ==(other); end
    
    # Reset this region to empty.
    def reset; end
  end
end

Version data entries

55 entries across 55 versions & 2 rubygems

Version Path
fxruby-1.6.22.pre2-x86-mingw32 rdoc-sources/FXRegion.rb
fxruby-1.6.22.pre2 rdoc-sources/FXRegion.rb
fxrubi-1.6.22.pre1-x86-mingw32 rdoc-sources/FXRegion.rb
fxrubi-1.6.22.pre1 rdoc-sources/FXRegion.rb
fxruby-1.6.20-x86-mingw32 rdoc-sources/FXRegion.rb
fxruby-1.6.20-x86-linux rdoc-sources/FXRegion.rb
fxruby-1.6.20 rdoc-sources/FXRegion.rb
fxruby-1.6.20-universal-darwin-10 rdoc-sources/FXRegion.rb
fxruby-1.6.19-x86-mingw32 rdoc-sources/FXRegion.rb
fxruby-1.6.14-mswin32 rdoc-sources/FXRegion.rb
fxruby-1.6.13-mswin32 rdoc-sources/FXRegion.rb
fxruby-1.2.3 rdoc-sources/FXRegion.rb
fxruby-1.2.2 rdoc-sources/FXRegion.rb
fxruby-1.2.4 rdoc-sources/FXRegion.rb
fxruby-1.2.5 rdoc-sources/FXRegion.rb
fxruby-1.2.6 rdoc-sources/FXRegion.rb
fxruby-1.4.0 rdoc-sources/FXRegion.rb
fxruby-1.4.1 rdoc-sources/FXRegion.rb
fxruby-1.4.2 rdoc-sources/FXRegion.rb
fxruby-1.4.3 rdoc-sources/FXRegion.rb