[][src]Struct sdl2::render::RendererContext

pub struct RendererContext<T> { /* fields omitted */ }

Manages what keeps a SDL_Renderer alive

When the RendererContext is dropped, it destroys the SDL_Renderer

Methods

impl<T> RendererContext<T>[src]

pub fn info(&self) -> RendererInfo[src]

Gets information about the rendering context.

pub fn raw(&self) -> *mut SDL_Renderer[src]

Gets the raw pointer to the SDL_Renderer

pub unsafe fn from_ll(raw: *mut SDL_Renderer, target: Rc<T>) -> Self[src]

Trait Implementations

impl<T> Drop for RendererContext<T>[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for RendererContext<T>

impl<T> !Send for RendererContext<T>

impl<T> !Sync for RendererContext<T>

impl<T> Unpin for RendererContext<T>

impl<T> UnwindSafe for RendererContext<T> where
    T: RefUnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.