public interface WlShellSurfaceEvents
An interface that may be implemented by a wl_surface, for implementations that provide a desktop-style user interface.
It provides requests to treat surfaces like toplevel, fullscreen or popup windows, move, resize or maximize them, associate metadata like title and class, etc.
On the server side the object is automatically destroyed when the related wl_surface is destroyed. On the client side, wl_shell_surface_destroy() must be called before destroying the wl_surface object.
| Modifier and Type | Field and Description |
|---|---|
static int |
VERSION |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(WlShellSurfaceProxy emitter,
int edges,
int width,
int height)
suggest resize
|
void |
ping(WlShellSurfaceProxy emitter,
int serial)
ping client
|
void |
popupDone(WlShellSurfaceProxy emitter)
popup interaction is done
|
static final int VERSION
void ping(WlShellSurfaceProxy emitter, int serial)
Ping a client to check if it is receiving events and sending requests. A client is expected to reply with a pong request.
emitter - The protocol object that emitted the event.serial - serial number of the pingvoid configure(WlShellSurfaceProxy emitter, int edges, int width, int height)
The configure event asks the client to resize its surface.
The size is a hint, in the sense that the client is free to ignore it if it doesn't resize, pick a smaller size (to satisfy aspect ratio or resize in steps of NxM pixels).
The edges parameter provides a hint about how the surface was resized. The client may use this information to decide how to adjust its content to the new size (e.g. a scrolling area might adjust its content position to leave the viewable content unmoved).
The client is free to dismiss all but the last configure event it received.
The width and height arguments specify the size of the window in surface-local coordinates.
emitter - The protocol object that emitted the event.edges - how the surface was resizedwidth - new width of the surfaceheight - new height of the surfacevoid popupDone(WlShellSurfaceProxy emitter)
The popup_done event is sent out when a popup grab is broken, that is, when the user clicks a surface that doesn't belong to the client owning the popup surface.
emitter - The protocol object that emitted the event.Copyright © 2016. All rights reserved.