2
* Copyright © 2015 Canonical Ltd.
4
* This program is free software: you can redistribute it and/or modify it under
5
* the terms of the GNU Lesser General Public License version 3, as published by
6
* the Free Software Foundation.
8
* This program is distributed in the hope that it will be useful, but WITHOUT
9
* ANY WARRANTY; without even the implied warranties of MERCHANTABILITY,
10
* SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
* Lesser General Public License for more details.
13
* You should have received a copy of the GNU Lesser General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17
#include "stub_surface.h"
18
#include <mir_toolkit/common.h>
19
//#include <mir/input/input_reception_mode.h>
21
std::string StubSurface::name() const
26
void StubSurface::move_to(mir::geometry::Point const& /*top_left*/)
30
float StubSurface::alpha() const
35
mir::geometry::Size StubSurface::size() const
40
mir::geometry::Size StubSurface::client_size() const
45
std::shared_ptr <mir::frontend::BufferStream> StubSurface::primary_buffer_stream() const
50
void StubSurface::set_streams(std::list<mir::scene::StreamInfo> const& /*streams*/)
54
bool StubSurface::supports_input() const
59
int StubSurface::client_input_fd() const
64
std::shared_ptr <mir::input::InputChannel> StubSurface::input_channel() const
69
mir::input::InputReceptionMode StubSurface::reception_mode() const
71
return mir::input::InputReceptionMode::normal;
74
void StubSurface::set_reception_mode(mir::input::InputReceptionMode /*mode*/)
78
void StubSurface::set_input_region(std::vector<mir::geometry::Rectangle> const& /*input_rectangles*/)
82
void StubSurface::resize(mir::geometry::Size const& /*size*/)
86
mir::geometry::Point StubSurface::top_left() const
91
mir::geometry::Rectangle StubSurface::input_bounds() const
96
bool StubSurface::input_area_contains(mir::geometry::Point const& /*point*/) const
101
void StubSurface::consume(MirEvent const* /*event*/)
105
void StubSurface::set_alpha(float /*alpha*/)
109
void StubSurface::set_orientation(MirOrientation /*orientation*/)
113
void StubSurface::set_transformation(glm::mat4 const& /*mat4*/)
117
bool StubSurface::visible() const
122
mir::graphics::RenderableList StubSurface::generate_renderables(mir::compositor::CompositorID /*id*/) const
127
int StubSurface::buffers_ready_for_compositor(void const* /*compositor_id*/) const
132
MirSurfaceType StubSurface::type() const
134
return MirSurfaceType::mir_surface_type_normal;
137
MirSurfaceState StubSurface::state() const
139
return MirSurfaceState::mir_surface_state_fullscreen;
142
int StubSurface::configure(MirSurfaceAttrib /*attrib*/, int value)
147
int StubSurface::query(MirSurfaceAttrib /*attrib*/) const
152
void StubSurface::hide()
156
void StubSurface::show()
160
void StubSurface::set_cursor_image(std::shared_ptr<mir::graphics::CursorImage> const& /*image*/)
164
std::shared_ptr<mir::graphics::CursorImage> StubSurface::cursor_image() const
169
void StubSurface::set_cursor_stream(
170
std::shared_ptr<mir::frontend::BufferStream> const& /*stream*/,
171
mir::geometry::Displacement const& /*hotspot*/)
175
void StubSurface::request_client_surface_close()
179
std::shared_ptr<mir::scene::Surface> StubSurface::parent() const
184
void StubSurface::add_observer(std::shared_ptr<mir::scene::SurfaceObserver> const& /*observer*/)
188
void StubSurface::remove_observer(std::weak_ptr < mir::scene::SurfaceObserver > const& /*observer*/)
192
void StubSurface::set_keymap(MirInputDeviceId /*id*/, std::string const& /*model*/, std::string const& /*layout*/,
193
std::string const& /*variant*/, std::string const& /*options*/)
197
void StubSurface::rename(std::string const& /*title*/)