Package org.gnome.pango
Enum Class Underline
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<Underline>
,Constable
@Generated("io.github.jwharm.JavaGI")
public enum Underline
extends Enum<Underline>
implements Enumeration
The
PangoUnderline
enumeration is used to specify whether text
should be underlined, and if so, the type of underlining.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptiona double underline should be drawnLikePANGOUNDERLINEDOUBLE
, but drawn continuously across multiple runs.an underline indicating an error should be drawn below.LikePANGOUNDERLINEERROR
, but drawn continuously across multiple runs.a single underline should be drawn at a position beneath the ink extents of the text being underlined.no underline should be drawna single underline should be drawnLikePANGOUNDERLINESINGLE
, but drawn continuously across multiple runs. -
Method Summary
Modifier and TypeMethodDescriptionstatic Type
getType()
Get the GType of the Underline classint
getValue()
Get the numeric value of this enumstatic Underline
of
(int value) Create a new Underline for the provided valuestatic Underline
Returns the enum constant of this class with the specified name.static Underline[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
no underline should be drawn -
SINGLE
a single underline should be drawn -
DOUBLE
a double underline should be drawn -
LOW
-
ERROR
an underline indicating an error should be drawn below. The exact style of rendering is up to thePangoRenderer
in use, but typical styles include wavy or dotted lines. This underline is typically used to indicate an error such as a possible mispelling; in some cases a contrasting color may automatically be used. This type of underlining is available since Pango 1.4. -
SINGLE_LINE
LikePANGOUNDERLINESINGLE
, but drawn continuously across multiple runs. This type of underlining is available since Pango 1.46. -
DOUBLE_LINE
LikePANGOUNDERLINEDOUBLE
, but drawn continuously across multiple runs. This type of underlining is available since Pango 1.46. -
ERROR_LINE
LikePANGOUNDERLINEERROR
, but drawn continuously across multiple runs. This type of underlining is available since Pango 1.46.
-
-
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 Underline 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
-