2024-01-23 17:07:02 +00:00
|
|
|
//! Additional enums for the operations.
|
|
|
|
|
|
|
|
use crate::gegl_enum;
|
|
|
|
|
2024-02-29 12:42:37 +00:00
|
|
|
gegl_enum!(
|
|
|
|
/// The abyss policy for various GEGL operations.
|
|
|
|
AbyssPolicy,
|
|
|
|
Black => "black",
|
|
|
|
Clamp => "clamp",
|
|
|
|
Loop => "loop",
|
|
|
|
None => "none",
|
|
|
|
White => "white",
|
|
|
|
);
|
|
|
|
|
|
|
|
gegl_enum!(
|
|
|
|
/// The detection algorithm for [`Edge`][super::Edge].
|
|
|
|
EdgeAlgorithm,
|
|
|
|
Differential => "differential",
|
|
|
|
Gradient => "gradient",
|
|
|
|
Laplace => "laplace",
|
|
|
|
PrewittCompass => "prewitt",
|
|
|
|
Roberts => "roberts",
|
|
|
|
Sobel => "sobel",
|
|
|
|
);
|
|
|
|
|
2024-01-23 17:07:02 +00:00
|
|
|
gegl_enum!(
|
2024-01-27 17:32:58 +00:00
|
|
|
/// The shape for [`FocusBlur`][super::FocusBlur].
|
2024-01-23 17:07:02 +00:00
|
|
|
FocusBlurShape,
|
2024-01-24 11:50:38 +00:00
|
|
|
Circle => "circle",
|
|
|
|
Square => "square",
|
|
|
|
Diamond => "diamond",
|
|
|
|
Horizontal => "horizontal",
|
|
|
|
Vertical => "vertical",
|
2024-01-23 17:07:02 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
gegl_enum!(
|
2024-01-27 17:32:58 +00:00
|
|
|
/// The type for [`FocusBlur`][super::FocusBlur].
|
2024-01-23 17:07:02 +00:00
|
|
|
FocusBlurType,
|
2024-01-24 11:50:38 +00:00
|
|
|
Gaussian => "gaussian",
|
|
|
|
Lens => "lens",
|
2024-01-23 17:07:02 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
gegl_enum!(
|
2024-01-27 17:32:58 +00:00
|
|
|
/// The algorithm type for [`Maze`][super::Maze].
|
2024-01-23 17:07:02 +00:00
|
|
|
MazeAlgorithmType,
|
2024-01-24 11:50:38 +00:00
|
|
|
DepthFirst => "depth-first",
|
|
|
|
Prim => "prim",
|
2024-01-23 17:07:02 +00:00
|
|
|
);
|
2024-01-24 12:18:09 +00:00
|
|
|
|
|
|
|
gegl_enum!(
|
2024-01-27 17:32:58 +00:00
|
|
|
/// The abyss policy for [`MedianBlur`][super::MedianBlur].
|
2024-01-24 12:18:09 +00:00
|
|
|
MedianBlurAbyssPolicy,
|
|
|
|
None => "none",
|
|
|
|
Clamp => "clamp",
|
|
|
|
);
|
|
|
|
|
|
|
|
gegl_enum!(
|
2024-01-27 17:32:58 +00:00
|
|
|
/// The neighborhood for [`MedianBlur`][super::MedianBlur].
|
2024-01-24 12:18:09 +00:00
|
|
|
MedianBlurNeighborhood,
|
|
|
|
Square => "square",
|
|
|
|
Circle => "circle",
|
|
|
|
Diamond => "diamond",
|
|
|
|
);
|
|
|
|
|
|
|
|
gegl_enum!(
|
2024-01-27 17:32:58 +00:00
|
|
|
/// The tile type for [`Mosaic`][super::Mosaic].
|
2024-01-24 12:18:09 +00:00
|
|
|
MosaicTileType,
|
|
|
|
Squares => "squares",
|
|
|
|
Hexagons => "hexagons",
|
|
|
|
Octagons => "octagons",
|
|
|
|
Triangles => "triangles",
|
|
|
|
);
|
|
|
|
|
|
|
|
gegl_enum!(
|
2024-01-27 17:32:58 +00:00
|
|
|
/// The pattern for [`Newsprint`][super::Newsprint].
|
2024-01-24 12:18:09 +00:00
|
|
|
NewsprintPattern,
|
|
|
|
Line => "line",
|
|
|
|
Circle => "circle",
|
|
|
|
Diamond => "diamond",
|
|
|
|
Pssquare => "pssquare",
|
|
|
|
Cross => "cross",
|
|
|
|
);
|
|
|
|
|
|
|
|
gegl_enum!(
|
2024-01-27 17:32:58 +00:00
|
|
|
/// The color model for [`Newsprint`][super::Newsprint].
|
2024-01-24 12:18:09 +00:00
|
|
|
NewsprintColorModel,
|
|
|
|
BlackOnWhite => "black-on-white",
|
|
|
|
Cmyk => "cmyk",
|
|
|
|
Rgb => "rgb",
|
|
|
|
WhiteOnBlack => "white-on-black",
|
|
|
|
);
|
2024-01-24 14:21:14 +00:00
|
|
|
|
2024-02-29 12:58:33 +00:00
|
|
|
gegl_enum!(
|
|
|
|
/// The spiral swirl direction for [`Spiral`][super::Spiral]
|
|
|
|
SpiralDirection,
|
|
|
|
Clockwise => "cw",
|
|
|
|
CounterClockwise => "ccw",
|
|
|
|
);
|
|
|
|
|
|
|
|
gegl_enum!(
|
|
|
|
/// The spiral type for [`Spiral`][super::Spiral]
|
|
|
|
SpiralType,
|
|
|
|
Linear => "linear",
|
|
|
|
Logarithmic => "logarithmic",
|
|
|
|
);
|
|
|
|
|
2024-01-24 14:21:14 +00:00
|
|
|
gegl_enum!(
|
2024-01-27 17:32:58 +00:00
|
|
|
/// The sampler type for [`StereographicProjection`][super::StereographicProjection].
|
2024-01-24 14:21:14 +00:00
|
|
|
StereographicProjectionSamplerType,
|
|
|
|
Nearest => "nearest",
|
|
|
|
Linear => "linear",
|
|
|
|
Cubic => "cubic",
|
|
|
|
Nohalo => "nohalo",
|
|
|
|
Lohalo => "lohalo",
|
|
|
|
);
|
|
|
|
|
|
|
|
gegl_enum!(
|
2024-01-27 17:32:58 +00:00
|
|
|
/// The fill for [`Waterpixels`][super::Waterpixels].
|
2024-01-24 14:21:14 +00:00
|
|
|
WaterpixelsFill,
|
|
|
|
Average => "average",
|
|
|
|
Random => "random",
|
|
|
|
);
|
|
|
|
|
|
|
|
gegl_enum!(
|
2024-01-27 17:32:58 +00:00
|
|
|
/// The sampler type for [`Waves`][super::Waves].
|
2024-01-24 14:21:14 +00:00
|
|
|
WavesSamplerType,
|
|
|
|
Nearest => "nearest",
|
|
|
|
Linear => "linear",
|
|
|
|
Cubic => "cubic",
|
|
|
|
Nohalo => "nohalo",
|
|
|
|
Lohalo => "lohalo",
|
|
|
|
);
|