Next: , Previous: , Up: Windows and Pixmaps   [Contents][Index]


5.1 Drawables

Both windows and pixmaps can be used as sources and destinations in graphics operations. These are collectively known as drawables. The following functions apply to both windows and pixmaps.

Function: drawable-display drawable
drawable

A drawable object.

Returns the display for the specified drawable.

Function: drawable-equal drawable-1 drawable-2
drawable-1
drawable-2

drawable objects.

Returns true if the two arguments refer to the same server resource, and nil if they do not.

Function: drawable-id drawable
drawable

A drawable object.

Returns the unique resource ID assigned to the specified drawable.

id

Type resource-id.

Function: drawable-p drawable
boole

Type boolean.

Returns true if the argument is a drawable and nil otherwise.

Function: drawable-plist drawable
plist

A property list.

Returns and (with setf) sets the property list for the specified drawable. This function provides a hook where extensions can add data.