ferroui_base/media/baseline_pixel_alignment.rs
1/// Specifies the baseline pixel alignment options for rendering text or graphics.
2///
3/// Use this enumeration to control whether the baseline of rendered content is
4/// aligned to the pixel grid, which can affect visual crispness and
5/// positioning. The value may influence rendering quality, especially at small
6/// font sizes or when precise alignment is required.
7#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Hash)]
8#[repr(u8)]
9pub enum BaselinePixelAlignment {
10 /// The baseline pixel alignment is unspecified.
11 #[default]
12 Unspecified,
13 /// The baseline is aligned to the pixel grid.
14 Aligned,
15 /// The baseline is not aligned to the pixel grid.
16 Unaligned,
17}