Enum Class Operator

java.lang.Object
java.lang.Enum<Operator>
org.freedesktop.cairo.Operator
All Implemented Interfaces:
Serializable, Comparable<Operator>, Constable

public enum Operator extends Enum<Operator>
cairo_operator_t is used to set the compositing operator for all cairo drawing operations.

The default operator is CAIRO_OPERATOR_OVER.

The operators marked as unbounded modify their destination even outside of the mask layer (that is, their effect is not bound by the mask layer). However, their effect can still be limited by way of clipping.

To keep things simple, the operator descriptions here document the behavior for when both source and destination are either fully transparent or fully opaque. The actual implementation works for translucent layers too. For a more detailed explanation of the effects of each operator, including the mathematical definitions, see https://cairographics.org/operators/ .