Move web app contents to own window

This commit is contained in:
Emil Ernerfeldt
2020-07-19 01:09:37 +02:00
parent 57ae03f52d
commit cb6b3bb58f
4 changed files with 44 additions and 27 deletions
+10
View File
@@ -77,6 +77,16 @@ impl<'open> Window<'open> {
self
}
pub fn default_width(mut self, default_width: f32) -> Self {
self.resize = self.resize.default_width(default_width);
self
}
pub fn default_height(mut self, default_height: f32) -> Self {
self.resize = self.resize.default_height(default_height);
self
}
pub fn default_rect(self, rect: Rect) -> Self {
self.default_pos(rect.min).default_size(rect.size())
}