Package org.freedesktop.harfbuzz
Enum Class BufferClusterLevel
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<BufferClusterLevel>
,Constable
@Generated("io.github.jwharm.JavaGI")
public enum BufferClusterLevel
extends Enum<BufferClusterLevel>
implements Enumeration
Data type for holding HarfBuzz's clustering behavior options. The cluster level
dictates one aspect of how HarfBuzz will treat non-base characters
during shaping.
In HBBUFFERCLUSTERLEVELMONOTONEGRAPHEMES
, non-base
characters are merged into the cluster of the base character that precedes them.
In HBBUFFERCLUSTERLEVELMONOTONECHARACTERS
, non-base characters are initially
assigned their own cluster values, which are not merged into preceding base
clusters. This allows HarfBuzz to perform additional operations like reorder
sequences of adjacent marks.
HBBUFFERCLUSTERLEVELMONOTONEGRAPHEMES
is the default, because it maintains
backward compatibility with older versions of HarfBuzz. New client programs that
do not need to maintain such backward compatibility are recommended to use
HBBUFFERCLUSTERLEVELMONOTONECHARACTERS
instead of the default.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionDon't group cluster values.Return cluster values grouped into monotone order.Return cluster values grouped by graphemes into monotone order. -
Field Summary
Modifier and TypeFieldDescriptionstatic final BufferClusterLevel
Default cluster level, equal toHBBUFFERCLUSTERLEVELMONOTONEGRAPHEMES
. -
Method Summary
Modifier and TypeMethodDescriptionstatic Type
getType()
Get the GType of the BufferClusterLevel classint
getValue()
Get the numeric value of this enumstatic BufferClusterLevel
of
(int value) Create a new BufferClusterLevel for the provided valuestatic BufferClusterLevel
Returns the enum constant of this class with the specified name.static BufferClusterLevel[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MONOTONE_GRAPHEMES
Return cluster values grouped by graphemes into monotone order. -
MONOTONE_CHARACTERS
Return cluster values grouped into monotone order. -
CHARACTERS
Don't group cluster values.
-
-
Field Details
-
DEFAULT
Default cluster level, equal toHBBUFFERCLUSTERLEVELMONOTONEGRAPHEMES
.
-
-
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
-
of
Create a new BufferClusterLevel for the provided value- Parameters:
value
- the enum value- Returns:
- the enum for the provided value
-
getValue
public int getValue()Get the numeric value of this enum- Specified by:
getValue
in interfaceEnumeration
- Returns:
- the enum value
-
getType
-