Package org.gnome.adw
Enum Class AccentColor
- All Implemented Interfaces:
Serializable,Comparable<AccentColor>,Constable,Enumeration
@Generated("io.github.jwharm.JavaGI")
public enum AccentColor
extends Enum<AccentColor>
implements Enumeration
Describes the available system accent colors.
- Since:
- 1.6
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUse a blue color (#3584e4).Use a green color (#3a944a).Use a orange color (#ed5b00).Use a pink color (#d56199).Use a purple color (#9141ac).Use a red color (#e62d42).Use a slate color (#6f8396).Use a teal color (#2190a4).Use a yellow color (#c88800). -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable TypegetType()Get the GType of the AccentColor classintgetValue()Get the numeric value of this enumstatic AccentColorof(int value) Create a new AccentColor for the provided valuestatic AccentColorof(MemorySegment address) Create a new AccentColor for the value in the provided memory address.voidConverts this AccentColor to aGdkRGBArepresenting its background color.voidtoStandaloneRgba(boolean dark, RGBA rgba) Converts this AccentColor to aGdkRGBArepresenting its standalone color.static AccentColorReturns the enum constant of this class with the specified name.static AccentColor[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BLUE
Use a blue color (#3584e4). This is the default value. -
TEAL
Use a teal color (#2190a4). -
GREEN
Use a green color (#3a944a). -
YELLOW
Use a yellow color (#c88800). -
ORANGE
Use a orange color (#ed5b00). -
RED
Use a red color (#e62d42). -
PINK
Use a pink color (#d56199). -
PURPLE
Use a purple color (#9141ac). -
SLATE
Use a slate color (#6f8396).
-
-
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 AccentColor 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:
getValuein interfaceEnumeration- Returns:
- the enum value
-
of
Create a new AccentColor for the value in the provided memory address.- Parameters:
address- the memory address holding a enum value- Returns:
- the enum for the value in the provided memory address
-
getType
-
toRgba
Converts this AccentColor to aGdkRGBArepresenting its background color.The matching foreground color is white.
- Parameters:
rgba- return location for the color- Since:
- 1.6
-
toStandaloneRgba
Converts this AccentColor to aGdkRGBArepresenting its standalone color.It will typically be darker for light background, and lighter for dark background, ensuring contrast.
- Parameters:
dark- Whether to calculate standalone color for light or dark backgroundrgba- return location for the color- Since:
- 1.6
-