Add crisp feature for enabling default quad snapping

This commit is contained in:
Héctor Ramón Jiménez 2025-05-30 00:30:23 +02:00
parent 12ac265694
commit 567b7d9e9f
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
14 changed files with 184 additions and 138 deletions

View file

@ -41,6 +41,9 @@ pub struct Quad {
/// The shadow blur radius of the [`Quad`].
pub shadow_blur_radius: f32,
/// Whether the [`Quad`] should be snapped to the pixel grid.
pub snap: u32,
}
#[derive(Debug, Clone)]