pub struct Config { /* private fields */ }
Expand description
Pel configuration.
Implementations§
Source§impl Config
impl Config
Sourcepub fn vsync(self, vsync: bool) -> Self
pub fn vsync(self, vsync: bool) -> Self
Request pel window to have vsync enabled.
By default, vsync is enabled.
Sourcepub fn srgb(self, srgb: bool) -> Self
pub fn srgb(self, srgb: bool) -> Self
Request pel window to have sRGB enabled.
By default, sRGB is enabled.
Sourcepub fn window_size(self, width: u32, height: u32) -> Self
pub fn window_size(self, width: u32, height: u32) -> Self
Requests pel window client area to be of specific size in logical pixels.
By default, platform defaults are used.
Sourcepub fn min_window_size(self, width: u32, height: u32) -> Self
pub fn min_window_size(self, width: u32, height: u32) -> Self
Requests minimum pel window client area to be no less than specified in logical pixels.
By default, platform defaults are used.
Sourcepub fn max_window_size(self, width: u32, height: u32) -> Self
pub fn max_window_size(self, width: u32, height: u32) -> Self
Requests maximum pel window client area to be no more than specified in logical pixels.
By default, platform defaults are used.
Sourcepub fn resizable(self, resizable: bool) -> Self
pub fn resizable(self, resizable: bool) -> Self
Requests pel window to be resizable.
By default, window is resizable.
Sourcepub fn maximized(self, maximized: bool) -> Self
pub fn maximized(self, maximized: bool) -> Self
Requests pel window to appear maximized when created.
By default, window isn’t maximized.
Sourcepub fn decorations(self, decorations: bool) -> Self
pub fn decorations(self, decorations: bool) -> Self
Requests pel window to have border.
By default, window does have a border.
Sourcepub fn icon<S: Into<Surface>>(self, icon: S) -> Self
pub fn icon<S: Into<Surface>>(self, icon: S) -> Self
Requests pel window to use given icon.
By default, window has no icon.
Sourcepub fn title<T: Into<String>>(self, title: T) -> Self
pub fn title<T: Into<String>>(self, title: T) -> Self
Requests pel window to have a specific title.
By default, window title is "pel window"
.
Sourcepub fn fullscreen(self, fullscreen: bool) -> Self
pub fn fullscreen(self, fullscreen: bool) -> Self
Requests pel window to be created in fullscreen mode.
By default, window is not in fullscreen mode.
Sourcepub fn always_on_top(self, always_on_top: bool) -> Self
pub fn always_on_top(self, always_on_top: bool) -> Self
Requests pel window to be in always on top mode.
By default, window isn’t in always on top mode.
Sourcepub fn texture_size(self, width: usize, height: usize) -> Self
pub fn texture_size(self, width: usize, height: usize) -> Self
Requests window pel texture to be of specific size in logical pixels.
This is the “resolution” of your application, in which you will be working in, and it is independent of physical window size.
By default, texture size is None
and it must be set manually or builder will panic.