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

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

Contents


VkScroll(3x)							  VkScroll(3x)


NAME    [Toc]    [Back]

     VkScroll -	Automatic scrolled window using	the annotated scrollbar

INHERITS FROM    [Toc]    [Back]

     VkComponent : VkCallbackObject :

HEADER FILE    [Toc]    [Back]

     #include <Vk/VkScroll.h>

PUBLIC PROTOCOL	SUMMARY
   Constructor/Destructor
	   VkScroll(const char*	name, Widget parent);
	   virtual void	~VkScroll(void);


   Configuration    [Toc]    [Back]
	   void	setChild(Widget	child);
	   void	recomputeScrollBar(void);
	   void	setAnnotations(void);


   Display Functions    [Toc]    [Back]
	   int getScrollPos(void);
	   void	setScrollPos(int pos);
	   void	reannotateScrollBar(void);


   Access Functions    [Toc]    [Back]
	   Widget getClip(void);
	   Widget getFrame(void);
	   Widget getScrollBar(void);



CLASS DESCRIPTION    [Toc]    [Back]

     The VkScroll component provides something very similar to a Motif
     XmScrolledWindow with XmNscrollingPolicy set to XmAUTOMATIC.  The
     difference	is that	the VkScroll object is a component rather than a
     widget, and that it supports the annotated	scrollbar widget.


FUNCTION DESCRIPTIONS    [Toc]    [Back]

   VkScroll()
	   VkScroll(const char*	name, Widget parent);
	   virtual void	~VkScroll(void);


	  The VkScroll constructor creates a component that simulates an
	  automatically-scrolled Motif scrolled	window,	but uses an annotated
	  scrollbar.  Note that	you need to call the setAnnotations() method



									Page 1






VkScroll(3x)							  VkScroll(3x)



	  to turn on annotations in the	scrollbar.  The	first argument is the
	  name of the base widget, the second is the parent of the widget.

   setChild()
	   void	setChild(Widget	child);


	  Tells	VkScroll what the child	of its clip widget is, so that it can
	  track	geometry changes and update the	scrollbar.

   getScrollPos()
	   int getScrollPos(void);


	  Returns the current scrollbar	position.  This	value is the number of
	  pixels relative to the child size.

   setScrollPos()
	   void	setScrollPos(int pos);


	  Changes the current scrollbar	position.  This	values should be the
	  number of pixels relative to the child size.

   getClip()
	   Widget getClip(void);


	  Returns the clip widget of the VkScroll component.  This should be
	  the parent of	the child widget.

   getFrame()
	   Widget getFrame(void);


	  Returns the frame widget of the VkScroll component.  This is the
	  visible area of the component.

   getScrollBar()
	   Widget getScrollBar(void);


	  Returns the annotated	scrollbar widget.

   recomputeScrollBar()
	   void	recomputeScrollBar(void);


	  Tells	the VkScroll object that the component's geometry has changed,
	  and to force a recalculation of the scrollbar	scale.





									Page 2






VkScroll(3x)							  VkScroll(3x)



   reannotateScrollBar()
	   void	reannotateScrollBar(void);


	  Forces a redraw of the annotated scrollbar pixmap.

   setAnnotations()
	   void	setAnnotations(void);


	  Turns	on annotations in the annotated	scrollbar.

   scrollCallback
	  static const const char* scrollCallback;


	  A callback function for detecting initial exposure of	the scrolled
	  window, resize of the	scrolled window, or a need to reannotate the
	  trough pixmap.  The callData argument	should be cast to a
	  (VkScrollCallback *).

INHERITED MEMBER FUNCTIONS    [Toc]    [Back]

   Inherited from VkComponent
	  installDestroyHandler(),  removeDestroyHandler(),
	  widgetDestroyed(),  afterRealizeHook(), setDefaultResources(),
	  getResources(),  VkComponent(),  VkComponent(),  ~VkComponent(),
	  show(),  hide(),  realize(),	manage(),  unmanage(), name(),
	  baseWidget(),	 okToQuit(),  isComponent(),  *(), _name,
	  _baseWidget,	_w,  deleteCallback,


   Inherited from VkCallbackObject    [Toc]    [Back]
	  callCallbacks(),  VkCallbackObject(),	 ~VkCallbackObject(),
	  addCallback(),  addCallback(), removeCallback(),  removeCallback(),
	  removeAllCallbacks(),	 removeAllCallbacks(),

SEE ALSO    [Toc]    [Back]

      
      
     VkComponent, VkCallbackObject, VkScroll
     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
VkOutlineASB IRIX An outliner that uses the annotated scrollbar
XmScrolledWindowSetAreas IRIX A ScrolledWindow function that adds or changes a window work region and a horizontal or vertical ScrollBar wid
XmScrolledWindowSetAreas HP-UX A ScrolledWindow function that adds or changes a window work region and a horizontal or vertical ScrollBar wid
tmscrollbar IRIX the ScrollBar widget class
XmScrollBar IRIX The ScrollBar widget class
XmScrollBar Tru64 The ScrollBar widget class
XmScrollBar HP-UX The ScrollBar widget class
scrollbar IRIX Create and manipulate scrollbar widgets
XmCreateScrollBar IRIX The ScrollBar widget creation function
XmCreateScrollBar Tru64 The ScrollBar widget creation function
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service