1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Transformation functions and types.

#[cfg(feature = "serde")]
use serde::{Deserialize, Serialize};

/// Enum representing which direction to flip during drawing.
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
pub enum Flipped {
    /// No flip direction.
    None,
    /// Flip in the horizontal (left/right) direction.
    Horizontal,
    /// Flip in the vertical (up/down) direction.
    Vertical,
    /// Flip in both the horizontal and vertical directions.
    Both,
}