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.

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

Sets the window title.

Makes the previously hidden window visible.

Hides the window.

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. Additionally, Input will be able to provide mouse movement deltas and allow mouse coordinates to exceed the window-bounds.

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.

Returns the window dimensions.

Returns monitor details for given monitor id.

Returns a vector of available monitors.

Takes a glium::Display and returns a radiant::Display.

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 AsRenderTarget for Display
[src]

Returns RenderTarget enum containing a texture or a frame.