All Manuals > CAPI User Guide and Reference Manual > 21 CAPI Reference Entries

draw-pinboard-layout-objects Function

Summary

Draws the pinboard objects which intersect a given rectangle in a pinboard-layout.

Package

capi

Signature

draw-pinboard-layout-objects pinboard-layout graphics-port x y width height => nil

Arguments
pinboard-layout
graphics-port
A graphics port.
x, y, width, height
Non-negative integers.
Description

The function draw-pinboard-layout-objects draws the pinboard objects in pinboard-layout which intersect the rectangle specified by x, y, width and height into the graphics port graphics-port.

graphics-port can be pinboard-layout itself or another graphics port. The drawing is done into the target rectangle, but may also draw outside it.

Notes
  1. draw-pinboard-layout-objects is used by pinboard-layout when it actually needs to display the objects.
  2. draw-pinboard-layout-objects does not do any caching. The display-callback of pinboard-layout does any caching, and may use draw-pinboard-layout-objects to draw into a cache (a pixmap) rather than the screen.
  3. draw-pinboard-layout-objects is useful when you want to have your own display-callback for a pinboard-layout or a subclass. It is possible to use a graphics transformation on graphics-port around the call to draw-pinboard-layout-objects to affect the drawing. For example with-graphics-translation can be used to move the drawing to the origin.
See also

pinboard-layout
pinboard-layout-display
12 Creating Panes with Your Own Drawing and Input


CAPI User Guide and Reference Manual (Macintosh version) - 01 Dec 2021 19:31:27