- All Implemented Interfaces:
Serializable
,Comparable<Content>
,Constable
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.
- Since:
- 1.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe surface will hold alpha content only.The surface will hold color content only.The surface will hold color and alpha content. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.gnome.glib.Type
getType()
Get the CairoContent GTypeint
getValue()
Return the value of this enumstatic Content
of
(int value) Returns the enum member for the given value.static Content
Returns the enum constant of this class with the specified name.static Content[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
COLOR
-
ALPHA
-
COLOR_ALPHA
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
public int getValue()Return the value of this enum- Returns:
- the value
-
of
Returns the enum member for the given value.- Parameters:
value
- the value of the enum member- Returns:
- the enum member for the given value
-
getType
public static org.gnome.glib.Type getType()Get the CairoContent GType- Returns:
- the GType
-