Package: cairo

CEnum cairo-device-type-t

Details

The cairo-device-type-t enumeration is used to describe the type of a given device. The devices types are also known as "backends" within Cairo.

The device type can be queried with the function cairo-device-get-type.

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. These functions have names that begin with cairo-type-device such as cairo-xcb-device-debug-cap-xrender-version.

The behavior of calling a type-specific function with a device of the wrong type is undefined.

New entries may be added in future versions.
(defcenum cairo-device-type-t
  :drm
  :gl
  :script
  :xcb
  :xlib
  :xml
  :cogl
  :win32
  (:invalid -1))  
: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.
 

See also

2020-12-16