Sha256: 647c6251e015a94888c6c3a9e219fad5bb0b5c5a69ab37e611ff8965d92c7a68

Contents?: true

Size: 1.74 KB

Versions: 55

Compression:

Stored size: 1.74 KB

Contents

module Fox
  #
  # Basic OpenGL object.
  #
  class FXGLObject < FXObject
    #
    # Return an initialized FXGLObject instance.
    #
    def initialize # :yields: theGLObject
    end

    #
    # Return a new object which is a copy (i.e. a "clone") of this one.
    #
    def copy; end
    
    #
    # Return a bounding box (an FXRangef instance) for this object.
    #
    def bounds; end
    
    #
    # Draw this object in a viewer.
    #
    # ==== Parameters:
    #
    # +viewer+::	the viewer window into which we're drawing [FXGLViewer]
    #
    def draw(viewer); end
    
    #
    # Draw this object for hit-testing purposes.
    #
    # ==== Parameters:
    #
    # +viewer+::	the viewer window into which we're drawing [FXGLViewer]
    #
    def hit(viewer); end
    
    #
    # Return +true+ if this object can be dragged around.
    #
    def canDrag; end
    
    #
    # Return +true+ if this object can be deleted from the scene.
    #
    def canDelete; end
    
    #
    # Drag this object from one position to another. Returns +true+
    # if the drag was successful.
    #
    # ==== Parameters:
    #
    # +viewer+::	the viewer window in which we're dragging [FXGLViewer]
    # +fx+::		x-coordinate for position we're dragging from [Integer]
    # +fy+::		y-coordinate for position we're dragging from [Integer]
    # +tx+::		x-coordinate for position we're dragging to [Integer]
    # +ty+::		y-coordinate for position we're dragging to [Integer]
    #
    def drag(viewer, fx, fy, tx, ty); end

    #
    # Identify sub-object given path, where _path_ is a list of integer
    # names pushed onto the stack during hit testing.
    #
    # ==== Parameters:
    #
    # +path+::	an array of integers [Array]
    #
    def identify(path); end
  end
end

Version data entries

55 entries across 55 versions & 2 rubygems

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