[][src]Trait wayland_protocols::xdg_shell::client::xdg_popup::EventHandler

pub trait EventHandler {
    fn configure(
        &mut self,
        object: XdgPopup,
        x: i32,
        y: i32,
        width: i32,
        height: i32
    ) { ... }
fn popup_done(&mut self, object: XdgPopup) { ... } }

An interface for handling events.

Provided methods

fn configure(
    &mut self,
    object: XdgPopup,
    x: i32,
    y: i32,
    width: i32,
    height: i32
)

configure the popup surface

This event asks the popup surface to configure itself given the configuration. The configured state should not be applied immediately. See xdg_surface.configure for details.

The x and y arguments represent the position the popup was placed at given the xdg_positioner rule, relative to the upper left corner of the window geometry of the parent surface.

fn popup_done(&mut self, object: XdgPopup)

popup interaction is done

The popup_done event is sent out when a popup is dismissed by the compositor. The client should destroy the xdg_popup object at this point.

Loading content...

Implementors

Loading content...