VkCmdFactory(3x) VkCmdFactory(3x)
VkCmdFactory - produces VkCmd objects
VkCallbackObject
#include <Vk/VkCmdFactory.h>
The VkCmdFactory is an optional class that provides some useful
services for applications that use VkCmd objects. Although VkCmd
objects can be executed directly or via a VkCmdManager, the
VkCmdFactory is useful when commands can be executed from multiple
sources. For example, some applications might make an operation
available to the user from a menu bar, a toolbar, a popup menu, and
perhaps other parts of a user interface. A VkCmdFactory provides a
central object that multiple interfaces can communicate with to
launch the same command.
Any VkComponent can register itself with a VkCmFactory object, to
track the availability of the command. If the VkCmdFactory is
deactivated, all registered components will be desensitized
automatically. In addition, any VkComponent, registered or not, can
register an cmdExecutedCallback member function with A VkCmdFactory
object. This callback will be invoked when a command is executed by
the Factory.
A VkCmdFactory object can execute a VkCmd object instantiated by the
application, but it is most useful in conjuntion with VkCmd objects
that have registered themselves by name with the VkCmdRegistry. In
this case, the name given to a VkCmdFactory instance specifies the
name of the object to be created. Alternately, A VkCmdFactory object
can be given a function to call to create a VkCmd object when one is
needed.
This class supports the following callbacks:
activateStateChangedCallback
cmdExecutedCallback
Page 1
VkCmdFactory(3x) VkCmdFactory(3x)
SAMPLE CODE
/usr/share/src/ViewKit/Commands/ByName/
/usr/share/src/ViewKit/Commands/Factories/
/usr/share/src/ViewKit/Commands/Factory2/
VkCmd, VkCmdManager, VkCmdRegistry
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
PPPPaaaaggggeeee 2222 [ Back ]
|