Struct surfman::SurfaceInfo[][src]

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

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

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.