[][src]Struct wlroots::surface::State

pub struct State<'surface> { /* fields omitted */ }

Surface state as reported by wlroots.

Methods

impl<'surface> State<'surface>
[src]

Gets the state of the sub surface.

Panics

If the invalid state is in an undefined state, this will panic.

Get the position of the surface relative to the previous position.

Return value is in (dx, dy) format.

Get the size of the sub surface.

Return value is in (width, height) format.

Get the size of the buffer.

Return value is iw (width, height) format.

Get the scale applied to the surface.

Get the output transform applied to the surface.

Gets the buffer of the surface.

Trait Implementations

impl<'surface> Debug for State<'surface>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<'surface> !Send for State<'surface>

impl<'surface> !Sync for State<'surface>

Blanket Implementations

impl<T> From for T
[src]

Performs the conversion.

impl<T, U> Into for T where
    U: From<T>, 
[src]

Performs the conversion.

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Borrow for T where
    T: ?Sized
[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut for T where
    T: ?Sized
[src]

Mutably borrows from an owned value. Read more

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

🔬 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