InterViews Reference Manual -- Canvas
NAME
Canvas - region for graphics output
SYNOPSIS
#include <InterViews/canvas.h>
DESCRIPTION
A canvas is an area for graphics output associated with an interactor. Most
interactors do not need to perform any operations on a canvas; they simply pass
a canvas as an argument to graphics operations. In this case, it is not
necessary to include ``canvas.h''.
PUBLIC OPERATIONS
Canvas(int width, int height)
Create an offscreen canvas with the given size and height.
void Clip(Coord, Coord, Coord, Coord)
Clip drawing to the canvas to the given rectangle.
void ClipOn()
void ClipOff()
Temporarily turn use of a canvas' clipping rectangle on or off.
int Height()
Return the height of a canvas in pixels.
bool IsClipped()
Return whether output to the canvas is currently clipped.
void NoClip()
Delete the clipping rectangle for with a canvas.
void SetBackground(Color*)
Associate a background color with the canvas.
CanvasStatus Status()
Return the current status of a canvas, which is one of CanvasMapped (assigned
an area on the display), CanvasUnmapped (not assigned an area), and
CanvasOffscreen (assigned an area in offscreen memory).
int Width()
Return the width of a canvas in pixels.
SEE ALSO
Interactor , Painter
Next: ChiefDeputy
| Prev: Button
| Up: index
| Top: index