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]
impl WindowContext
pub unsafe fn from_ll(
subsystem: VideoSubsystem,
raw: *mut SDL_Window
) -> WindowContext
[src]
pub unsafe fn from_ll(
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 Drop for WindowContext
impl From<WindowContext> for Window
[src]
impl From<WindowContext> for Window
fn from(context: WindowContext) -> Window
[src]
fn from(context: WindowContext) -> Window
Performs the conversion.
Auto Trait Implementations
impl !Send for WindowContext
impl !Send for WindowContext
impl !Sync for WindowContext
impl !Sync for WindowContext