[−][src]Struct wayland_protocols::wlr::unstable::foreign_toplevel::v1::client::zwlr_foreign_toplevel_handle_v1::ZwlrForeignToplevelHandleV1
Implementations
impl ZwlrForeignToplevelHandleV1
[src]
pub fn set_maximized(&self)
[src]
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.
pub fn unset_maximized(&self)
[src]
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.
pub fn set_minimized(&self)
[src]
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.
pub fn unset_minimized(&self)
[src]
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.
pub fn activate(&self, seat: &WlSeat)
[src]
activate the toplevel
Request that this toplevel be activated on the given seat. There is no guarantee the toplevel will be actually activated.
pub fn close(&self)
[src]
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.
pub fn set_rectangle(
&self,
surface: &WlSurface,
x: i32,
y: i32,
width: i32,
height: i32
)
[src]
&self,
surface: &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.
pub fn destroy(&self)
[src]
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.
pub fn set_fullscreen(&self, output: Option<&WlOutput>)
[src]
request that the toplevel be fullscreened
Requests that the toplevel be fullscreened on the given output. If the fullscreen state and/or the outputs the toplevel is visible on actually change, this will be indicated by the state and output_enter/leave events.
The output parameter is only a hint to the compositor. Also, if output is NULL, the compositor should decide which output the toplevel will be fullscreened on, if at all.
Only available since version 2 of the interface.
pub fn unset_fullscreen(&self)
[src]
request that the toplevel be unfullscreened
Requests that the toplevel be unfullscreened. If the fullscreen state actually changes, this will be indicated by the state event.
Only available since version 2 of the interface.
Trait Implementations
impl AsRef<Proxy<ZwlrForeignToplevelHandleV1>> for ZwlrForeignToplevelHandleV1
[src]
impl Clone for ZwlrForeignToplevelHandleV1
[src]
fn clone(&self) -> ZwlrForeignToplevelHandleV1
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ZwlrForeignToplevelHandleV1
[src]
impl Eq for ZwlrForeignToplevelHandleV1
[src]
impl From<Proxy<ZwlrForeignToplevelHandleV1>> for ZwlrForeignToplevelHandleV1
[src]
impl From<ZwlrForeignToplevelHandleV1> for Proxy<ZwlrForeignToplevelHandleV1>
[src]
fn from(value: ZwlrForeignToplevelHandleV1) -> Self
[src]
impl Interface for ZwlrForeignToplevelHandleV1
[src]
type Request = Request
Set of requests associated to this interface Read more
type Event = Event
Set of events associated to this interface Read more
const NAME: &'static str
[src]
const VERSION: u32
[src]
fn c_interface() -> *const wl_interface
[src]
impl PartialEq<ZwlrForeignToplevelHandleV1> for ZwlrForeignToplevelHandleV1
[src]
fn eq(&self, other: &ZwlrForeignToplevelHandleV1) -> bool
[src]
fn ne(&self, other: &ZwlrForeignToplevelHandleV1) -> bool
[src]
impl StructuralEq for ZwlrForeignToplevelHandleV1
[src]
impl StructuralPartialEq for ZwlrForeignToplevelHandleV1
[src]
Auto Trait Implementations
impl !RefUnwindSafe for ZwlrForeignToplevelHandleV1
impl Send for ZwlrForeignToplevelHandleV1
impl Sync for ZwlrForeignToplevelHandleV1
impl Unpin for ZwlrForeignToplevelHandleV1
impl !UnwindSafe for ZwlrForeignToplevelHandleV1
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Downcast for T where
T: Any,
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn as_any(&self) -> &(dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
impl<T> DowncastSync for T where
T: Send + Sync + Any,
T: Send + Sync + Any,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,