enum

Cairo::Content

Inherits Enum / Comparable / Value / Object

Content 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 content values distinct from Format values so that the implementation can detect the error if users confuse the two types.

Constants

Color = 4096

The surface will hold color content only.

Alpha = 8192

The surface will hold alpha content only.

ColorAlpha = 12288

The surface will hold color and alpha content.

Instance methods

alpha?

Returns true if this enum value equals Alpha

Source
color?

Returns true if this enum value equals Color

Source
color_alpha?

Returns true if this enum value equals ColorAlpha

Source