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

pub struct Surface { /* fields omitted */ }

An Xwayland user interface component. It has an absolute position in layout-local coordinates.

When a surface is ready to be displayed, the map event is emitted. When a surface should no longer be displayed, the unmap event is emitted.

The unmap event is guaranteed to be emitted before the destroy event if the view is destroyed when mapped.

Methods

impl Surface
[src]

Get the window id for this surface.

Get the surface id for this surface.

Get the Wayland surface associated with this Surface. If the shell surface is not mapped, then it has no surface, and this will return None.

Get the coordinates of the window.

Return format is (x, y)

Get the dimensions the XWayland surface.

Return format is (width, height).

TODO What does this represent?

Return format is (width, height)

TODO What does this represent?

Get the title of the client, if there is one.

Get the class of the client, if there is one.

Get the instance of the client, if there is one.

Get the PID associated with the client.

Get the parent surface if there is one.

Get the list of children surfaces.

Get the type of the window from xcb.

Get the length of the window_type ptr

Get the protocols of the client.

Get the length of the protocols ptr.

Get the decorations on this XWayland client.

Get any surface hints the client is providing.

Get any size hints the client is providing.

Get the urgency of the hints.

Determine if the client is fullscreen or not.

Determine if the client is maximized vertically.

Determine if the client is maximized horizontally.

Determine if the client has an alpha channel.

Geometry of the surface in layout-local coordinates

Send the surface a configure request, requesting the new position and dimensions

Tell the window whether it is the foucsed window

Trait Implementations

impl Handleable<(), wlr_xwayland_surface> for Surface
[src]

Creates a weak reference to an Surface.

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