twitter_tool/ui_framework/bounding_box.rs
1#[derive(Debug, Clone, Copy, Default, PartialEq, Eq)]
2pub struct BoundingBox {
3 pub left: u16,
4 pub top: u16,
5 pub width: u16,
6 pub height: u16,
7}
8
9impl BoundingBox {
10 pub fn new(left: u16, top: u16, width: u16, height: u16) -> Self {
11 Self {
12 left,
13 top,
14 width,
15 height,
16 }
17 }
18}