Enum Class SvgFeatures
- All Implemented Interfaces:
Serializable, Comparable<SvgFeatures>, Constable, Enumeration
@Generated("org.javagi.JavaGI")
public enum SvgFeatures
extends Enum<SvgFeatures>
implements Enumeration
Features of the SVG renderer that can be enabled or disabled.
By default, all features except GTK_SVG_TRADITIONAL_SYMBOLIC
are enabled.
New values may be added in the future.
- Since:
- 4.22
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionWhether to run animations.Whether to allow gpa extensions, such as states and transitionsWhether to load external resources, such as images.Whether to use system resources, such as fonts.This feature is meant for compatibility with old symbolic icons. -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable TypegetType()Get the GType of the SvgFeatures class.intgetValue()Get the numeric value of this enumstatic Set<SvgFeatures> of(int flags) Create a newEnumSet<SvgFeatures>for the provided bitfieldstatic Set<SvgFeatures> of(MemorySegment address) Create a newEnumSet<SvgFeatures>for the bitfield in the provided memory address.static SvgFeaturesReturns the enum constant of this class with the specified name.static SvgFeatures[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ANIMATIONS
Whether to run animations. If disabled, state changes are applied without transitions -
SYSTEM_RESOURCES
Whether to use system resources, such as fonts. If disabled, only embedded fonts are used -
EXTERNAL_RESOURCES
Whether to load external resources, such as images. If disabled, only embedded images are loaded -
EXTENSIONS
Whether to allow gpa extensions, such as states and transitions -
TRADITIONAL_SYMBOLIC
This feature is meant for compatibility with old symbolic icons. If this is enabled, fill and stroke attributes are ignored. The used colors are derived from symbolic style classes if present, and the default fill color is the symbolic foreground color.
-
-
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()Get the numeric value of this enum- Specified by:
getValuein interfaceEnumeration- Returns:
- the enum value
-
of
Create a newEnumSet<SvgFeatures>for the provided bitfield- Parameters:
flags- the SvgFeatures bitfield- Returns:
- the EnumSet for the provided bitfield
-
of
Create a newEnumSet<SvgFeatures>for the bitfield in the provided memory address.- Parameters:
address- the memory address holding a bitfield value- Returns:
- the EnumSet for the bitfield in the provided memory address
-
getType
-