Struct wayland_window::DecoratedSurface [] [src]

pub struct DecoratedSurface<H: Handler> { /* fields omitted */ }

A wrapper for a decorated surface.

This is the main object of this crate. It wraps a user provided wayland surface into a ShellSurface and gives you acces to it via the .get_shell() method.

It also handles the drawing of minimalistic borders allowing the resizing and moving of the window. See the root documentation of this crate for explanations about how to use it.

Methods

impl<H: Handler> DecoratedSurface<H>
[src]

Resizes the borders to given width and height.

These values should be the dimentions of the internal surface of the window (the decorated window will thus be a little larger).

Creates a new decorated window around given surface.

Set a short title for the surface.

This string may be used to identify the surface in a task bar, window list, or other user interface elements provided by the compositor.

Set a class for the surface.

The surface class identifies the general class of applications to which the surface belongs. A common convention is to use the file name (or the full path if it is a non-standard location) of the application's .desktop file as the class.

Trait Implementations

impl<H: Handler + Any + Send + 'static> Init for DecoratedSurface<H>
[src]

Init the handler Read more

impl<H: Handler> Handler for DecoratedSurface<H>
[src]

enter event Read more

leave event Read more

pointer motion event Read more

pointer button event Read more

axis event Read more

end of a pointer event sequence Read more

axis source event Read more

axis stop event Read more

axis click event Read more

impl<H: Handler> Handler<WlPointer> for DecoratedSurface<H>
[src]

Dispatch a message.

impl<H: Handler> Handler for DecoratedSurface<H>
[src]

ping client Read more

suggest resize Read more

popup interaction is done Read more

impl<H: Handler> Handler<WlShellSurface> for DecoratedSurface<H>
[src]

Dispatch a message.