pix_engine/
transform.rs

1//! Transformation functions and types.
2
3#[cfg(feature = "serde")]
4use serde::{Deserialize, Serialize};
5
6/// Enum representing which direction to flip during drawing.
7#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
8#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
9pub enum Flipped {
10    /// No flip direction.
11    None,
12    /// Flip in the horizontal (left/right) direction.
13    Horizontal,
14    /// Flip in the vertical (up/down) direction.
15    Vertical,
16    /// Flip in both the horizontal and vertical directions.
17    Both,
18}