Struct sdl2::render::RendererContext
source · pub struct RendererContext<T> { /* private fields */ }
Expand description
Manages what keeps a SDL_Renderer
alive
When the RendererContext
is dropped, it destroys the SDL_Renderer
Implementations§
source§impl<T> RendererContext<T>
impl<T> RendererContext<T>
sourcepub fn info(&self) -> RendererInfo
pub fn info(&self) -> RendererInfo
Gets information about the rendering context.
sourcepub fn raw(&self) -> *mut SDL_Renderer
pub fn raw(&self) -> *mut SDL_Renderer
Gets the raw pointer to the SDL_Renderer
pub unsafe fn from_ll(raw: *mut SDL_Renderer, target: Rc<T>) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for RendererContext<T>
impl<T> RefUnwindSafe for RendererContext<T>where
T: RefUnwindSafe,
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more