Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ Canvas(3I) — Lucid Energize 2.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

Interactor(3I)

Painter(3I)

Canvas(3I)  —  InterViews Reference Manual

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.

boolean 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(3I), Painter(3I)

InterViews  —  Last change: 15 June 1987

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026