Struct wayland_window::Frame [] [src]

pub struct Frame { /* fields omitted */ }

A decorated frame for a window

This object allows you to interact with the shell_surface and frame.

You'll at least need to use it to resize the borders when you window is resized.

Dropping it will remove your window and unmap your wl_surface.

Methods

impl Frame
[src]

[src]

Refreshes the frame

Redraws the frame to match its requested state (dimensions, presence/ absence of decorations, ...)

If the frame does not need a redraw, this method will do nothing, so don't be afraid to call it frequently.

You need to call this method after every change to the dimensions or state of the decorations of your window, otherwise the drawn decorations may go out of sync with the state of your content.

[src]

Set a short title for the window.

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

[src]

Set an app id for the surface.

The surface class identifies the general class of applications to which the surface belongs.

Several wayland compositors will try to find a .desktop file matching this name to find metadata about your apps.

[src]

Set wether the window should be decorated or not

You need to call refresh() afterwards for this to properly take effect.

[src]

Resize the decorations

You should call this whenever you change the size of the contents of your window, with the new inner size of your window.

You need to call refresh() afterwards for this to properly take effect.

[src]

Sets the requested state of this surface

[src]

Sets the minimum possible size for this window

Provide either a tuple Some((width, height)) or None to unset the minimum size.

The provided size is the interior size, not counting decorations

[src]

Sets the maximum possible size for this window

Provide either a tuple Some((width, height)) or None to unset the maximum size.

The provided size is the interior size, not counting decorations

Trait Implementations

impl Drop for Frame
[src]

[src]

Executes the destructor for this type. Read more