interlinked/gegl/source/operations/enums.rs

133 lines
2.7 KiB
Rust
Raw Normal View History

2024-01-23 17:07:02 +00:00
//! Additional enums for the operations.
use crate::gegl_enum;
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!(
/// 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!(
/// 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!(
/// 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
);
gegl_enum!(
/// The abyss policy for [`MedianBlur`][super::MedianBlur].
MedianBlurAbyssPolicy,
None => "none",
Clamp => "clamp",
);
gegl_enum!(
/// The neighborhood for [`MedianBlur`][super::MedianBlur].
MedianBlurNeighborhood,
Square => "square",
Circle => "circle",
Diamond => "diamond",
);
gegl_enum!(
/// The tile type for [`Mosaic`][super::Mosaic].
MosaicTileType,
Squares => "squares",
Hexagons => "hexagons",
Octagons => "octagons",
Triangles => "triangles",
);
gegl_enum!(
/// The pattern for [`Newsprint`][super::Newsprint].
NewsprintPattern,
Line => "line",
Circle => "circle",
Diamond => "diamond",
Pssquare => "pssquare",
Cross => "cross",
);
gegl_enum!(
/// The color model for [`Newsprint`][super::Newsprint].
NewsprintColorModel,
BlackOnWhite => "black-on-white",
Cmyk => "cmyk",
Rgb => "rgb",
WhiteOnBlack => "white-on-black",
);
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",
);
gegl_enum!(
/// The sampler type for [`StereographicProjection`][super::StereographicProjection].
StereographicProjectionSamplerType,
Nearest => "nearest",
Linear => "linear",
Cubic => "cubic",
Nohalo => "nohalo",
Lohalo => "lohalo",
);
gegl_enum!(
/// The fill for [`Waterpixels`][super::Waterpixels].
WaterpixelsFill,
Average => "average",
Random => "random",
);
gegl_enum!(
/// The sampler type for [`Waves`][super::Waves].
WavesSamplerType,
Nearest => "nearest",
Linear => "linear",
Cubic => "cubic",
Nohalo => "nohalo",
Lohalo => "lohalo",
);