summaryrefslogtreecommitdiff
path: root/engine/src/windowing/dpi.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2026-08-11 09:53:25 +0200
committerHampusM <hampus@hampusmat.com>2026-08-11 09:53:25 +0200
commit37496a6db6b73b987b881ddd568d4a609389670c (patch)
tree85c54e5920893d958a751c78fa3dd30f06115c30 /engine/src/windowing/dpi.rs
parentb732fa6378964ab9ca23fd71d7a82f39f6ae0009 (diff)
refactor(engine): move matrix creation fns to appropriate places
Diffstat (limited to 'engine/src/windowing/dpi.rs')
-rw-r--r--engine/src/windowing/dpi.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/engine/src/windowing/dpi.rs b/engine/src/windowing/dpi.rs
index d628709..6cd2806 100644
--- a/engine/src/windowing/dpi.rs
+++ b/engine/src/windowing/dpi.rs
@@ -48,7 +48,7 @@ macro_rules! gen_enum_from_to_impls {
};
}
-#[derive(Debug, Default, Clone, PartialEq, Reflection)]
+#[derive(Debug, Default, Clone, Copy, PartialEq, Reflection)]
#[reflection(impl_with_generics(<u32>, <i32>, <f32>, <f64>))]
pub struct PhysicalPosition<Pixel>
{
@@ -90,7 +90,7 @@ impl<Pixel> PhysicalPosition<Pixel>
gen_struct_from_to_impls!(PhysicalPosition, fields = (x, y));
-#[derive(Debug, Default, Clone, PartialEq, Reflection)]
+#[derive(Debug, Default, Clone, Copy, PartialEq, Reflection)]
#[reflection(impl_with_generics(<f64>))]
pub struct LogicalPosition<Pixel>
{
@@ -115,7 +115,7 @@ impl<Pixel> LogicalPosition<Pixel>
gen_struct_from_to_impls!(LogicalPosition, fields = (x, y));
-#[derive(Debug, Clone, PartialEq, Reflection)]
+#[derive(Debug, Clone, Copy, PartialEq, Reflection)]
pub enum Position
{
Physical(PhysicalPosition<i32>),
@@ -124,7 +124,7 @@ pub enum Position
gen_enum_from_to_impls!(Position, variants = (Physical, Logical));
-#[derive(Debug, Default, Clone, PartialEq, Reflection)]
+#[derive(Debug, Default, Clone, Copy, PartialEq, Reflection)]
#[reflection(impl_with_generics(<u32>))]
pub struct PhysicalSize<Pixel>
{
@@ -166,7 +166,7 @@ impl<Pixel> PhysicalSize<Pixel>
gen_struct_from_to_impls!(PhysicalSize, fields = (width, height));
-#[derive(Debug, Default, Clone, PartialEq, Reflection)]
+#[derive(Debug, Default, Clone, Copy, PartialEq, Reflection)]
#[reflection(impl_with_generics(<f64>))]
pub struct LogicalSize<Pixel>
{
@@ -191,7 +191,7 @@ impl<Pixel> LogicalSize<Pixel>
gen_struct_from_to_impls!(LogicalSize, fields = (width, height));
-#[derive(Debug, Clone, PartialEq, Reflection)]
+#[derive(Debug, Clone, Copy, PartialEq, Reflection)]
pub enum Size
{
Physical(PhysicalSize<u32>),