2024-01-23 17:07:02 +00:00
|
|
|
//! Additional enums for the operations.
|
|
|
|
|
|
|
|
use crate::gegl_enum;
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
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",
|
|
|
|
);
|