*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> Vk/VkMenuToggle (3)              
Title
Content
Arch
Section
 

Contents


VkMenuToggle(3x)					      VkMenuToggle(3x)


NAME    [Toc]    [Back]

     VkMenuToggle - Class that support two-state actions in menus

INHERITS FROM    [Toc]    [Back]

     VkMenuAction : VkMenuItem : VkComponent : VkCallbackObject

HEADER FILE    [Toc]    [Back]

     #include <Vk/VkMenuItem.h>

PUBLIC PROTOCOL	SUMMARY
   Constructor/Destructor
	   VkMenuToggle(const char *, XtCallbackProc, XtPointer);
	   VkMenuToggle(const char *, XtCallbackProc,
			XtCallbackProc,	XtPointer);
	   ~VkMenuToggle();


   Manipulating	Menu Items
	   void	setVisualState(Boolean state);
	   void	setStateAndNotify(Boolean);


   Access Functions    [Toc]    [Back]
	   virtual const char* className();
	   virtual VkMenuItemType menuType ();
	   Boolean getState();

CLASS DESCRIPTION    [Toc]    [Back]

     The VkMenuToggle class represents a user-selectable two-state button in a
     menu.  Objects of type VkMenuToggle can be	placed in any VkMenu subclass.
     The VkMenuToggle adds an XmToggleButton gadget into its parent menu pane.
     Like all VkMenuItems, VkMenuToggle	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    [Toc]    [Back]

   VkMenuToggle
	   VkMenuToggle(const char *, XtCallbackProc, XtPointer);
	   VkMenuToggle(const char *, XtCallbackProc,
			XtCallbackProc,	XtPointer);


	  Construct a VkMenuAction object. No widgets are built	in the
	  constructor.






									Page 1






VkMenuToggle(3x)					      VkMenuToggle(3x)



   ~VkMenuToggle
	   ~VkMenuToggle();


	  Clean	up on destruction of a VkMenuToggle object.

   className
	   virtual const char* className();


	  Returns "VkMenuToggle".

   menuType
	   virtual VkMenuItemType menuType ();

     Returns VkMenuItem::TOGGLE

   setVisualState
	   void	setVisualState(Boolean state);


	  If state is TRUE, this function "sets" the toggle button. If FALSE,
	  this function	unsets the button. No callbacks	are invoked.

   setStateAndNotify
	   void	setStateAndNotify(Boolean state);


	  If state is TRUE, this function "sets" the toggle button. If FALSE,
	  this function	unsets the button. Any callbacks associated with this
	  item are called when the state changes.


   getState
	   Boolean getState();


	  Return the current value of the VkMenuToggle item.

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,






									Page 2






VkMenuToggle(3x)					      VkMenuToggle(3x)



   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()

KNOWN CLASSES THAT USE THIS CLASS    [Toc]    [Back]

     VkMenu, VkMenuToggle

SEE ALSO    [Toc]    [Back]

      
      
     VkMenuAction, VkMenuItem, VkComponent, VkMenu
     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 3333
[ Back ]
 Similar pages
Name OS Title
VkMenuAction IRIX Class For all menu actions
VkMenuSeparator IRIX Class For All Menu Actions
VkMenuActionWidget IRIX Class For Widget-based Menu Actions
VkWindow IRIX Base class for all top-level windows with menus
VkMsgWindow IRIX Base class for all top-level messaging windows with menus
VkPeriodic IRIX Support for performing actions at regular periodic intervals
auth_checknologin FreeBSD authentication style support library for login class capabilities database
login_auth FreeBSD authentication style support library for login class capabilities database
auth_cat FreeBSD authentication style support library for login class capabilities database
mbsinit NetBSD determines whether the state object is initial state
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service