[−][src]Trait wayland_protocols::wlr::unstable::foreign_toplevel::v1::client::zwlr_foreign_toplevel_handle_v1::RequestsTrait
Required methods
fn set_maximized(&self)
requests that the toplevel be maximized
Requests that the toplevel be maximized. If the maximized state actually changes, this will be indicated by the state event.
fn unset_maximized(&self)
requests that the toplevel be unmaximized
Requests that the toplevel be unmaximized. If the maximized state actually changes, this will be indicated by the state event.
fn set_minimized(&self)
requests that the toplevel be minimized
Requests that the toplevel be minimized. If the minimized state actually changes, this will be indicated by the state event.
fn unset_minimized(&self)
requests that the toplevel be unminimized
Requests that the toplevel be unminimized. If the minimized state actually changes, this will be indicated by the state event.
fn activate(&self, seat: &Proxy<WlSeat>)
activate the toplevel
Request that this toplevel be activated on the given seat. There is no guarantee the toplevel will be actually activated.
fn close(&self)
request that the toplevel be closed
Send a request to the toplevel to close itself. The compositor would typically use a shell-specific method to carry out this request, for example by sending the xdg_toplevel.close event. However, this gives no guarantees the toplevel will actually be destroyed. If and when this happens, the zwlr_foreign_toplevel_handle_v1.closed event will be emitted.
fn set_rectangle(
&self,
surface: &Proxy<WlSurface>,
x: i32,
y: i32,
width: i32,
height: i32
)
&self,
surface: &Proxy<WlSurface>,
x: i32,
y: i32,
width: i32,
height: i32
)
the rectangle which represents the toplevel
The rectangle of the surface specified in this request corresponds to the place where the app using this protocol represents the given toplevel. It can be used by the compositor as a hint for some operations, e.g minimizing. The client is however not required to set this, in which case the compositor is free to decide some default value.
If the client specifies more than one rectangle, only the last one is considered.
The dimensions are given in surface-local coordinates. Setting width=height=0 removes the already-set rectangle.
fn destroy(&self)
destroy the zwlr_foreign_toplevel_handle_v1 object
Destroys the zwlr_foreign_toplevel_handle_v1 object.
This request should be called either when the client does not want to use the toplevel anymore or after the closed event to finalize the destruction of the object.
This is a destructor, you cannot send requests to this object any longer once this method is called.
Implementations on Foreign Types
impl RequestsTrait for Proxy<ZwlrForeignToplevelHandleV1>
[src]
fn set_maximized(&self)
[src]
fn unset_maximized(&self)
[src]
fn set_minimized(&self)
[src]
fn unset_minimized(&self)
[src]
fn activate(&self, seat: &Proxy<WlSeat>)
[src]
fn close(&self)
[src]
fn set_rectangle(
&self,
surface: &Proxy<WlSurface>,
x: i32,
y: i32,
width: i32,
height: i32
)
[src]
&self,
surface: &Proxy<WlSurface>,
x: i32,
y: i32,
width: i32,
height: i32
)