SimpleViewerDoc.tioga
Jules Bloomenthal, September 4, 1986 5:43:42 pm PDT
CEDAR 6.1 — FOR INTERNAL XEROX USE ONLY
SimpleViewer
a program to demonstrate viewer software
Jules Bloomenthal
© Copyright 1985 Xerox Corporation. All rights reserved.
Abstract: This software provides no interface but serves as a sample for viewer programming.
Created and Maintained by: Bloomenthal.pa
Keywords: viewers.
DF File: [User]<Bloomenthal>Top>SimpleViewer.df
XEROX  Xerox Corporation
   Palo Alto Research Center
   3333 Coyote Hill Road
   Palo Alto, California 94304

For Internal Xerox Use Only
Introduction
The source file SimpleViewerImpl.mesa demonstrates a simple but expandable use of the viewers software. Of note are the use of ViewerOps.RegisterViewerClass to create a new class of viewer, the use of a ViewerClasses.NotifyProc to handle mouse input and the use of a ViewerClasses.PaintProc to repaint the viewer.
The Program "SimpleViewer"
SimpleViewer permits the interactive movement of a rectangle in a viewer; this movement is in response to a mouse action within the viewer.