Package org.gnome.gsk
Enum Class PathForeachFlags
- All Implemented Interfaces:
Serializable,Comparable<PathForeachFlags>,Constable,Enumeration
@Generated("io.github.jwharm.JavaGI")
public enum PathForeachFlags
extends Enum<PathForeachFlags>
implements Enumeration
Flags that can be passed to gsk_path_foreach() to influence what
kinds of operations the path is decomposed into.
By default, Path.foreach(java.util.Set<org.gnome.gsk.PathForeachFlags>, org.gnome.gsk.PathForeachFunc) will only emit a path with all
operations flattened to straight lines to allow for maximum compatibility.
The only operations emitted will be GSK_PATH_MOVE, GSK_PATH_LINE and
GSK_PATH_CLOSE.
- Since:
- 4.14
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAllow emission ofGSK_PATH_CONICoperations.Allow emission ofGSK_PATH_CUBICoperations.The default behavior, only allow lines.Allow emission ofGSK_PATH_QUADoperations -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable TypegetType()Get the GType of the PathForeachFlags classintgetValue()Get the numeric value of this enumstatic Set<PathForeachFlags> of(int flags) Create a newEnumSet<PathForeachFlags>for the provided bitfieldstatic Set<PathForeachFlags> of(MemorySegment address) Create a newEnumSet<PathForeachFlags>for the bitfield in the provided memory address.static PathForeachFlagsReturns the enum constant of this class with the specified name.static PathForeachFlags[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ONLY_LINES
The default behavior, only allow lines. -
QUAD
Allow emission ofGSK_PATH_QUADoperations -
CUBIC
Allow emission ofGSK_PATH_CUBICoperations. -
CONIC
Allow emission ofGSK_PATH_CONICoperations.
-
-
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<PathForeachFlags>for the provided bitfield- Parameters:
flags- the PathForeachFlags bitfield- Returns:
- the EnumSet for the provided bitfield
-
of
Create a newEnumSet<PathForeachFlags>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
Get the GType of the PathForeachFlags class- Returns:
- the GType
-