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

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

Contents


VkColorChooserDialog(3x)			      VkColorChooserDialog(3x)


NAME    [Toc]    [Back]

     VkColorChooserDialog - A dialog manager for color chooser dialogs

INHERITS FROM    [Toc]    [Back]

     VkDialogManager : VkComponent : VkCallbackObject

HEADER FILE    [Toc]    [Back]

     #include <Vk/VkColorChooserDialog.h>


PUBLIC PROTOCOL	SUMMARY
   Constructor/Destructor
	   VkColorChooserDialog(const char*);
	   virtual ~VkColorChooserDialog(void);



   Manipulating	the Colors
	   XColor* getXColor(void);
	   void	setXColor(unsigned short,
			  unsigned short, unsigned short);
	   void	setCurrentXColor(unsigned short,
				 unsigned short, unsigned short);
	   void	setStoredXColor(unsigned short,
				unsigned short,	unsigned short);


     The following functions do	not follow the X model.	 They accept and
     return rgb	values in the lower eight bits.	 In particular,	getColor(void)
     returns a shifted XColor structure.

	   XColor* getColor(void);
	   void	setColor(short,short,short);
	   void	setCurrentColor(short,short,short);
	   void	setStoredColor(short,short,short);


CLASS DESCRIPTION    [Toc]    [Back]

     This class	displays an SGI	color chooser dialog, using the	caching
     facilities	of VkDialogManager class.  Applications	typically use the
     globally available	dialog theColorChooserDialog to	post their errors.

FUNCTION DESCRIPTIONS    [Toc]    [Back]

   VkColorChooserDialog()
	  VkColorChooserDialog(const char*);






									Page 1






VkColorChooserDialog(3x)			      VkColorChooserDialog(3x)



	  Initialize a VkColorChooserDialog.  VkColorChooserDialog is not
	  normally instantiated	by applications.  Use the globallyinstantiated
 theColorChooserDialog instead.

   ~VkColorChooserDialog()
	  virtual ~VkColorChooserDialog(void);


	  Free memory used by the VkColorChooserDialog class.  The global
	  instance should not be deleted.

   getColor()
	  XColor* getColor(void);


	  Returns a pointer to the current color.  Note	that the return	value
	  is not truly an XColor, because the color values are from 0-255.

   getXColor()
	  XColor* getXColor(void);


	  Returns a pointer to the current color.

   setColor()
	  void setColor(short,short,short);


	  Sets both the	current	and stored colors.  This function requires
	  colors whose value is	0-255.

   setXColor()
	  void setXColor(unsigned short, unsigned short,
			 unsigned short);


	  Sets both the	current	and stored colors.  This function requires
	  standard XColor colors.

   setCurrentColor()
	  void setCurrentColor(short,short,short);


	  Sets just the	current	color.	This function requires colors whose
	  value	is 0-255.

   setCurrentXColor()
	  void setCurrentXColor(unsigned short,	unsigned short,
				unsigned short);






									Page 2






VkColorChooserDialog(3x)			      VkColorChooserDialog(3x)



	  Sets just the	current	color.	This function requires standard	XColor
	  colors.

   setStoredColor()
	  void setStoredColor(short,short,short);


	  Sets just the	stored color.  This function requires colors whose
	  value	is 0-255.

   setStoredXColor()
	  void setStoredXColor(unsigned	short, unsigned	short,
			       unsigned	short);


	  Sets just the	stored color.  This function requires standard XColor
	  colors.

DATA MEMBER DESCRIPTIONS    [Toc]    [Back]

   const const char* valueChangedCallback;
	  static const const char* valueChangedCallback;


	  The name of the value	changed	callback.

INHERITED MEMBER FUNCTIONS    [Toc]    [Back]

   Inherited from VkDialogManager
	  _action, _allowMultipleDialogs, _minimizeMultipleDialogs,
	  _showApply, _showCancel, _showOK, prepostCallback,

	  centerOnScreen(), hide(), lastPosted(), post(), postAndWait(),
	  postBlocked(), postModal(), prepost(), setButtonLabels(),
	  setTitle(), setUpWindowManagerProperties(), show(), unpost(),
	  unpostAll(), waitForDialog()


   Inherited from VkComponent    [Toc]    [Back]
	  _baseWidget, _extension, _name, _w, deleteCallback,
	  afterRealizeHook(), attributeList(), baseWidget(), getAttribute(),
	  getResources(), installDestroyHandler(), isComponent(),
	  loadObject(),	manage(), name(), okToQuit(), realize(),
	  removeDestroyHandler(), setAttribute(), setDefaultResources(),
	  unmanage(), widgetDestroyed(), Widget()


   Inherited from VkCallbackObject    [Toc]    [Back]
	  addCallback(), callCallbacks(), cloneCallback(), cloneCallbacks(),
	  getMethodArgType(), getMethods(), hasCallbacks(), invokeMethod(),
	  loadObject(),	registerLoadedObject(),	removeAllCallbacks()
	  removeCallback(),



									Page 3






VkColorChooserDialog(3x)			      VkColorChooserDialog(3x)



VIEWKIT	2.1 CHANGES
     In	multi-screen enabled applications or components, references to
     theColorChooserDialog will	only be	valid for the default screen in	the
     application.  The following new function API will return the
     VkColorChooserDialog associated with the appropriate screen and should be
     used instead of theColorChooserDialog;


	   VkColorChooserDialog	*getAppColorChooserDialog(VkComponent *comp);


CLASSES	USED BY	THIS CLASS
     VkDialogManager

SEE ALSO    [Toc]    [Back]

      
      
     VkCallbackObject, VkComponent, VkDialogManager


									PPPPaaaaggggeeee 4444
[ Back ]
 Similar pages
Name OS Title
VkInfoDialog IRIX A dialog manager for information dialogs
VkErrorDialog IRIX A dialog manager for error dialogs
VkPromptDialog IRIX A dialog manager for prompt dialogs
VkWarningDialog IRIX Dialog manager class for warning dialogs
VkFileSelectionDialog IRIX Dialog manager for file selection dialogs
VkQuestionDialog IRIX Dialog Manager class for question dialogs
VkProgressDialog IRIX A dialog manager supporting interruptible dialogs with a progress indicator
xdm Tru64 X Display Manager with support for XDMCP, host chooser
xdm IRIX X Display Manager with support for XDMCP, host chooser
VkFatalErrorDialog IRIX Simple manager for fatal error dialogs
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service