Struct radiant_rs::Display[][src]

pub struct Display { /* fields omitted */ }

A target to render to, e.g. a window or full screen.

Methods

impl Display
[src]

Returns a display builder for display construction.

Examples

let display = Display::builder().dimensions((640, 480)).vsync().title("Window!").build().unwrap();

Sets the window title.

Makes the previously hidden window visible.

Hides the window.

Switches to fullscreen mode on the primary monitor.

Switches to fullscreen mode on the given monitor.

Switches to windowed mode.

Prepares a frame for rendering.

Prepares a frame for rendering and clears it.

Swaps current drawing frame with visible frame.

Enables cursor grab mode. While in this mode, the mouse cursor will be hidden and constrained to the window.

Grab mode will be temporarily released when the window loses focus and automatically restored once it regains focus.

Hides the mouse cursor while it is inside the window.

Releases a previously grabbed or hidden cursor and makes it visible again.

Sets the mouse cursor position.

Returns the window dimensions.

Important traits for Vec<u8>

Returns a vector of available monitors.

Important traits for &'a mut R

Polls for events like keyboard or mouse input and changes to the window. See Input for basic keyboard and mouse support.

Returns true once after the attached window was closed

Trait Implementations

impl Clone for Display
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Display
[src]

Formats the value using the given formatter. Read more

impl AsRenderTarget for Display
[src]

Returns a RenderTarget representing a texture or a frame.

Auto Trait Implementations

impl !Send for Display

impl !Sync for Display