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().unwrap();
Methods
impl DisplayBuilder
[src]
impl DisplayBuilder
pub fn width(self, width: u32) -> Self
[src]
pub fn width(self, width: u32) -> Self
Sets a width for the display.
pub fn height(self, height: u32) -> Self
[src]
pub fn height(self, height: u32) -> Self
Sets a height for the display.
pub fn dimensions<T>(self, dimensions: T) -> Self where
(u32, u32): From<T>,
[src]
pub fn dimensions<T>(self, dimensions: T) -> Self where
(u32, u32): From<T>,
Sets dimensions for the display.
pub fn title(self, title: &str) -> Self
[src]
pub fn title(self, title: &str) -> Self
Sets a title for the display.
pub fn transparent(self) -> Self
[src]
pub fn transparent(self) -> Self
Flags the display to be transparent.
pub fn borderless(self) -> Self
[src]
pub fn borderless(self) -> Self
Flags the display to be borderless.
pub fn monitor(self, monitor: Monitor) -> Self
[src]
pub fn monitor(self, monitor: Monitor) -> Self
Sets the monitor to create the display on. note: currently monitor cannot be aquired prior to display construction due to changes in the glium backend
pub fn vsync(self) -> Self
[src]
pub fn vsync(self) -> Self
Flags the display to use vsync.
Flags the display to be initialially hidden.
pub fn build(self) -> Result<Display>
[src]
pub fn build(self) -> Result<Display>
Returns the constructed display instance.
Trait Implementations
impl Clone for DisplayBuilder
[src]
impl Clone for DisplayBuilder
fn clone(&self) -> DisplayBuilder
[src]
fn clone(&self) -> DisplayBuilder
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl Send for DisplayBuilder
impl Send for DisplayBuilder
impl Sync for DisplayBuilder
impl Sync for DisplayBuilder