Perspective(3X) manual page
Table of Contents
Perspective - describes the visible portion of an interactor
#include
<ivplus/perspective.h>
perspective describes which part of an interactor’s
total displayable data is visible in the interactor’s canvas. The main use
of perspectives is for scrolling, panning, and zooming interactors. The
member variables <x0, y0> define the origin of the interactor’s display area;
width and height define the total height of the available data. The member
variables <curx, cury> define the lower-left corner portion of the interactor’s
canvas in which the data will be displayed. <curx, cury> is relative to <x0,
y0>. curwidth and curheight define how much of the total area is displayed
in the canvas.
The member variables sx, sy, lx, and ly specify small and
large increments in each dimension. These increments are used by scrollers
and movers to implement line and page scrolling. The large increments are
generally set to the size of one page. A page is usually the amount of data
that can be displayed in the canvas at any particular time. Some interactors,
such as lists and text editors define a page such that it allows an overlap
of one small increment. This is useful when scrolling text.
MList, MEditor
and its derived classes are examples of interactors which maintain a perspective.
Perspective->Resource
Defines a new
perspective with all member variables initialized to zero.
Defines a new perspective with all member variables initialized to the
same values as those in the passed Perspective.
Origin of the viewable data.
Total size of the viewable
data.
Current position of the view, relative to <x0, y0>.
Current size of the view.
Small scrolling
increments.
Large scrolling increments.
Adds to the list of interactors that are interested
in updates to the perspective. Each interactor on the list is considered
a view of the perspective. These interactors reflect the perspective visually.
Examples include scrollbars and sliders.
Removes
an interactor from the list of those interested in updates. This operation
should be called from the interactor’s destructor.
Initializes the perspective’s
display area.
Notifies all the interactors interested in the
perspective that it has changed.The perspective’s interactor should call
Update() after modifying its perspective.
Tests
for equality with the passed Perspective.
Tests
for inequality with passed Perspective.
Copies
the passed Perspective.
The list of interactors
interested in the perspective.
None.
None.
None.
perspective.h
Adjuster(3X)
, Interactor(3X)
, Mover(3X)
, Panner(3X)
, Resource(3X)
,
Scroller(3X)
. ScrollBar(3X)
.
Table of Contents