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

Name

HScroller - scroll an interactor horizontally

Remarks:

HScroller is used in HScrollBar and may not be useful otherwise.

Synopsis

#include <ivplus/scroller.h>

Description

HScroller is an interactor that manipulates the perspective of another interactor. This interactor is referred to as the associated interactor. The scroller 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 hscroller modifies the associated interactor’s perspective. See Scroller(3X) for a description of mouse actions.

Class Hierarchy

HScroller->Scroller->Interactor

Constructors

HScroller(Interactor*, int size)

HScroller(const char* instanceName, Interactor*, int height)

Create an HScroller object of a given height and associate it with the given interactor.

Public Operations

virtual void Handle(Event&);

This operation handles the mouse events and calls the private operation Slide() to move the hscroller and adjusts the perspective of the interactor of the associated hscroller.

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 HScrollBar. See the "DEFAULT KEYBOARD TRANSLATIONS" section in HScrollBar(3X) for a list of the interpreted strings.

virtual void Update()

Redisplays the hscroller 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 hscroller 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 for this class. It is a component inside a scrollbar. See HScrollBar(3X) and VScrollBar(3X) for examples.

Files


scroller.h

See Also

HScrollBar(3X) , Interactor(3X) , Perspective(3X) , Scroller(3X) , VScroller(3X) .


Table of Contents