VkMenuActionObject(3x) VkMenuActionObject(3x)
VkMenuActionObject - Support for menu commands represented as objects
VkMenuAction : VkMenuItem : VkComponent : VkCallbackObject
#include <Vk/VkMenuItem.h>
PUBLIC PROTOCOL SUMMARY
Constructor/Destructor
VkMenuActionObject(const char *name,
XtPointer clientData = NULL);
~VkMenuActionObject();
Access Functions [Toc] [Back]
virtual const char* className();
virtual VkMenuItemType menuType();
This class supports applications that wish to model menu commands as
objects. To use this abstract class, the application must derive a new
class and override the doit() and undoit() member functions. Instances of
the derived can be added to a menu using the add() method supported by
all VkMenu subclasses.
Deriving Subclasses [Toc] [Back]
All derived classes must define the pure virtual methods doit() and
undoit(). The derived classes should also use any additional class data
members required to maintain state to allow the undoit() function to
reverse the effects of the doit function. See VkMenuUndoManager(3X) for
more info.
FUNCTION DESCRIPTIONS [Toc] [Back] VkMenuActionObject
VkMenuActionObject(const char *name, XtPointer clientData = NULL);
Initialize a VkMenuActionObject. Copies any given clientData
argument to the _clientData data member.
~VkMenuActionObject
~VkMenuActionObject();
Empty function.
Page 1
VkMenuActionObject(3x) VkMenuActionObject(3x)
className
virtual const char* className();
Returns "VkMenuActionObject".
menuType
virtual VkMenuItemType menuType();
Returns VkMenuItem::OBJECT.
INHERITED MEMBER FUNCTIONS [Toc] [Back] Inherited from VkMenuAction
undo(), hasUndo(), _undoCallback, _func, _data
Inherited from VkMenuItem [Toc] [Back]
show(), hide(), manageAll(), setLabel(), setPosition(), activate(),
deactivate(), remove(), show(), isContainer(), _position, _isBuilt,
_sensitive, _parentMenu, _label, _isHidden, _unmanagedWidgets,
_numUnmanagedWidgets
Inherited from VkComponent [Toc] [Back]
installDestroyHandler(), removeDestroyHandler(), widgetDestroyed(),
setDefaultResources(), getResources(), manage(), unmanage(),
baseWidget(), okToQuit(), _name, _baseWidget, _w, deleteCallback
Inherited from VkCallbackObject [Toc] [Back]
callCallbacks(), addCallback(), removeCallback(),
removeAllCallbacks()
VkMenuAction, VkMenuItem, VkComponent, VkMenuActionObject, VkAction
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 ]
|