Module xdg_toplevel

Source
Available on crate feature server only.
Expand description

toplevel surface

This interface defines an xdg_surface role which allows a surface to, among other things, set window-like properties such as maximize, fullscreen, and minimize, set application-specific metadata like title and id, and well as trigger user interactive operations such as interactive resize and move.

A xdg_toplevel by default is responsible for providing the full intended visual representation of the toplevel, which depending on the window state, may mean things like a title bar, window controls and drop shadow.

Unmapping an xdg_toplevel means that the surface cannot be shown by the compositor until it is explicitly mapped again. All active operations (e.g., move, resize) are canceled and all attributes (e.g. title, state, stacking, …) are discarded for an xdg_toplevel surface when it is unmapped. The xdg_toplevel returns to the state it had right after xdg_surface.get_toplevel. The client can re-map the toplevel by performing a commit without any buffer attached, waiting for a configure event and handling it as usual (see xdg_surface description).

Attaching a null buffer to a toplevel unmaps the surface.

Structs§

XdgToplevel
toplevel surface

Enums§

Error
Event
Request
ResizeEdge
edge values for resizing
State
types of state on the surface
WmCapabilities

Constants§

EVT_CLOSE_OPCODE
The wire opcode for this event
EVT_CLOSE_SINCE
The minimal object version supporting this event
EVT_CONFIGURE_BOUNDS_OPCODE
The wire opcode for this event
EVT_CONFIGURE_BOUNDS_SINCE
The minimal object version supporting this event
EVT_CONFIGURE_OPCODE
The wire opcode for this event
EVT_CONFIGURE_SINCE
The minimal object version supporting this event
EVT_WM_CAPABILITIES_OPCODE
The wire opcode for this event
EVT_WM_CAPABILITIES_SINCE
The minimal object version supporting this event
REQ_DESTROY_OPCODE
The wire opcode for this request
REQ_DESTROY_SINCE
The minimal object version supporting this request
REQ_MOVE_OPCODE
The wire opcode for this request
REQ_MOVE_SINCE
The minimal object version supporting this request
REQ_RESIZE_OPCODE
The wire opcode for this request
REQ_RESIZE_SINCE
The minimal object version supporting this request
REQ_SET_APP_ID_OPCODE
The wire opcode for this request
REQ_SET_APP_ID_SINCE
The minimal object version supporting this request
REQ_SET_FULLSCREEN_OPCODE
The wire opcode for this request
REQ_SET_FULLSCREEN_SINCE
The minimal object version supporting this request
REQ_SET_MAXIMIZED_OPCODE
The wire opcode for this request
REQ_SET_MAXIMIZED_SINCE
The minimal object version supporting this request
REQ_SET_MAX_SIZE_OPCODE
The wire opcode for this request
REQ_SET_MAX_SIZE_SINCE
The minimal object version supporting this request
REQ_SET_MINIMIZED_OPCODE
The wire opcode for this request
REQ_SET_MINIMIZED_SINCE
The minimal object version supporting this request
REQ_SET_MIN_SIZE_OPCODE
The wire opcode for this request
REQ_SET_MIN_SIZE_SINCE
The minimal object version supporting this request
REQ_SET_PARENT_OPCODE
The wire opcode for this request
REQ_SET_PARENT_SINCE
The minimal object version supporting this request
REQ_SET_TITLE_OPCODE
The wire opcode for this request
REQ_SET_TITLE_SINCE
The minimal object version supporting this request
REQ_SHOW_WINDOW_MENU_OPCODE
The wire opcode for this request
REQ_SHOW_WINDOW_MENU_SINCE
The minimal object version supporting this request
REQ_UNSET_FULLSCREEN_OPCODE
The wire opcode for this request
REQ_UNSET_FULLSCREEN_SINCE
The minimal object version supporting this request
REQ_UNSET_MAXIMIZED_OPCODE
The wire opcode for this request
REQ_UNSET_MAXIMIZED_SINCE
The minimal object version supporting this request