Skip to main content

ferroui_controls/primitives/
snap_points_alignment.rs

1/// Specify options for snap point alignment relative to an edge. Which edge
2/// depends on the orientation of the object where the alignment is applied.
3#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
4#[repr(i32)]
5pub enum SnapPointsAlignment {
6    /// Use snap points grouped closer to the orientation edge.
7    Near = 0,
8    /// Use snap points that are centered in the orientation.
9    Center = 1,
10    /// Use snap points grouped farther from the orientation edge.
11    Far = 2,
12}