You may return to the Cvo Object Documenation Index from this document. This document contains the following sections describing the Cvo_WindowViewPortPanner object:
Cvo_WindowViewPortPanner
Cvo_Frame
#include
<Cvo/WindowViewPort.h++>
new
Cvo_WindowViewPortPanner ( char *resource_name,
{ Cvo_Object *parent | Display *display },
Cvo_WindowViewPort *viewport )
The Cvo_WindowViewPortPanner object provides a window which can be used to represent the contents of the Cvo_WindowViewPort object viewport, on a smaller scale. The mouse may be used within this smaller window to scroll the contents of viewport.
This object will draw a box within its window, which represents the
currently viewable portion of the viewport object's contents. The
position of this box will be updated as the viewable portion changes.
The window the Cvo_WindowViewPortPanner creates will be empty
otherwise. The member function Panner()
returns a Cvo_Window
object pointer, which may be used to draw something in this object's
window.
Note that you should set the minimum or default size for this object, in order for it to initialize and appear correctly.
This object defines the following member functions in addition to those defined by its parent and ancestor objects.
Cvo_Window *Panner (
)
This function returns the Cvo_Window object which is being displayed as the panner. If you wish to have an image appear in the panner, such as a miniature image of the objects in the Cvo_WindowViewPort, this Cvo_Window object should be used when drawing that image.
Cvo_WindowViewPort *VPort (
)
This function returns the Cvo_WindowViewPort with which this object is associated.
FollowPanner (
)
NoFollowPanner (
)
These functions determine whether or not the Cvo_WindowViewPort object's contents will be moved as the mouse is moved in the panner. By default, the contents will not be moved as the mouse is moved in the panner.
This object is composed of the following Cvo objects. Each object has the shown resource name. This link displays the composition of the parent object.
Cvo_Window
:
*CvoWindowViewPortPanner.WindowViewPortPannerWindow
This object uses the following X resources in addition to those used by its parent and ancestor objects.
followPanner
(class:
FollowPanner
) (default value:
0
)
This resource determines whether or not the Cvo_WindowViewPort object's contents will be moved as the mouse is moved in the panner. By default, the contents will not be moved as the mouse is moved in the panner. If the resource has a non-zero value, the contents will be moved.
lineColor
(class:
Color
) (default value:
Black
)
This resource determines the color which will be used when drawing the box in the Cvo_WindowViewPortPanner object's window.
pannable
(class:
Pannable
) (default value:
True
)
This resource determines whether or not the Cvo_WindowViewPortPanner object should permit panning of the Cvo_Window object being viewed in the Cvo_WindowViewPort object's window. .)pp
*CvoWindowViewPortPanner.BorderWidth:
(new value:
0
)
See the legend for information about the conventions used in this documentation.