Documentation for <wlr/types/wlr_xdg_foreign_v2.h>

Back to index

Table of contents

struct wlr_xdg_exported_v2

struct wlr_xdg_exported_v2 {
	struct wlr_xdg_foreign_exported base;
	
	struct wl_resource *resource;
	struct wl_list link; // wlr_xdg_foreign_v2.exporter.objects
	
	struct {
		struct wl_listener xdg_toplevel_destroy;
	} WLR_PRIVATE;
};

struct wlr_xdg_foreign_v2

struct wlr_xdg_foreign_v2 {
	struct {
		struct wl_global *global;
		struct wl_list objects; // wlr_xdg_exported_v2.link or wlr_xdg_imported_v2.link
	} exporter, importer;
	
	struct wlr_xdg_foreign_registry *registry;
	
	struct {
		struct wl_signal destroy;
	} events;
	
	void *data;
	
	struct {
		struct wl_listener foreign_registry_destroy;
		struct wl_listener display_destroy;
	} WLR_PRIVATE;
};

wlr_xdg_foreign_v2_create()

struct wlr_xdg_foreign_v2 *wlr_xdg_foreign_v2_create(​struct wl_display *display, struct wlr_xdg_foreign_registry *registry);

struct wlr_xdg_imported_child_v2

struct wlr_xdg_imported_child_v2 {
	struct wlr_xdg_imported_v2 *imported;
	struct wlr_xdg_toplevel *toplevel;
	
	struct wl_list link; // wlr_xdg_imported_v2.children
	
	struct {
		struct wl_listener xdg_toplevel_destroy;
		struct wl_listener xdg_toplevel_set_parent;
	} WLR_PRIVATE;
};

struct wlr_xdg_imported_v2

struct wlr_xdg_imported_v2 {
	struct wlr_xdg_foreign_exported *exported;
	
	struct wl_resource *resource;
	struct wl_list link; // wlr_xdg_foreign_v2.importer.objects
	struct wl_list children;
	
	struct {
		struct wl_listener exported_destroyed;
	} WLR_PRIVATE;
};