[Go to CFHT Home Page] Man Pages
Back to Software Index  BORDER=0Manpage Top Level
    VScroller(3X) manual page Table of Contents

Name

VScroller - scroll an interactor vertically

Remarks:

VScroller is used in VScrollBar and may not be useful otherwise.

Synopsis

#include <ivplus/scroller.h>

Description

VScroller is an interactor that manipulates the perspective of another interactor. This interactor is referred to as the associated interactor. The vscroller is composed of a bar whose position and size reflect the current origin and size in the interactor’s perspective, and a trough in which the bar appears to slide. Clicking and dragging in the vscroller modifies the associated interactor’s perspective. See Scroller(3X) for a description of mouse actions.

Class Hierarchy

VScroller->Scroller->Interactor

Constructors

VScroller(Interactor*, int size)

VScroller(const char* instanceName, Interactor*, int size)

Create a VScroller object of a given width and associate it with the given interactor.

Public Operations

virtual void Handle(Event&);

Handles events to move the vscroller and adjust the perspective of the interactor for which the vscroller is associated.

virtual void Interpret(const char* action);

Attempts to match the string passed in with the list of possible actions for this interactor. The list is supplied by VScrollBar. See the "DEFAULT KEYBOARD TRANSLATIONS" section in VScrollBar(3X) for a list of the interpreted strings.

virtual void Update()

Redisplay the vscroller to reflect a change in the associated interactor’s perspective.

Protected Operations

void Scroller::Background(IntCoord l, IntCoord b, IntCoord r, IntCoord t);

This operation draws the background or trough of the vscroller with the passed left, bottom, right and top coordinates.

virtual void Scroller::Resize()

Sets the scroller’s perspective to be the same as the associated interactor’s perspective.

X Resources

None.

Examples

No example. It is only a component inside a ScrollBar.See HScrollBar(3X) and VScrollBar(3X) for examples.

Files


scroller.h

See Also

HScroller(3X) , Interactor(3X) , Perspective(3X) , Scroller(3X) , VScrollBar(3X) .


Table of Contents