Package: cairo

CEnum cairo:device-type-t

Declaration

(cffi:defcenum device-type-t
  :drm
  :gl
  :script
  :xcb
  :xlib
  :xml
  :cogl
  :win32
  (:invalid -1))  

Values

:drm
The device is of type Direct Render Manager.
:gl
The device is of type OpenGL.
:script
The device is of type script.
:xcb
The device is of type xcb.
:xlib
The device is of type xlib.
:xml
The device is of type XML.
:cogl
The device is of type cogl.
:win32
The device is of type win32.
:invalid
The device is invalid.

Details

The cairo:device-type-t enumeration is used to describe the type of a given device. The device types are also known as "backends" within Cairo. The device type can be queried with the cairo:device-type function.

The various cairo:device-t functions can be used with devices of any type, but some backends also provide type specific functions that must only be called with a device of the appropriate type. The behavior of calling a type specific function with a device of the wrong type is undefined.

Notes

The only device type implemented in the Lisp API is the :script device type. See the cairo:with-script-surface documentation for an example that uses a script surface.
 

See also

2025-1-18