area draw

This commit is contained in:
2025-08-01 14:46:59 -05:00
parent b227f19a9c
commit af5428a2f3
2 changed files with 7 additions and 2 deletions
+5
View File
@@ -65,6 +65,11 @@ impl RenderScope {
self.transform.height = self.transform.height.max(height);
}
pub fn use_area(&mut self, width: u16, height: u16) {
self.transform.width = self.transform.width.max(width);
self.transform.height = self.transform.height.max(height);
}
pub fn draw(&self) {
let width = self.transform.width;
let height = self.transform.height;