#include <gtk/gtk.h>Go to the source code of this file.
Functions | |
| G_BEGIN_DECLS FlSubsurface * | fl_subsurface_new (struct wl_compositor *compositor, struct wl_subcompositor *subcompositor, struct wl_surface *parent_surface) |
| struct wl_surface * | fl_subsurface_get_surface (FlSubsurface *subsurface) |
| void | fl_subsurface_set_position (FlSubsurface *subsurface, gint x, gint y) |
| struct wl_surface* fl_subsurface_get_surface | ( | FlSubsurface * | subsurface | ) |
fl_subsurface_get_surface: @subsurface: an #FlSubsurface.
Gets the Wayland surface backing this subsurface.
Returns: a struct wl_surface.
Definition at line 55 of file fl_subsurface.cc.
| G_BEGIN_DECLS FlSubsurface* fl_subsurface_new | ( | struct wl_compositor * | compositor, |
| struct wl_subcompositor * | subcompositor, | ||
| struct wl_surface * | parent_surface | ||
| ) |
FlSubsurface:
#FlSubsurface manages a Wayland subsurface attached to another Wayland surface. It is used to render Flutter content directly to a Wayland surface, independently of the GTK widget hierarchy. fl_subsurface_new: @compositor: the Wayland compositor to create the surface with. @subcompositor: the Wayland subcompositor to create the subsurface with. @parent_surface: the Wayland surface to attach the subsurface to.
Creates a new Wayland subsurface on @parent_surface.
Returns: a new #FlSubsurface.
Definition at line 34 of file fl_subsurface.cc.
Referenced by fl_wayland_display_create_subsurface().
| void fl_subsurface_set_position | ( | FlSubsurface * | subsurface, |
| gint | x, | ||
| gint | y | ||
| ) |
fl_subsurface_set_position: @subsurface: an #FlSubsurface. @x: x coordinate in the parent surface. @y: y coordinate in the parent surface.
Moves the subsurface to the given position relative to the parent surface.
Definition at line 60 of file fl_subsurface.cc.
Referenced by TEST_F().