Render text properly while dragging and resizing the text Shape

This commit is contained in:
Elena Torro 2025-03-27 12:46:04 +01:00
parent ebf3730454
commit 33c3611345
4 changed files with 16 additions and 7 deletions

View file

@ -26,14 +26,17 @@ impl TextContent {
self.bounds = Rect::from_xywh(x, y, w, h);
}
#[allow(dead_code)]
pub fn width(&self) -> f32 {
self.bounds.width()
}
#[allow(dead_code)]
pub fn x(&self) -> f32 {
self.bounds.x()
}
#[allow(dead_code)]
pub fn y(&self) -> f32 {
self.bounds.y()
}