Struct sdl2::video::WindowContext
[−]
[src]
pub struct WindowContext { /* fields omitted */ }Holds a SDL_Window
When the WindowContext is dropped, it destroys the SDL_Window
Methods
impl WindowContext[src]
pub unsafe fn from_ll(
subsystem: VideoSubsystem,
raw: *mut SDL_Window
) -> WindowContext[src]
subsystem: VideoSubsystem,
raw: *mut SDL_Window
) -> WindowContext
Unsafe if the *mut SDL_Window is used after the WindowContext is dropped
Trait Implementations
impl Drop for WindowContext[src]
impl From<WindowContext> for Window[src]
fn from(context: WindowContext) -> Window[src]
Performs the conversion.