changeset 14708 | 19358c313ebb |
parent 14705 | 19122a329774 |
child 14709 | 65c971417780 |
14707:5237b4c44d11 | 14708:19358c313ebb |
---|---|
13 } |
13 } |
14 |
14 |
15 pub fn with_size(size: Size) -> Self { |
15 pub fn with_size(size: Size) -> Self { |
16 Self { |
16 Self { |
17 position: Point::ZERO, |
17 position: Point::ZERO, |
18 zoom: 0.0, |
18 zoom: 1.0, |
19 size, |
19 size, |
20 } |
20 } |
21 } |
21 } |
22 |
22 |
23 pub fn viewport(&self) -> Rect { |
23 pub fn viewport(&self) -> Rect { |