2
3
4
5
6
7
8
9
10
11
12
13
14
15
17#ifndef MIRAL_WAYLAND_SURFACE_H
18#define MIRAL_WAYLAND_SURFACE_H
22#include "mir/geometry/size.h"
39 auto surface()
const -> wl_surface* {
return surface_; }
47 static void handle_ping(
void* data,
struct wl_shell_surface* shell_surface, uint32_t serial);
48 static void handle_configure(
50 wl_shell_surface* shell_surface,
55 static wl_shell_surface_listener
const shell_surface_listener;
Definition: wayland_app.h:114
Definition: wayland_app.h:30
Definition: wayland_surface.h:27
void set_fullscreen(wl_output *output)
output can be null, user needs to commit after
Definition: wayland_surface.cpp:57
void add_frame_callback(std::function< void()> &&func)
Definition: wayland_surface.cpp:66
void commit() const
Definition: wayland_surface.cpp:52
virtual ~WaylandSurface()=default
auto surface() const -> wl_surface *
Definition: wayland_surface.h:39
auto app() const -> WaylandApp const *
Definition: wayland_surface.h:38
void attach_buffer(wl_buffer *buffer, int scale)
Definition: wayland_surface.cpp:42
auto configured_size() const -> mir::geometry::Size
Definition: wayland_surface.h:40
virtual void configured()
Called when the compositor configures this shell surface.
Definition: wayland_surface.h:44
WaylandSurface(WaylandApp const *app)
Definition: wayland_surface.cpp:33
Basic geometry types. Types for dimensions, displacements, etc. and the operations that they support.
Definition: size.h:27