2
* Copyright (C) 2013 Canonical Ltd
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.
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.
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/>.
16
* Authored by: Robert Carr <robert.carr@canonical.com>
19
#ifndef UBUNTU_APPLICATION_UI_WINDOW_PROPERTIES_MIRSERVER_PRIV_H_
20
#define UBUNTU_APPLICATION_UI_WINDOW_PROPERTIES_MIRSERVER_PRIV_H_
22
#include <ubuntu/application/ui/window.h>
24
#include <mir/shell/surface_creation_parameters.h>
25
#include <mir/geometry/pixel_format.h>
36
class WindowProperties
40
~WindowProperties() = default;
42
UAUiWindowProperties* as_u_window_properties();
43
static WindowProperties* from_u_window_properties(UAUiWindowProperties* u_properties);
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);
49
::mir::shell::SurfaceCreationParameters const& surface_parameters() const;
50
UAUiWindowInputEventCb input_cb() const;
51
void* input_context() const;
54
WindowProperties(WindowProperties const&) = delete;
55
WindowProperties& operator=(WindowProperties const&) = delete;
58
::mir::shell::SurfaceCreationParameters parameters;
60
UAUiWindowInputEventCb cb;