[][src]Struct surfman::SurfaceInfo

pub struct SurfaceInfo {
    pub size: Size2D<i32>,
    pub id: SurfaceID,
    pub context_id: ContextID,
    pub framebuffer_object: c_uint,
}

Various data about the surface.

Fields

size: Size2D<i32>

The surface's size, in device pixels.

id: SurfaceID

The ID of the surface. This should be globally unique for each currently-allocated surface.

context_id: ContextID

The ID of the context that this surface belongs to.

framebuffer_object: c_uint

The OpenGL framebuffer object that can be used to render to this surface.

This is only valid when the surface is actually attached to a context.

Auto Trait Implementations

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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