Xdp.Parent

Fields

None

Methods

copy ()

free ()

Details

class Xdp.Parent

Parent window abstraction.

The [struct`Parent`] struct provides an abstract way to represent a window, without introducing a dependency on a toolkit library.

An Xdp.Parent implementation for GTK is included in the portal-gtk3.h and portal-gtk4.h header files, in the form of inline functions. To create a Xdp.Parent for a GTK window, use xdp_parent_new_gtk().

copy()
Returns:

an [struct`Parent`] that is a copy of self

Return type:

Xdp.Parent

Copies self into a new [struct`Parent`].

free()

Frees self.