Package: cairo
CEnum cairo:surface-type-t
Declaration(cffi:defcenum surface-type-t :image :pdf :ps :xlib :xcb :glitz :quartz :win32 :beos :directfb :svg :os2 :win32-printing :quartz-image :script :qt :recording :vg :gl :drm :tee :xml :skia :subsurface :cogl) Values
Details The cairo:surface-type-t enumeration is used to describe the type
of a given surface.
The surface types are also known as "backends" or "surface backends"
within Cairo. The type of a surface is determined by the function used to
create it, which will generally be of the form cairo:type-surface-create, though see the cairo:surface-create-similar function as well. The surface type can be queried with the cairo:surface-type function. The various cairo:surface-t functions can be used with surfaces of any type, but some backends also provide type-specific functions that must only be called with a surface of the appropriate type. These functions have names that begin with cairo:type-surface such as the cairo:image-surface-width function. The behavior of calling a type-specific function with a surface of the wrong type is undefined. Notes | See also |
2025-1-18