We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9b1a3d commit 18afce4Copy full SHA for 18afce4
front/src/sdl2.rs
@@ -55,7 +55,7 @@ pub struct Window<PF> {
55
56
/// Builder for creating `Window`s.
57
pub struct Builder<'title, PF> {
58
- pub dims: (u32, u32),
+ pub dims: Dims,
59
pub title: &'title str,
60
pub vsync: bool,
61
pub hidpi: bool,
@@ -74,8 +74,8 @@ pub struct Framebuf<'a, PF: PixelFmt> {
74
75
impl<'t, PF: PixelFmt> Builder<'t, PF> {
76
/// Sets the width and height of the window, in pixels.
77
- pub fn dims(mut self, w: u32, h: u32) -> Self {
78
- self.dims = (w, h);
+ pub fn dims(mut self, dims: Dims) -> Self {
+ self.dims = dims;
79
self
80
}
81
/// Sets the title of the window.
0 commit comments