SDL 2.0
xdg_popup_listener Struct Reference

#include <xdg-shell-client-protocol.h>

Data Fields

void(* configure )(void *data, struct xdg_popup *xdg_popup, int32_t x, int32_t y, int32_t width, int32_t height)
 
void(* popup_done )(void *data, struct xdg_popup *xdg_popup)
 

Detailed Description

Definition at line 1777 of file xdg-shell-client-protocol.h.

Field Documentation

◆ configure

void(* xdg_popup_listener::configure) (void *data, struct xdg_popup *xdg_popup, int32_t x, int32_t y, int32_t width, int32_t height)

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.

Parameters
xx position relative to parent surface window geometry
yy position relative to parent surface window geometry
widthwindow geometry width
heightwindow geometry height

Definition at line 1793 of file xdg-shell-client-protocol.h.

◆ popup_done

void(* xdg_popup_listener::popup_done) (void *data, struct xdg_popup *xdg_popup)

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.

Definition at line 1806 of file xdg-shell-client-protocol.h.


The documentation for this struct was generated from the following file: