[][src]Struct wlroots::surface::Surface

pub struct Surface { /* fields omitted */ }

A Wayland object that represents the data that we display on the screen.

Most surfaces come from Wayland clients, though they can also be created by the compositor directly.

Methods

impl Surface
[src]

Get the surface state.

Get the pending surface state.

Gets a list of handles to the Subsurfaces of this Surface.

Get the texture of this surface.

Returns None if no buffer is currently attached or if something went wrong with uploading the buffer.

Get the lifetime bound role (if one exists) for this surface.

Whether or not this surface currently has an attached buffer.

A surface has an attached buffer when it commits with a non-null buffer in its pending state.

A surface will not have a buffer if it has never committed one, has committed a null buffer, or something went wrong with uploading the buffer.

Determines if this surface accepts input or not at the provided surface local coordinates.

Determines if this surface is an XDG surface.

This is really only useful for getting the parent of popups from stable XDG shell surfaces.

Find a subsurface within this surface at the surface-local coordinates.

Returns the surface and coordinates in the topmost surface coordinate system or None if no subsurface is found at that location.

Get the top of the subsurface tree for this surface.

Send the frame done event.

Trait Implementations

impl Handleable<Weak<Box<SubsurfaceManager>>, wlr_surface> for Surface
[src]

Creates a weak reference to the resource.

impl Drop for Surface
[src]

Executes the destructor for this type. Read more

impl Debug for Surface
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl !Send for Surface

impl !Sync for 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