Class: Fox::FXGLObject

Inherits:
FXObject show all
Defined in:
rdoc-sources/FXGLObject.rb

Overview

Basic OpenGL object.

Direct Known Subclasses

FXGLGroup, FXGLLine, FXGLPoint, FXGLShape

Instance Method Summary (collapse)

Methods inherited from FXObject

#bind, #handle, #load, #save, subclasses

Constructor Details

- (FXGLObject) initialize

Return an initialized FXGLObject instance.



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

def initialize # :yields: theGLObject
end

Instance Method Details

- (Object) bounds

Return a bounding box (an FXRangef instance) for this object.



20
# File 'rdoc-sources/FXGLObject.rb', line 20

def bounds; end

- (Object) canDelete

Return true if this object can be deleted from the scene.



48
# File 'rdoc-sources/FXGLObject.rb', line 48

def canDelete; end

- (Object) canDrag

Return true if this object can be dragged around.



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

def canDrag; end

- (Object) copy

Return a new object which is a copy (i.e. a "clone") of this one.



15
# File 'rdoc-sources/FXGLObject.rb', line 15

def copy; end

- (Object) drag(viewer, fx, fy, tx, ty)

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 Fox::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]



62
# File 'rdoc-sources/FXGLObject.rb', line 62

def drag(viewer, fx, fy, tx, ty); end

- (Object) draw(viewer)

Draw this object in a viewer.

Parameters:

viewer

the viewer window into which we're drawing Fox::FXGLViewer



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

def draw(viewer); end

- (Object) hit(viewer)

Draw this object for hit-testing purposes.

Parameters:

viewer

the viewer window into which we're drawing Fox::FXGLViewer



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

def hit(viewer); end

- (Object) identify(path)

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]



72
# File 'rdoc-sources/FXGLObject.rb', line 72

def identify(path); end