Next Prev Up

5.2 Creating Graphics Contexts

To create a graphics context, use create-gcontext.


create-gcontext &key :arc-mode :background (:cache-p t) :cap-style :clip-mask :clip-ordering :clip-x :clip-y :dash-offset :dashes :drawable :exposures :fill-rule :fill-style :font :foreground :function :join-style :line-style :line-width :plane-mask :stipple :subwindow-mode :tile :ts-x :ts-y Function
     
:cache-p
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.
:drawable
The drawable whose root and depth are to be associated with this graphics context. This is a required keyword argument.
:arc-mode, :background, :cap-style, :clip-mask, :clip-ordering, :clip-x, :clip-y, :dash-offset, :dashes, :exposures, :fill-rule, :fill-style, :font, :foreground, :function, :join-style, :line-style, :line-width, :plane-mask, :stipple, :subwindow-mode, :tile, :ts-x, :ts-y
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 force-gcontext-changes.

gcontext
Type gcontext .

Next Prev Up
© 1988, 1989 Texas Instruments Incorporated
Conversion to HTML made by Gilbert Baumann.
Last build: Tue Dec 16 23:30:42 1997