~ricmm/platform-api/add-location-service-api-take-2

« back to all changes in this revision

Viewing changes to src/mirserver/window_properties_mirserver_priv.h

  • Committer: Thomas Voß
  • Date: 2013-07-06 06:53:05 UTC
  • Revision ID: thomas.voss@canonical.com-20130706065305-88erq3gw3bf88rnr
 * Refactored the src folder
 * Added the location service API

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Copyright (C) 2013 Canonical Ltd
3
 
 *
4
 
 * This program is free software: you can redistribute it and/or modify
5
 
 * it under the terms of the GNU Lesser General Public License version 3 as
6
 
 * published by the Free Software Foundation.
7
 
 *
8
 
 * This program is distributed in the hope that it will be useful,
9
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
 
 * GNU Lesser General Public License for more details.
12
 
 *
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/>.
15
 
 *
16
 
 * Authored by: Robert Carr <robert.carr@canonical.com>
17
 
 */
18
 
 
19
 
#ifndef UBUNTU_APPLICATION_UI_WINDOW_PROPERTIES_MIRSERVER_PRIV_H_
20
 
#define UBUNTU_APPLICATION_UI_WINDOW_PROPERTIES_MIRSERVER_PRIV_H_
21
 
 
22
 
#include <ubuntu/application/ui/window.h>
23
 
 
24
 
#include <mir/shell/surface_creation_parameters.h>
25
 
#include <mir/geometry/pixel_format.h>
26
 
 
27
 
namespace ubuntu
28
 
{
29
 
namespace application
30
 
{
31
 
namespace mir
32
 
{
33
 
namespace server
34
 
{
35
 
 
36
 
class WindowProperties
37
 
{
38
 
public:
39
 
    WindowProperties();
40
 
    ~WindowProperties() = default;
41
 
 
42
 
    UAUiWindowProperties* as_u_window_properties();
43
 
    static WindowProperties* from_u_window_properties(UAUiWindowProperties* u_properties);
44
 
    
45
 
    void set_title(char const* title, size_t length);
46
 
    void set_input_cb_and_ctx(UAUiWindowInputEventCb cb, void* ctx);
47
 
    void set_pixel_format( ::mir::geometry::PixelFormat const& format);
48
 
    
49
 
    ::mir::shell::SurfaceCreationParameters const& surface_parameters() const;
50
 
    UAUiWindowInputEventCb input_cb() const;
51
 
    void* input_context() const;
52
 
    
53
 
protected:
54
 
    WindowProperties(WindowProperties const&) = delete;
55
 
    WindowProperties& operator=(WindowProperties const&) = delete;
56
 
 
57
 
private:
58
 
    ::mir::shell::SurfaceCreationParameters parameters;
59
 
 
60
 
    UAUiWindowInputEventCb cb;
61
 
    void *input_ctx;
62
 
};
63
 
 
64
 
}
65
 
}
66
 
}
67
 
}
68
 
 
69
 
#endif