Enum smithay::wayland::shell::legacy::ShellSurfaceKind[][src]

pub enum ShellSurfaceKind {
    Toplevel,
    Transient {
        parent: WlSurface,
        location: Point<i32, Logical>,
        inactive: bool,
    },
    Fullscreen {
        method: FullscreenMethod,
        framerate: u32,
        output: Option<WlOutput>,
    },
    Popup {
        parent: WlSurface,
        serial: Serial,
        inactive: bool,
        location: Point<i32, Logical>,
        seat: WlSeat,
    },
    Maximized {
        output: Option<WlOutput>,
    },
}
Expand description

Possible kinds of shell surface of the wl_shell protocol

Variants

Toplevel

Toplevel, a regular window displayed somewhere in the compositor space

Transient

Transient, this surface has a parent surface

These are sub-windows of an application (for example a configuration window), and as such should only be visible in their parent window is, and on top of it.

Fields of Transient

parent: WlSurface

The surface considered as parent

location: Point<i32, Logical>

Location relative to the parent

inactive: bool

Weather this window should be marked as inactive

Fullscreen

Fullscreen surface, covering an entire output

Fields of Fullscreen

method: FullscreenMethod

Method used for fullscreen

framerate: u32

Framerate (relevant only for driver fullscreen)

output: Option<WlOutput>

Requested output if any

Popup

A popup surface

Short-lived surface, typically referred as “tooltips” in many contexts.

Fields of Popup

parent: WlSurface

The parent surface of this popup

serial: Serial

The serial of the input event triggering the creation of this popup

inactive: bool

Weather this popup should be marked as inactive

location: Point<i32, Logical>

Location of the popup relative to its parent

seat: WlSeat

Seat associated this the input that triggered the creation of the popup. Used to define when the “popup done” event is sent.

Maximized

A maximized surface

Like a toplevel surface, but as big as possible on a single output while keeping any relevant desktop-environment interface visible.

Fields of Maximized

output: Option<WlOutput>

Requested output for maximization

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.