[−][src]Struct wlroots::surface::State
Surface state as reported by wlroots.
Methods
impl<'surface> State<'surface>[src]
impl<'surface> State<'surface>pub fn committed(&self) -> InvalidState[src]
pub fn committed(&self) -> InvalidStateGets the state of the sub surface.
Panics
If the invalid state is in an undefined state, this will panic.
pub fn position(&self) -> (i32, i32)[src]
pub fn position(&self) -> (i32, i32)Get the position of the surface relative to the previous position.
Return value is in (dx, dy) format.
pub fn size(&self) -> (c_int, c_int)[src]
pub fn size(&self) -> (c_int, c_int)Get the size of the sub surface.
Return value is in (width, height) format.
pub fn buffer_size(&self) -> (c_int, c_int)[src]
pub fn buffer_size(&self) -> (c_int, c_int)Get the size of the buffer.
Return value is iw (width, height) format.
pub fn scale(&self) -> i32[src]
pub fn scale(&self) -> i32Get the scale applied to the surface.
pub fn transform(&self) -> wl_output_transform[src]
pub fn transform(&self) -> wl_output_transformGet the output transform applied to the surface.
pub unsafe fn buffer(&self) -> *mut wl_resource[src]
pub unsafe fn buffer(&self) -> *mut wl_resourceGets the buffer of the surface.
pub unsafe fn surface_damage(&self) -> PixmanRegion[src]
pub unsafe fn surface_damage(&self) -> PixmanRegionpub unsafe fn buffer_damage(&self) -> PixmanRegion[src]
pub unsafe fn buffer_damage(&self) -> PixmanRegionpub unsafe fn opaque(&self) -> PixmanRegion[src]
pub unsafe fn opaque(&self) -> PixmanRegionpub unsafe fn input(&self) -> PixmanRegion[src]
pub unsafe fn input(&self) -> PixmanRegionTrait Implementations
Auto Trait Implementations
Blanket Implementations
impl<T> From for T[src]
impl<T> From for Timpl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>try_from)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, fn borrow_mut(&mut self) -> &mut T[src]
fn borrow_mut(&mut self) -> &mut TMutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>try_from)Performs the conversion.
impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src]
fn get_type_id(&self) -> TypeId🔬 This is a nightly-only experimental API. (get_type_id)
this method will likely be replaced by an associated static
Gets the TypeId of self. Read more