pub struct SurfaceInfo {
pub size: Size2D<i32>,
pub id: SurfaceID,
pub context_id: ContextID,
pub framebuffer_object: Option<Framebuffer>,
}Expand description
Various data about the surface.
Fields§
§size: Size2D<i32>The surface’s size, in device pixels.
id: SurfaceIDThe ID of the surface. This should be globally unique for each currently-allocated surface.
context_id: ContextIDThe ID of the context that this surface belongs to.
framebuffer_object: Option<Framebuffer>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§
impl Freeze for SurfaceInfo
impl RefUnwindSafe for SurfaceInfo
impl Send for SurfaceInfo
impl Sync for SurfaceInfo
impl Unpin for SurfaceInfo
impl UnsafeUnpin 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