~vanvugt/mir/unique-id

« back to all changes in this revision

Viewing changes to include/server/mir/graphics/display.h

  • Committer: Daniel van Vugt
  • Date: 2013-04-16 06:59:13 UTC
  • mfrom: (578.1.12 trunk)
  • Revision ID: daniel.van.vugt@canonical.com-20130416065913-ihl399t0ud6t2uax
Merge latest lp:mir

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 * Copyright © 2012 Canonical Ltd.
3
3
 *
4
4
 * This program is free software: you can redistribute it and/or modify it
5
 
 * under the terms of the GNU Lesser General Public License version 3,
 
5
 * under the terms of the GNU General Public License version 3,
6
6
 * as published by the Free Software Foundation.
7
7
 *
8
8
 * This program is distributed in the hope that it will be useful,
10
10
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
11
 * GNU General Public License for more details.
12
12
 *
13
 
 * You should have received a copy of the GNU Lesser General Public License
 
13
 * You should have received a copy of the GNU General Public License
14
14
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
15
15
 *
16
16
 * Authored by: Alan Griffiths <alan@octopull.co.uk>
26
26
 
27
27
namespace mir
28
28
{
 
29
 
 
30
class MainLoop;
 
31
 
29
32
namespace graphics
30
33
{
31
34
 
40
43
 
41
44
    virtual std::shared_ptr<DisplayConfiguration> configuration() = 0;
42
45
 
 
46
    virtual void register_pause_resume_handlers(
 
47
        MainLoop& main_loop,
 
48
        std::function<void()> const& pause_handler,
 
49
        std::function<void()> const& resume_handler) = 0;
 
50
 
 
51
    virtual void pause() = 0;
 
52
    virtual void resume() = 0;
 
53
 
43
54
protected:
44
55
    Display() = default;
45
56
    ~Display() = default;