Enum smithay::wayland::shell::xdg::XdgRequest[][src]

pub enum XdgRequest {
Show 14 variants NewClient { client: ShellClient, }, ClientPong { client: ShellClient, }, NewToplevel { surface: ToplevelSurface, }, NewPopup { surface: PopupSurface, }, Move { surface: ToplevelSurface, seat: WlSeat, serial: Serial, }, Resize { surface: ToplevelSurface, seat: WlSeat, serial: Serial, edges: ResizeEdge, }, Grab { surface: PopupSurface, seat: WlSeat, serial: Serial, }, Maximize { surface: ToplevelSurface, }, UnMaximize { surface: ToplevelSurface, }, Fullscreen { surface: ToplevelSurface, output: Option<WlOutput>, }, UnFullscreen { surface: ToplevelSurface, }, Minimize { surface: ToplevelSurface, }, ShowWindowMenu { surface: ToplevelSurface, seat: WlSeat, serial: Serial, location: Point<i32, Logical>, }, AckConfigure { surface: WlSurface, configure: Configure, },
}
Expand description

Events generated by xdg shell surfaces

These are events that the provided implementation cannot process for you directly.

Depending on what you want to do, you might ignore some of them

Variants

NewClient

A new shell client was instantiated

Fields of NewClient

client: ShellClient

the client

ClientPong

The pong for a pending ping of this shell client was received

The ShellHandler already checked for you that the serial matches the one from the pending ping.

Fields of ClientPong

client: ShellClient

the client

NewToplevel

A new toplevel surface was created

You likely need to send a ToplevelConfigure to the surface, to hint the client as to how its window should be sized.

Fields of NewToplevel

surface: ToplevelSurface

the surface

NewPopup

A new popup surface was created

You likely need to send a PopupConfigure to the surface, to hint the client as to how its popup should be sized.

Fields of NewPopup

surface: PopupSurface

the surface

Move

The client requested the start of an interactive move for this surface

Fields of Move

surface: ToplevelSurface

the surface

seat: WlSeat

the seat associated to this move

serial: Serial

the grab serial

Resize

The client requested the start of an interactive resize for this surface

Fields of Resize

surface: ToplevelSurface

The surface

seat: WlSeat

The seat associated with this resize

serial: Serial

The grab serial

edges: ResizeEdge

Specification of which part of the window’s border is being dragged

Grab

This popup requests a grab of the pointer

This means it requests to be sent a popup_done event when the pointer leaves the grab area.

Fields of Grab

surface: PopupSurface

The surface

seat: WlSeat

The seat to grab

serial: Serial

The grab serial

Maximize

A toplevel surface requested to be maximized

Fields of Maximize

surface: ToplevelSurface

The surface

UnMaximize

A toplevel surface requested to stop being maximized

Fields of UnMaximize

surface: ToplevelSurface

The surface

Fullscreen

A toplevel surface requested to be set fullscreen

Fields of Fullscreen

surface: ToplevelSurface

The surface

output: Option<WlOutput>

The output (if any) on which the fullscreen is requested

UnFullscreen

A toplevel surface request to stop being fullscreen

Fields of UnFullscreen

surface: ToplevelSurface

The surface

Minimize

A toplevel surface requested to be minimized

Fields of Minimize

surface: ToplevelSurface

The surface

ShowWindowMenu

The client requests the window menu to be displayed on this surface at this location

This menu belongs to the compositor. It is typically expected to contain options for control of the window (maximize/minimize/close/move/etc…).

Fields of ShowWindowMenu

surface: ToplevelSurface

The surface

seat: WlSeat

The seat associated with this input grab

serial: Serial

the grab serial

location: Point<i32, Logical>

location of the menu request relative to the surface geometry

AckConfigure

A surface has acknowledged a configure serial.

Fields of AckConfigure

surface: WlSurface

The surface.

configure: Configure

The configure serial.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait. Read more

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read more

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s. Read more

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s. Read more

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.