Page 76 Table of Contents Index Page 78
Chapters
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30
A, B, C, D, E





Chapter 10

Drawing Options

This chapter describes the drawing options that are used by CLIM's drawing functions, and
the relationship between drawing options, sheets, and mediums. These drawing options control
various aspects of the drawing process, and can be provided as keyword arguments to all of the
drawing functions.

10.1 Medium Components

Medium objects contain components that correspond to the drawing options; when no value
for a drawing option is explicitly provided to a drawing function, it is taken from the medium.
These values can be directly queried or modified using accessors defined on the sheet or medium.
They can also be temporarily bound within a dynamic context using with-drawing-options,
with-text-style, and related forms.

setf of one of these components while it is temporarily bound (via with-drawing-options, for
instance) takes effect immediately but is undone when the dynamic binding context is exited.

In systems that support multiple processes, the consequences are unspecified if one process reads
or writes a medium component that is temporarily bound by another process.

The following functions read and write components of a medium related to drawing options.
While these functions are defined for mediums, they can also be called on sheets support the
sheet output protocol and on streams that output to such sheets. All classes that support the
medium protocol must implement methods for these generic functions. Often, a sheet class that
supports the output protocol will implement a "trampoline" method that passes the operation
on to sheet-medium of the sheet.

=> medium-foreground medium [Generic Function]
=> medium-background medium [Generic Function]


Page 76 Table of Contents Index Page 78
Chapters
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30
A, B, C, D, E