1 CAPI Reference Entries

pinboard-object

Class

Summary

A pinboard object is a class that provides a rectangular area in a pinboard layout with drawing capabilities. A pinboard object behaves just like a simple pane within layouts, meaning that they can be placed into rows, columns and other layouts, and that they size themselves in the same way. The main distinction is that a pinboard object is a much smaller object than a simple pane as it does not need to create a native window for itself.

Superclasses

element

Subclasses

item-pinboard-object
image-pinboard-object
line-pinboard-object
drawn-pinboard-object

Slots

output-pane
The output pane on which the pinboard object is drawn.

activep
Ift, the pinboard object is made active.

Accessors

pinboard-object-output-pane
pinboard-object-activep

Description

Each pinboard object is placed into a pinboard layout (or into a layout itself inside a pinboard layout), and then when the pinboard layout wishes to redisplay a region of itself, it calls the functiondraw-pinboard-object on each of the pinboard objects that are contained in that region (in the order that they are specified as children to the layout).

There are a number of predefined pinboard objects provided by the CAPI. They are as follows:

item-pinboard-object

Draws a title.

line-pinboard-object

Draws a line.

right-angle-line-pinboard-object

Draws a right-angled line.

image-pinboard-object

Draws an image.

titled-image-pinboard-object

Draws an image with a title.

drawn-pinboard-object

Uses a user-defined display function.

The main user of pinboard objects in the CAPI is the graph pane, which usesitem-pinboard-object andline-pinboard-object to display its nodes and edges respectively.

To force a pinboard object to redraw itself, either call the functiongp:invalidate-rectangle on it (in which case the redrawing is done immediately), or callredraw-pinboard-object in which case the redrawing may be cached and displayed at a later date.

Example File

capi/elements/pinboard.lisp

See Also

pinboard-layout
draw-pinboard-object
graph-pane
redraw-pinboard-object
redraw-pinboard-layout


CAPI Reference Manual, Liquid Common Lisp Version 5.0 - 3 OCT 1997

Generated with Harlequin WebMaker