Shape tools

This commit is contained in:
Skyler Lehmkuhl
2026-03-07 07:27:45 -05:00
parent 354b96f142
commit a628d8af37
9 changed files with 660 additions and 414 deletions
@@ -12,6 +12,7 @@ pub struct RasterFillAction {
buffer_after: Vec<u8>,
width: u32,
height: u32,
name: String,
}
impl RasterFillAction {
@@ -23,7 +24,12 @@ impl RasterFillAction {
width: u32,
height: u32,
) -> Self {
Self { layer_id, time, buffer_before, buffer_after, width, height }
Self { layer_id, time, buffer_before, buffer_after, width, height, name: "Flood fill".to_string() }
}
pub fn with_description(mut self, name: &str) -> Self {
self.name = name.to_string();
self
}
}
@@ -53,6 +59,6 @@ impl Action for RasterFillAction {
}
fn description(&self) -> String {
"Flood fill".to_string()
self.name.clone()
}
}