mln_engine/camera/mode.rs
1/// We can choose to constrain the map both horizontally or vertically, only
2/// vertically e.g. while panning, or screen to the specified bounds.
3#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Hash)]
4#[repr(u32)]
5pub enum ConstrainMode {
6 None,
7 #[default]
8 HeightOnly,
9 WidthAndHeight,
10 Screen,
11}