#include "flutter/shell/platform/linux/fl_wayland_display.h"#include <gdk/gdkwayland.h>#include <wayland-client.h>Go to the source code of this file.
Classes | |
| struct | _FlWaylandDisplay |
Functions | |
| static void | registry_global (void *data, struct wl_registry *registry, uint32_t name, const char *interface, uint32_t version) |
| static void | registry_global_remove (void *data, struct wl_registry *registry, uint32_t name) |
| static gboolean | bind_globals (FlWaylandDisplay *self, struct wl_display *display) |
| static void | fl_wayland_display_dispose (GObject *object) |
| static void | fl_wayland_display_class_init (FlWaylandDisplayClass *klass) |
| static void | fl_wayland_display_init (FlWaylandDisplay *self) |
| FlWaylandDisplay * | fl_wayland_display_open (struct wl_display *wl_display) |
| FlWaylandDisplay * | fl_wayland_display_get_for_display (GdkDisplay *gdk_display) |
| FlSubsurface * | fl_wayland_display_create_subsurface (FlWaylandDisplay *self, struct wl_surface *parent_surface) |
Variables | |
| static const char * | kWaylandDisplayKey = "fl-wayland-display" |
| static const struct wl_registry_listener | kRegistryListener |
|
static |
Definition at line 51 of file fl_wayland_display.cc.
References kRegistryListener.
Referenced by fl_wayland_display_open().
|
static |
Definition at line 70 of file fl_wayland_display.cc.
References fl_wayland_display_dispose().
| 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().
|
static |
| 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().
|
static |
Definition at line 74 of file fl_wayland_display.cc.
| FlWaylandDisplay* fl_wayland_display_open | ( | struct wl_display * | wl_display | ) |
Definition at line 76 of file fl_wayland_display.cc.
References bind_globals().
Referenced by fl_wayland_display_get_for_display(), FlSubsurfaceEGLTest::SetUp(), FlSubsurfaceTest::SetUp(), and TEST_F().
|
static |
Definition at line 25 of file fl_wayland_display.cc.
|
static |
Definition at line 40 of file fl_wayland_display.cc.
|
static |
Definition at line 40 of file fl_wayland_display.cc.
Referenced by bind_globals().
|
static |
Definition at line 12 of file fl_wayland_display.cc.
Referenced by fl_wayland_display_get_for_display().