cairo_content_t

cairo_content_t is used to describe the content that a surface will contain, whether color information, alpha information (translucence vs. opacity), or both.

Note: The large values here are designed to keep cairo_content_t values distinct from cairo_format_t values so that the implementation can detect the error if users confuse the two types.

Values

ValueMeaning
CAIRO_CONTENT_COLOR0x1000

The surface will hold color content only.

CAIRO_CONTENT_ALPHA0x2000

The surface will hold alpha content only.

CAIRO_CONTENT_COLOR_ALPHA0x3000

The surface will hold color and alpha content.

Meta