Struct surfman::SurfaceInfo
source · 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.
Implementations§
source§impl SurfaceInfo
impl SurfaceInfo
fn framebuffer(&self) -> Option<NativeFramebuffer>
Auto Trait Implementations§
impl Freeze for SurfaceInfo
impl RefUnwindSafe for SurfaceInfo
impl Send for SurfaceInfo
impl Sync for SurfaceInfo
impl Unpin for SurfaceInfo
impl UnwindSafe for SurfaceInfo
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