Enum Class SvgError
- All Implemented Interfaces:
Serializable, Comparable<SvgError>, Constable, Enumeration
Error codes in the
GTK_SVG_ERROR domain for errors
that happen during parsing or rendering of SVG.- Since:
- 4.22
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRendering is not according to expecationsAn animation could not be updatedAn XML element is ignored, but it should not affect rendering (this error code is used for metadata and exension elements)An attribute is invalid (either because it is not part of SVG, or because it is not implemented in GTK, or its value is problematic)An XML element is invalid (either because it is not part of SVG, or because it is in the wrong place, or because it not implemented in GTK)A reference does not point to a suitable elementThe XML syntax is broken in some wayAn implementation limit has been hit, such as the number of loaded shapes.A required attribute is missingThe SVG uses features that are not supported byGtkSvg. -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable StringgetAttribute(GError error) Returns context information about what XML attribute the parsing error occurred in.static @Nullable StringgetElement(GError error) Returns context information about what XML element the parsing error occurred in.static @Nullable SvgLocationReturns context information about the end position in the document where the parsing error occurred.static @Nullable SvgLocationReturns context information about the start position in the document where the parsing error occurred.static @Nullable TypegetType()Get the GType of the SvgError class.intgetValue()Get the numeric value of this enumstatic SvgErrorof(int value) Create a new SvgError for the provided valuestatic SvgErrorof(MemorySegment address) Create a new SvgError for the value in the provided memory address.static Quarkquark()static SvgErrorReturns the enum constant of this class with the specified name.static SvgError[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INVALID_SYNTAX
The XML syntax is broken in some way -
INVALID_ELEMENT
An XML element is invalid (either because it is not part of SVG, or because it is in the wrong place, or because it not implemented in GTK) -
INVALID_ATTRIBUTE
An attribute is invalid (either because it is not part of SVG, or because it is not implemented in GTK, or its value is problematic) -
MISSING_ATTRIBUTE
A required attribute is missing -
INVALID_REFERENCE
A reference does not point to a suitable element -
FAILED_UPDATE
An animation could not be updated -
FAILED_RENDERING
Rendering is not according to expecations -
IGNORED_ELEMENT
An XML element is ignored, but it should not affect rendering (this error code is used for metadata and exension elements) -
LIMITS_EXCEEDED
An implementation limit has been hit, such as the number of loaded shapes. -
NOT_IMPLEMENTED
The SVG uses features that are not supported byGtkSvg. It may be advisable to use a different SVG renderer.
-
-
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 SvgError 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 SvgError 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
-
getAttribute
-
getElement
-
getEnd
Returns context information about the end position in the document where the parsing error occurred.- Parameters:
error- an error in theGtk.SvgErrordomain- Returns:
- the
Gtk.SvgLocation - Since:
- 4.22
-
getStart
Returns context information about the start position in the document where the parsing error occurred.- Parameters:
error- an error in theGtk.SvgErrordomain- Returns:
- the
Gtk.SvgLocation - Since:
- 4.22
-
quark
-