pub struct Surface<'a> { /* private fields */ }
Expand description
Notice these docs are heavy WIP and not very relevent yet
The size of the surface is accessible with the size() function. The rendering specific attributes of the surface are accessible through the format() function.
Licence
The documentation is an adoption of the original Qt Documentation and provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.
Implementations
sourceimpl<'a> Surface<'a>
impl<'a> Surface<'a>
sourcepub fn surface_class(&self) -> SurfaceClass
pub fn surface_class(&self) -> SurfaceClass
Returns the surface class of this surface.
sourcepub fn format(&self) -> SurfaceFormat<'_>
pub fn format(&self) -> SurfaceFormat<'_>
Returns the format of the surface.
sourcepub fn surface_type(&self) -> SurfaceType
pub fn surface_type(&self) -> SurfaceType
Returns the type of the surface.
sourcepub fn size(&self) -> Size<'_>
pub fn size(&self) -> Size<'_>
Returns true if the surface is OpenGL compatible and can be used in conjunction with QOpenGLContext; otherwise returns false.
Returns the size of the surface in pixels.
pub fn build(&self) -> Self
Trait Implementations
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Surface<'a>
impl<'a> !Send for Surface<'a>
impl<'a> !Sync for Surface<'a>
impl<'a> Unpin for Surface<'a>
impl<'a> !UnwindSafe for Surface<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more