[][src]Struct skia::gl_context::GLContext

pub struct GLContext {
    pub platform_context: GLPlatformContext,
    pub gr_context: SkiaGrContextRef,
    pub gl_interface: SkiaGrGLInterfaceRef,
    pub size: Size2D<i32>,
    // some fields omitted
}

Fields

platform_context: GLPlatformContextgr_context: SkiaGrContextRefgl_interface: SkiaGrGLInterfaceRefsize: Size2D<i32>

Implementations

impl GLContext[src]

pub fn new(
    gl: Rc<dyn Gl>,
    platform_display_data: PlatformDisplayData,
    size: Size2D<i32>
) -> Option<Arc<GLContext>>
[src]

pub fn gl(&self) -> &dyn Gl[src]

pub fn flush(&self)[src]

pub fn make_current(&self)[src]

pub fn drop_current_context(&self)[src]

Trait Implementations

impl Drop for GLContext[src]

Auto Trait Implementations

impl !RefUnwindSafe for GLContext

impl !Send for GLContext

impl !Sync for GLContext

impl Unpin for GLContext

impl !UnwindSafe for GLContext

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.