~mir-team/mir/trunk

« back to all changes in this revision

Viewing changes to include/shared/mir_toolkit/common.h

  • Committer: Tarmac
  • Author(s): Daniel van Vugt
  • Date: 2013-03-22 03:33:00 UTC
  • mfrom: (440.1.138 surface-types)
  • Revision ID: tarmac-20130322033300-qj6cjcvsqhl4mpaw
Add support for surface types (client API, protocol and server).

This work will also form the foundation of supporting surface states.

Approved by PS Jenkins bot, Alan Griffiths, Robert Ancell.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Simple definitions common to client and server.
 
3
 *
 
4
 * Copyright © 2013 Canonical Ltd.
 
5
 *
 
6
 * This program is free software: you can redistribute it and/or modify
 
7
 * it under the terms of the GNU Lesser General Public License version 3 as
 
8
 * published by the Free Software Foundation.
 
9
 *
 
10
 * This program is distributed in the hope that it will be useful,
 
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
 * GNU Lesser General Public License for more details.
 
14
 *
 
15
 * You should have received a copy of the GNU Lesser General Public License
 
16
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
17
 *
 
18
 * Author: Daniel van Vugt <daniel.van.vugt@canonical.com>
 
19
 */
 
20
 
 
21
#ifndef MIR_COMMON_H_
 
22
#define MIR_COMMON_H_
 
23
 
 
24
/* This is C code. Not C++. */
 
25
 
 
26
/*
 
27
 * Attributes of a surface that the client and server/shell may wish to
 
28
 * get or set over the wire.
 
29
 */
 
30
typedef enum MirSurfaceAttrib
 
31
{
 
32
    mir_surface_attrib_type,
 
33
    mir_surface_attrib_arraysize_
 
34
} MirSurfaceAttrib;
 
35
 
 
36
typedef enum MirSurfaceType
 
37
{
 
38
    mir_surface_type_normal,
 
39
    mir_surface_type_utility,
 
40
    mir_surface_type_dialog,
 
41
    mir_surface_type_overlay,
 
42
    mir_surface_type_freestyle,
 
43
    mir_surface_type_popover,
 
44
    mir_surface_type_arraysize_
 
45
} MirSurfaceType;
 
46
 
 
47
/* TODO: Surface states here */
 
48
 
 
49
#endif