Class Fox::FXGLGroup
In: lib/fox16/glgroup.rb
Parent: FXGLObject

A group of OpenGL objects

Methods

<<   []   []=   append   bounds   canDrag   clear   drag   draw   each   each_child   erase   hit   identify   insert   new   prepend   remove   replace   size  

Included Modules

Enumerable

Constants

FLT_MAX = 1.0e+20
FLT_MIN = -1.0e+20

Public Class methods

Returns an initialized FXGLGroup instance

Public Instance methods

<<(obj)

Alias for append

Return child at position pos.

Set child at position pos to obj.

Append child object

Return bounding box for this group (an FXRangef instance)

Return true if group can be dragged.

Remove all children from this group.

Drag group object around in viewer (an FXGLViewer instance), from (fx, fy) to (tx, ty).

Draw this group into viewer (an FXGLViewer instance).

each(

Alias for each_child

Iterate over child objects

erase(obj)

Alias for remove

Perform hit test in viewer (an FXGLViewer instance).

Identify object by means of path.

Insert child object (obj) at position pos.

Prepend child object (obj).

If obj is a reference to an FXGLObject in this group, remove the child object from the list. If obj is an integer, remove the child object at that position from the list.

Replace child object at position pos with obj.

Return number of objects in this group.

[Validate]