Struct radiant_rs::support::DisplayBuilder
[−]
[src]
#[must_use]pub struct DisplayBuilder { /* fields omitted */ }
A display builder.
Obtained from Display::builder()
.
Examples
let display = Display::builder().dimensions((640, 480)).vsync().title("Window!").build();
Methods
impl DisplayBuilder
[src]
fn width(self, width: u32) -> Self
[src]
Sets a width for the display.
fn height(self, height: u32) -> Self
[src]
Sets a height for the display.
fn dimensions<T>(self, dimensions: T) -> Self where
Point2<u32>: From<T>,
[src]
Point2<u32>: From<T>,
Sets dimensions for the display.
fn title(self, title: &str) -> Self
[src]
Sets a title for the display.
fn transparent(self) -> Self
[src]
Flags the display to be transparent.
fn borderless(self) -> Self
[src]
Flags the display to be borderless.
fn monitor(self, monitor: Monitor) -> Self
[src]
Sets the monitor to create the display on.
fn vsync(self) -> Self
[src]
Flags the display to use vsync.
[src]
Flags the display to be initialially hidden.
fn build(self) -> Display
[src]
Returns the constructed display instance.
Trait Implementations
impl Clone for DisplayBuilder
[src]
fn clone(&self) -> DisplayBuilder
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more