Package org.gnome.pango
Enum Class AttrType
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<AttrType>
,Constable
@Generated("io.github.jwharm.JavaGI")
public enum AttrType
extends Enum<AttrType>
implements Enumeration
The
PangoAttrType
distinguishes between different types of attributes.
Along with the predefined values, it is possible to allocate additional
values for custom attributes using register(java.lang.String)
. The predefined
values are given below. The type of structure used to store the attribute is
listed in parentheses after the description.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionline height (Pango.AttrInt
).font size in pixels scaled byPANGO_SCALE
(Pango.AttrInt
)whether breaks are allowed (Pango.AttrInt
).background color (Pango.AttrColor
)background alpha (Pango.AttrInt
).baseline displacement (Pango.AttrInt
).whether fallback is enabled (Pango.AttrInt
)font family name list (Pango.AttrString
)font description (Pango.AttrFontDesc
)OpenType font features (Pango.AttrFontFeatures
).font-relative size change (Pango.AttrInt
).foreground color (Pango.AttrColor
)foreground alpha (Pango.AttrInt
).base text gravity (Pango.AttrInt
)gravity hint (Pango.AttrInt
)whether to insert hyphens at intra-word line breaks (Pango.AttrInt
).does not happenlanguage (Pango.AttrLanguage
)letter spacing (PangoAttrInt
)line height factor (Pango.AttrFloat
).whether the text has an overline (Pango.AttrInt
).overline color (Pango.AttrColor
).baseline displacement (Pango.AttrInt
)font size scale factor (Pango.AttrFloat
)override segmentation to classify the range of the attribute as a single sentence (Pango.AttrInt
).shape (Pango.AttrShape
)how to render invisible characters (Pango.AttrInt
).font size in points scaled byPANGO_SCALE
(Pango.AttrInt
)font stretch (Pango.AttrInt
)whether the text is struck-through (Pango.AttrInt
)strikethrough color (Pango.AttrColor
)font slant style (Pango.AttrInt
)whether the text has an underline (Pango.AttrInt
)underline color (Pango.AttrColor
)font variant (normal or small caps) (Pango.AttrInt
)font weight (Pango.AttrInt
)override segmentation to classify the range of the attribute as a single word (Pango.AttrInt
). -
Method Summary
Modifier and TypeMethodDescriptiongetName()
Fetches the attribute type name.static Type
getType()
Get the GType of the AttrType classint
getValue()
Get the numeric value of this enumstatic AttrType
of
(int value) Create a new AttrType for the provided valuestatic AttrType
Allocate a new attribute type ID.static AttrType
Returns the enum constant of this class with the specified name.static AttrType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INVALID
does not happen -
LANGUAGE
language (Pango.AttrLanguage
) -
FAMILY
font family name list (Pango.AttrString
) -
STYLE
font slant style (Pango.AttrInt
) -
WEIGHT
font weight (Pango.AttrInt
) -
VARIANT
font variant (normal or small caps) (Pango.AttrInt
) -
STRETCH
font stretch (Pango.AttrInt
) -
SIZE
font size in points scaled byPANGO_SCALE
(Pango.AttrInt
) -
FONT_DESC
font description (Pango.AttrFontDesc
) -
FOREGROUND
foreground color (Pango.AttrColor
) -
BACKGROUND
background color (Pango.AttrColor
) -
UNDERLINE
whether the text has an underline (Pango.AttrInt
) -
STRIKETHROUGH
whether the text is struck-through (Pango.AttrInt
) -
RISE
baseline displacement (Pango.AttrInt
) -
SHAPE
shape (Pango.AttrShape
) -
SCALE
font size scale factor (Pango.AttrFloat
) -
FALLBACK
whether fallback is enabled (Pango.AttrInt
) -
LETTER_SPACING
letter spacing (PangoAttrInt
) -
UNDERLINE_COLOR
underline color (Pango.AttrColor
) -
STRIKETHROUGH_COLOR
strikethrough color (Pango.AttrColor
) -
ABSOLUTE_SIZE
font size in pixels scaled byPANGO_SCALE
(Pango.AttrInt
) -
GRAVITY
base text gravity (Pango.AttrInt
) -
GRAVITY_HINT
gravity hint (Pango.AttrInt
) -
FONT_FEATURES
OpenType font features (Pango.AttrFontFeatures
). Since 1.38 -
FOREGROUND_ALPHA
foreground alpha (Pango.AttrInt
). Since 1.38 -
BACKGROUND_ALPHA
background alpha (Pango.AttrInt
). Since 1.38 -
ALLOW_BREAKS
whether breaks are allowed (Pango.AttrInt
). Since 1.44 -
SHOW
how to render invisible characters (Pango.AttrInt
). Since 1.44 -
INSERT_HYPHENS
whether to insert hyphens at intra-word line breaks (Pango.AttrInt
). Since 1.44 -
OVERLINE
whether the text has an overline (Pango.AttrInt
). Since 1.46 -
OVERLINE_COLOR
overline color (Pango.AttrColor
). Since 1.46 -
LINE_HEIGHT
line height factor (Pango.AttrFloat
). Since: 1.50 -
ABSOLUTE_LINE_HEIGHT
line height (Pango.AttrInt
). Since: 1.50 -
TEXT_TRANSFORM
-
WORD
override segmentation to classify the range of the attribute as a single word (Pango.AttrInt
). Since 1.50 -
SENTENCE
override segmentation to classify the range of the attribute as a single sentence (Pango.AttrInt
). Since 1.50 -
BASELINE_SHIFT
baseline displacement (Pango.AttrInt
). Since 1.50 -
FONT_SCALE
font-relative size change (Pango.AttrInt
). Since 1.50
-
-
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 AttrType 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
-
register
-
getName
Fetches the attribute type name.The attribute type name is the string passed in when registering the type using
register(java.lang.String)
.The returned value is an interned string (see g_intern_string() for what that means) that should not be modified or freed.
- Returns:
- the type ID name (which
may be
null
), ornull
if this AttrType is a built-in Pango attribute type or invalid.
-