Enum Class SvgFeatures

java.lang.Object
java.lang.Enum<SvgFeatures>
org.gnome.gtk.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
  • Enum Constant Details

    • ANIMATIONS

      public static final SvgFeatures ANIMATIONS
      Whether to run animations. If disabled, state changes are applied without transitions
    • SYSTEM_RESOURCES

      public static final SvgFeatures SYSTEM_RESOURCES
      Whether to use system resources, such as fonts. If disabled, only embedded fonts are used
    • EXTERNAL_RESOURCES

      public static final SvgFeatures EXTERNAL_RESOURCES
      Whether to load external resources, such as images. If disabled, only embedded images are loaded
    • EXTENSIONS

      public static final SvgFeatures EXTENSIONS
      Whether to allow gpa extensions, such as states and transitions
    • TRADITIONAL_SYMBOLIC

      public static final SvgFeatures 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

      public static SvgFeatures[] 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

      public static SvgFeatures valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getValue

      public int getValue()
      Get the numeric value of this enum
      Specified by:
      getValue in interface Enumeration
      Returns:
      the enum value
    • of

      public static Set<SvgFeatures> of(int flags)
      Create a new EnumSet<SvgFeatures> for the provided bitfield
      Parameters:
      flags - the SvgFeatures bitfield
      Returns:
      the EnumSet for the provided bitfield
    • of

      public static Set<SvgFeatures> of(MemorySegment address)
      Create a new EnumSet<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

      public static @Nullable Type getType()
      Get the GType of the SvgFeatures class.
      Returns:
      the GType