Top | ![]() |
![]() |
![]() |
![]() |
ClutterWaylandSurfaceClutterWaylandSurface — An actor which displays the content of a client surface |
ClutterActor * | clutter_wayland_surface_new () |
gboolean | clutter_wayland_surface_attach_buffer () |
void | clutter_wayland_surface_damage_buffer () |
CoglTexture * | clutter_wayland_surface_get_cogl_texture () |
struct wl_surface * | clutter_wayland_surface_get_surface () |
void | clutter_wayland_surface_set_surface () |
ClutterWaylandSurface is an actor for displaying the contents of a client surface. It is intended to support developers implementing Clutter based wayland compositors.
ClutterActor *
clutter_wayland_surface_new (struct wl_surface *surface
);
Creates a new ClutterWaylandSurface for surface
Since 1.8
Stability Level: Unstable
gboolean clutter_wayland_surface_attach_buffer (ClutterWaylandSurface *self
,struct wl_buffer *buffer
,GError **error
);
This associates a client's buffer with the ClutterWaylandSurface
actor self
. This will automatically result in self
being re-drawn
with the new buffer contents.
self |
A ClutterWaylandSurface actor |
|
buffer |
A compositor side struct wl_buffer pointer |
|
error |
A GError |
Since 1.8
Stability Level: Unstable
void clutter_wayland_surface_damage_buffer (ClutterWaylandSurface *self
,struct wl_buffer *buffer
,gint32 x
,gint32 y
,gint32 width
,gint32 height
);
This marks a region of the given buffer
has having been changed by
the client. This will automatically result in the corresponding damaged
region of the actor self
being redrawn.
If multiple regions are changed then this should be called multiple times with different damage rectangles.
self |
A ClutterWaylandSurface actor |
|
buffer |
A compositor side struct wl_buffer pointer |
|
x |
The x coordinate of the damaged rectangle |
|
y |
The y coordinate of the damaged rectangle |
|
width |
The width of the damaged rectangle |
|
height |
The height of the damaged rectangle |
Since 1.8
Stability Level: Unstable
CoglTexture *
clutter_wayland_surface_get_cogl_texture
(ClutterWaylandSurface *self
);
struct wl_surface *
clutter_wayland_surface_get_surface (ClutterWaylandSurface *self
);
void clutter_wayland_surface_set_surface (ClutterWaylandSurface *self
,struct wl_surface *surface
);
struct ClutterWaylandSurface { };
The ClutterWaylandSurface structure contains only private data
Since 1.10
Stability Level: Unstable
struct ClutterWaylandSurfaceClass { void (*queue_damage_redraw) (ClutterWaylandSurface *texture, gint x, gint y, gint width, gint height); };
The ClutterWaylandSurfaceClass structure contains only private data
Since 1.10
Stability Level: Unstable