VkMenuActionObject(3x)

VkMenuActionObject - Support for menu commands represented as objects

As shipped in IRIX 6.5.30. Unchanged since IRIX 6.5.

NAME
     VkMenuActionObject - Support for menu commands represented as objects

INHERITS FROM
     VkMenuAction : VkMenuItem : VkComponent : VkCallbackObject

HEADER FILE
     #include <Vk/VkMenuItem.h>


PUBLIC PROTOCOL SUMMARY
   Constructor/Destructor
           VkMenuActionObject(const char *name,
                              XtPointer clientData = NULL);
           ~VkMenuActionObject();


   Access Functions
           virtual const char* className();
           virtual VkMenuItemType menuType();


CLASS DESCRIPTION
     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
     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
   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.
   className
           virtual const char* className();


          Returns "VkMenuActionObject".

   menuType
           virtual VkMenuItemType menuType();


          Returns VkMenuItem::OBJECT.

INHERITED MEMBER FUNCTIONS
   Inherited from VkMenuAction
          undo(), hasUndo(), _undoCallback, _func, _data


   Inherited from VkMenuItem
          show(), hide(), manageAll(), 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()


SEE ALSO
     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