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]

Sets a width for the display.

Sets a height for the display.

Sets dimensions for the display.

Sets a title for the display.

Flags the display to be transparent.

Flags the display to be borderless.

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

Flags the display to use vsync.

Flags the display to be initialially hidden.

Returns the constructed display instance.

Trait Implementations

impl Clone for DisplayBuilder
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations