cairo_surface_type_t.Rd
#cairo_surface_type_t is used to describe the type of a given surface. The surface types are also known as "backends" or "surface backends" within cairo.
cairo_surface_type_t
An object of class list
of length 25.
The type of a surface is determined by the function used to create it, which will generally be of the form <function>cairo_<emphasis>type</emphasis>_surface_create(<!-- -->)</function>, (though see cairo_surface_create_similar() as well).
The surface type can be queried with cairo_surface_get_type()
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 <literal>cairo_<emphasis>type</emphasis>_surface</literal> such as cairo_image_surface_get_width().
The behavior of calling a type-specific function with a surface of the wrong type is undefined.
New entries may be added in future versions.
Since: 1.2
The surface is of type image, since 1.2
The surface is of type pdf, since 1.2
The surface is of type ps, since 1.2
The surface is of type xlib, since 1.2
The surface is of type xcb, since 1.2
The surface is of type glitz, since 1.2
The surface is of type quartz, since 1.2
The surface is of type win32, since 1.2
The surface is of type beos, since 1.2
The surface is of type directfb, since 1.2
The surface is of type svg, since 1.2
The surface is of type os2, since 1.4
The surface is a win32 printing surface, since 1.6
The surface is of type quartz_image, since 1.6
The surface is of type script, since 1.10
The surface is of type Qt, since 1.10
The surface is of type recording, since 1.10
The surface is a OpenVG surface, since 1.10
The surface is of type OpenGL, since 1.10
The surface is of type Direct Render Manager, since 1.10
The surface is of type 'tee' (a multiplexing surface), since 1.10
The surface is of type XML (for debugging), since 1.10
The surface is a subsurface created with cairo_surface_create_for_rectangle(), since 1.10
This surface is of type Cogl, since 1.12
Other enum:
cairo_antialias_t
,
cairo_content_t
,
cairo_device_type_t
,
cairo_extend_t
,
cairo_fill_rule_t
,
cairo_filter_t
,
cairo_font_slant_t
,
cairo_font_type_t
,
cairo_font_weight_t
,
cairo_format_t
,
cairo_ft_synthesize_t
,
cairo_hint_metrics_t
,
cairo_hint_style_t
,
cairo_int_status_t
,
cairo_line_cap_t
,
cairo_line_join_t
,
cairo_operator_t
,
cairo_path_data_type_t
,
cairo_pattern_type_t
,
cairo_pdf_metadata_t
,
cairo_pdf_outline_flags_t
,
cairo_pdf_version_t
,
cairo_ps_level_t
,
cairo_region_overlap_t
,
cairo_status_t
,
cairo_subpixel_order_t
,
cairo_surface_observer_mode_t
,
cairo_svg_unit_t
,
cairo_svg_version_t
,
cairo_text_cluster_flags_t
,
enum_find()
,
enum_lookup()