Scroll to navigation

Viewport(3I) InterViews Reference Manual Viewport(3I)

NAME

Viewport - scrollable view

SYNOPSIS

#include <InterViews/viewport.h>

DESCRIPTION

Viewportis a subclass of MonoScene that allocates its componentexactly as much space as it wants (determined from its shape).This space will be clipped to the viewport's size andthe viewport maintains a perspective to adjust the portionof the component that is actually displayed.If the component is smaller than the viewport's canvas,then the viewport background will be filled with a light gray pattern.

PUBLICOPERATIONS

Construct a new viewport.If the interactor is not nil, it is insertedas the viewport's component.The second parameter determines where the componentis placed relative to the viewport.
Set the component interactor.
A viewport does not propagate changes.Thus, if the component's shape changesthe viewport simply resizes the componentaccording to the new shape.
Take out the component interactor.
Change the viewport's perspective to the given one.This operation will cause the desired area of the componentto be drawn.
Short-hand operations for explicit manipulation of the viewport's perspective.
Short-hand for retrieving information about the current perspective.

SEEALSO

Perspective(3I), Scene(3I), Shape(3I)

10 February 1988 InterViews