VkMenuAction(3x)
VkMenuAction - Class For all menu actions
As shipped in IRIX 6.5.22. Unchanged since IRIX 6.5.
NAME VkMenuAction - Class For all menu actions INHERITS FROM VkMenuItem : VkComponent : VkCallbackObject HEADER FILE #include <Vk/VkMenuItem.h> PUBLIC PROTOCOL SUMMARY Constructor/Destructor VkMenuAction(const char *name, XtCallbackProc callback = NULL, XtPointer clientData = NULL); VkMenuAction(const char *name, XtCallbackProc callback, XtCallbackProc undoCallback, XtPointer clientData = NULL); ~VkMenuAction(); Manipulating Menu Items virtual void undo(); Access Functions virtual const char* className(); virtual VkMenuItemType menuType(); Boolean hasUndo() CLASS DESCRIPTION The VkMenuAction class represents a user-selectable command in a menu. Objects of type VkMenuAction can be placed in any VkMenu subclass. The VkMenuAction adds an XmPushButton widget into its parent menu pane. Like all VkMenuItems, VkMenuAction objects can be activated, deactivated, replaced, and so on. If an action has an undo callback, the object automatically registers itself with an instance of the VkUndoManager class when the action is executed. An undo callback can be specified when the object is instantiated. FUNCTION DESCRIPTIONS VkMenuAction VkMenuAction(const char *name, XtCallbackProc callback = NULL, XtPointer clientData = NULL); VkMenuAction(const char *name, XtCallbackProc callback, XtCallbackProc undoCallback, XtPointer clientData = NULL); ~VkMenuAction ~VkMenuAction(); Construct a VkMenuAction object. No widgets are built in the constructor. undo virtual void undo(); Undo the action associated with this menu item. This function is normally called by an instance of VkUndoManager. It invokes any undo callback specified for this item. className virtual const char* className(); The class name of this class is "VkMenuAction". menuType virtual VkMenuItemType menuType(); Returns an enumeration that identifies the type of this menu object. The type of VkMenuAction is ACTION. hasUndo() Boolean hasUndo() EXAMPLES See VkMenu. INHERITED MEMBER FUNCTIONS Inherited from VkMenuItem show(), hide(), manageAll(), ~VkMenuItem(), setLabel(), setPosition(), activate(), deactivate(), remove(), show(), isContainer(), _position, _isBuilt, _sensitive, _parentMenu, _label, _isHidden, _unmanagedWidgets, _numUnmanagedWidgets, Inherited from VkComponent installDestroyHandler(), removeDestroyHandler(), widgetDestroyed(), setDefaultResources(), getResources(), manage(), unmanage(), baseWidget(), okToQuit(), _name, _baseWidget, _w, deleteCallback Inherited from VkCallbackObject callCallbacks(), addCallback(), removeCallback(), removeAllCallbacks() KNOWN DERIVED CLASSES VkMenuConfirmFirstAction, VkMenuActionObject, VkMenuActionWidget, VkMenuToggle, VkMenuUndoManager KNOWN CLASSES THAT USE THIS CLASS VkMenu, VkMenuUndoManager SEE ALSO VkMenuItem, VkComponent, VkMenu, VkMenuAction, VkMenuUndoManager 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