To create a graphics context, use create-gcontext.
Specifies if this graphics context should be cached locally by CLX. If nil then the state is not cached, otherwise a local cache is kept.
The drawable whose root and depth are to be associated with this graphics context. This is a required keyword argument.
Initial attribute values for the graphics context.
Creates, initializes, and returns a graphics context
(gcontext). The graphics context can only be used with
destination drawables having the same root and depth as the specified
:drawable. If :cache-p is non-nil, the graphics
context state is cached locally, and changing a component has no
effect unless the new value differs from the cached value. Changes to
a graphics context (
setf and with-gcontext) are always
deferred regardless of the cache mode and sent to the server only when
required by a local operation or by an explicit call to
All of the graphics context components are set to the values that are specified by the keyword arguments, except that a value of nil causes the default value to be used. These default values are as follows:
|dashes||4 (that is, the list ’(4, 4))|
|plane-mask||A bit mask of all ones|
|stipple||Pixmap of unspecified size filled with ones|
|tile||Pixmap of an unspecified size filled with the foreground pixel (that is, the client-specified pixel if any, or else 0)|
Note that foreground and background do not default to any values that are likely to be useful on a color display. Since specifying a nil value means use the default, this implies for clip-mask that an empty rectangle sequence cannot be specified as an empty list; :none must be used instead. Specifying a stringable for font causes an implicit open-font call to occur.