enum Cairo::Content

Overview

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.

Defined in:

cairo/content.cr

Enum Members

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 Method Summary

Instance Method Detail

def alpha? #

[View source]
def color? #

[View source]
def color_alpha? #

[View source]