Reposition all outputs on any change

This way the positioning is independent of the order of plugging in.
This commit is contained in:
Ivan Molodetskikh
2024-01-16 08:43:28 +04:00
parent d958a9679c
commit da4967d43c
2 changed files with 127 additions and 66 deletions
+2 -2
View File
@@ -204,7 +204,7 @@ impl Default for Output {
}
}
#[derive(knuffel::Decode, Debug, Clone, PartialEq, Eq)]
#[derive(knuffel::Decode, Debug, Clone, Copy, PartialEq, Eq)]
pub struct Position {
#[knuffel(property)]
pub x: i32,
@@ -212,7 +212,7 @@ pub struct Position {
pub y: i32,
}
#[derive(Debug, Clone, PartialEq)]
#[derive(Debug, Clone, Copy, PartialEq)]
pub struct Mode {
pub width: u16,
pub height: u16,