Struct sdl2_mt::Sdl2Mt [] [src]

pub struct Sdl2Mt(_);

Methods

impl Sdl2Mt
[src]

[src]

A quick, simple way to create a window. Just give it a name, width, and height.

This function executes synchronously. It will block until the window_creator function has completed.

Panics

This function will panic if the Window or the Canvas build() functions do not succeed.

[src]

Executes a window_creator function that accepts &mut VideoSubsystem and returns an Option. If Some(window), it will be added to a HashMap, hashing on the window's ID, which will then be returned here. If None, None will be returned here.

This function executes synchronously. It will block until the window_creator function has completed.

[src]

This function executes asynchronously. It will not block the calling thread.

[src]

Executes an event_handler function.

This function executes synchronously. It will block until the event_handler function has completed.

[src]

Terminates the UI thread. Not strictly necessary if the program will exit anyways, such as when the main program thread returns from main.

Trait Implementations

impl Clone for Sdl2Mt
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more