Go to the source code of this file.
Functions | |
| G_BEGIN_DECLS | G_DECLARE_FINAL_TYPE (FlWaylandDisplay, fl_wayland_display, FL, WAYLAND_DISPLAY, GObject) FlWaylandDisplay *fl_wayland_display_open(struct wl_display *wl_display) |
| FlWaylandDisplay * | fl_wayland_display_get_for_display (GdkDisplay *display) |
| FlSubsurface * | fl_wayland_display_create_subsurface (FlWaylandDisplay *display, struct wl_surface *parent_surface) |
| FlSubsurface* fl_wayland_display_create_subsurface | ( | FlWaylandDisplay * | display, |
| struct wl_surface * | parent_surface | ||
| ) |
fl_wayland_display_create_subsurface: @display: an #FlWaylandDisplay. @parent_surface: the Wayland surface to attach the subsurface to.
Creates a new Wayland subsurface on @parent_surface. @parent_surface must be on the display @display was created for, it is a programmer error to call this otherwise.
Returns: (transfer full): a new #FlSubsurface.
Definition at line 112 of file fl_wayland_display.cc.
References fl_subsurface_new().
Referenced by FlSubsurfaceTest::CreateSubsurface(), FlSubsurfaceEGLTest::SetUp(), and TEST_F().
| FlWaylandDisplay* fl_wayland_display_get_for_display | ( | GdkDisplay * | display | ) |
fl_wayland_display_get_for_display: @display: a Wayland #GdkDisplay.
Gets the #FlWaylandDisplay for @display, creating it if required. The Wayland registry is only queried the first time this is called for a given display. @display must be a Wayland display, it is a programmer error to call this otherwise.
Returns: (transfer none): an #FlWaylandDisplay, or NULL if the required Wayland globals are not available.
Definition at line 89 of file fl_wayland_display.cc.
References fl_wayland_display_open(), and kWaylandDisplayKey.
Referenced by TEST_F().
| G_BEGIN_DECLS G_DECLARE_FINAL_TYPE | ( | FlWaylandDisplay | , |
| fl_wayland_display | , | ||
| FL | , | ||
| WAYLAND_DISPLAY | , | ||
| GObject | |||
| ) |
FlWaylandDisplay:
#FlWaylandDisplay provides access to the Wayland globals used by Flutter, binding them from the Wayland registry a single time per display. fl_wayland_display_open: @wl_display: the Wayland display to use.
Binds the Wayland globals used by Flutter on @wl_display. This is not a plain constructor - it fails if the compositor doesn't provide the globals that are required.
Returns: (transfer full): an #FlWaylandDisplay, or NULL if the required Wayland globals are not available.