Class: Fox::FXGLObject
Overview
Basic OpenGL object.
Instance Method Summary collapse
-
#bounds ⇒ Object
Return a bounding box (an FXRangef instance) for this object.
-
#canDelete ⇒ Object
Return
true
if this object can be deleted from the scene. -
#canDrag ⇒ Object
Return
true
if this object can be dragged around. -
#copy ⇒ Object
Return a new object which is a copy (i.e. a “clone”) of this one.
-
#drag(viewer, fx, fy, tx, ty) ⇒ Object
Drag this object from one position to another.
-
#draw(viewer) ⇒ Object
Draw this object in a viewer.
-
#hit(viewer) ⇒ Object
Draw this object for hit-testing purposes.
-
#identify(path) ⇒ Object
Identify sub-object given path, where path is a list of integer names pushed onto the stack during hit testing.
-
#initialize ⇒ FXGLObject
constructor
Return an initialized FXGLObject instance.
Methods inherited from FXObject
#bind, #handle, #load, #save, subclasses
Constructor Details
#initialize ⇒ FXGLObject
Return an initialized FXGLObject instance.
9 10 |
# File 'rdoc-sources/FXGLObject.rb', line 9 def initialize # :yields: theGLObject end |
Instance Method Details
#bounds ⇒ Object
Return a bounding box (an FXRangef instance) for this object.
20 |
# File 'rdoc-sources/FXGLObject.rb', line 20 def bounds; end |
#canDelete ⇒ Object
Return true
if this object can be deleted from the scene.
48 |
# File 'rdoc-sources/FXGLObject.rb', line 48 def canDelete; end |
#canDrag ⇒ Object
Return true
if this object can be dragged around.
43 |
# File 'rdoc-sources/FXGLObject.rb', line 43 def canDrag; end |
#copy ⇒ Object
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 |
#drag(viewer, fx, fy, tx, ty) ⇒ Object
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 |
#draw(viewer) ⇒ Object
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 |
#hit(viewer) ⇒ Object
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 |
#identify(path) ⇒ Object
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 |