Struct quicksilver::graphics::WindowBuilder [−][src]
pub struct WindowBuilder { /* fields omitted */ }
A builder that constructs a Window
Methods
impl WindowBuilder
[src]
impl WindowBuilder
pub fn new(title: &'static str, width: u32, height: u32) -> WindowBuilder
[src]
pub fn new(title: &'static str, width: u32, height: u32) -> WindowBuilder
Create a default window builder
pub fn with_show_cursor(self, show_cursor: bool) -> WindowBuilder
[src]
pub fn with_show_cursor(self, show_cursor: bool) -> WindowBuilder
Set if the window should show its cursor (defaults to true)
pub fn with_resize_strategy(self, resize: ResizeStrategy) -> WindowBuilder
[src]
pub fn with_resize_strategy(self, resize: ResizeStrategy) -> WindowBuilder
Set how the window should handle resizing (defaults to ResizeStrategy::Fit
)
pub fn with_minimum_size(self, _min_size: Vector) -> WindowBuilder
[src]
pub fn with_minimum_size(self, _min_size: Vector) -> WindowBuilder
Set the minimum size for the window (no value by default)
On the web, this does nothing.
pub fn with_maximum_size(self, _max_size: Vector) -> WindowBuilder
[src]
pub fn with_maximum_size(self, _max_size: Vector) -> WindowBuilder
Set the maximum size for the window (no value by default)
On the web, this does nothing.
pub fn with_scaling_strategy(self, scale: ImageScaleStrategy) -> WindowBuilder
[src]
pub fn with_scaling_strategy(self, scale: ImageScaleStrategy) -> WindowBuilder
Set the strategy for scaling images
pub fn with_fullscreen(self, fullscreen: bool) -> WindowBuilder
[src]
pub fn with_fullscreen(self, fullscreen: bool) -> WindowBuilder
Set if the window should be in fullscreen mode
On desktop it's borderless fullscreen, and on the web it makes the canvas the size of the browser window
Trait Implementations
impl Debug for WindowBuilder
[src]
impl Debug for WindowBuilder
Auto Trait Implementations
impl Send for WindowBuilder
impl Send for WindowBuilder
impl Sync for WindowBuilder
impl Sync for WindowBuilder