pub struct GlSurface {
pub id: SurfaceId,
pub atlas_region: AtlasRegion,
pub z_order: i32,
pub visible: bool,
pub opacity: u8,
pub blend_mode: BlendMode,
pub x: i32,
pub y: i32,
pub pixels: Vec<u32>,
}Expand description
A compositable surface managed by the GL compositor.
Fields§
§id: SurfaceIdUnique identifier.
atlas_region: AtlasRegionTexture region in the atlas.
z_order: i32Z ordering (higher = closer to viewer).
visible: boolWhether this surface is visible.
opacity: u8Surface opacity (0 = transparent, 255 = opaque).
blend_mode: BlendModeBlend mode for compositing.
x: i32Position in viewport coordinates.
y: i32Position in viewport coordinates.
pixels: Vec<u32>Pixel data (ARGB8888), row-major.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GlSurface
impl RefUnwindSafe for GlSurface
impl Send for GlSurface
impl Sync for GlSurface
impl Unpin for GlSurface
impl UnwindSafe for GlSurface
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)