pub struct SurfaceState {
pub buffer: Option<Buffer>,
pub buffer_offset: (i32, i32),
pub damage: Vec<DamageRect>,
pub opaque: Vec<DamageRect>,
pub input: Vec<DamageRect>,
}Expand description
Per-surface state that is applied atomically on commit.
Fields§
§buffer: Option<Buffer>Attached buffer (None = no buffer / transparent)
buffer_offset: (i32, i32)Buffer offset from surface origin
damage: Vec<DamageRect>Accumulated damage regions since last commit
opaque: Vec<DamageRect>Opaque region hint (currently unused, reserved for Phase 6)
input: Vec<DamageRect>Input region (where the surface accepts pointer/touch)
Trait Implementations§
Source§impl Clone for SurfaceState
impl Clone for SurfaceState
Source§fn clone(&self) -> SurfaceState
fn clone(&self) -> SurfaceState
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SurfaceState
impl RefUnwindSafe for SurfaceState
impl Send for SurfaceState
impl Sync for SurfaceState
impl Unpin for SurfaceState
impl UnwindSafe for SurfaceState
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)