VkCursorList(3x)
VkCursorList - Support lists of cursors that can be used for animation
As shipped in IRIX 6.5.30. Unchanged since IRIX 6.5.
NAME VkCursorList - Support lists of cursors that can be used for animation HEADER FILE #include <Vk/VkCursorList.h> PUBLIC PROTOCOL SUMMARY Destructor virtual void ~VkCursorList(void); CLASS DESCRIPTION This abstract base class manages a list of cursors and supports functions for cycling through the list. It is used as the basis of VkBusyCursor, which provides a sequence of animated busy cursors. To add alternate busy cursors to a ViewKit application, one can subclass VkCursorList, provide the desired sequence of Cursors, and install the new class with the VkApp object. PUBLIC METHOD DESCRIPTIONS ~VkCursorList() virtual void ~VkCursorList(void); Frees the storage associated with a VkCursorList object. next() Cursor next(); Returns the next Cursor in the sequence. current() Cursor current(); Returns the current cursor in the sequence. reset() void reset(); Resets a sequence of Cursors to the initial Cursor in the animation sequence. DERIVING SUBCLASSES To use the VkCursorList class, you must create a subclass. The subclass must implement the createCursor() method, which is expected to return a Cursor, given an index into a sequence. PROTECTED METHOD DESCRIPTIONS VkCursorList() VkCursorList(int numCursors); Initializes a VkCursorList object. This constructor must be called from a derived class constructor. The numCursors argument must indicate the number of Cursors in the sequence of animated Cursors this class will create. createCursor() virtual void createCursor(int index) = 0; VkCursorList uses a lazy evaluation method for creating Cursors. No Cursors are created initially. VkCursorList maintains a list of cursors that is supplied to clients via calls to next() and current(). When VkCursorList needs a Cursor that has not yet been created, it calls createCursor() with an index that indicates the needed Cursor. Subclasses are expected to implement this function and be able to return the appropriate Cursor. KNOWN DERIVED CLASSES VkBusyCursor SEE ALSO ViewKit Programmer's Guide The X Window System, DEC Press, Bob Sheifler and Jim Gettys The X Window System Toolkit, DEC Press, Paul Asente and Ralph Swick The OSF/Motif Programmers Reference, Prentice Hall, OSF