Ubuntu Platform API  2.9.0
A library helping with tight integration into the Ubuntu platform
window.h
Go to the documentation of this file.
1 /*
2  * Copyright © 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: Ricardo Mendoza <ricardo.mendoza@canonical.com>
17  * Thomas Voß <thomas.voss@canonical.com>
18  */
19 
20 /*
21  * DEPRECATED: In favor of u_application_instance_get_mir_connection
22  * and the mir client library
23  */
24 
25 #ifndef UBUNTU_APPLICATION_UI_WINDOW_H_
26 #define UBUNTU_APPLICATION_UI_WINDOW_H_
27 
28 #include <ubuntu/visibility.h>
29 
30 #include <ubuntu/status.h>
35 
36 #include <EGL/egl.h>
37 
38 #ifdef __cplusplus
39 extern "C" {
40 #endif
41 
42  typedef void UAUiWindow;
43  typedef int32_t UAUiWindowId;
44 
45  /*
46  Ownership of properties is given to the returned UAUiWindow
47  */
48  __attribute__((__deprecated__("Use u_application_instance_get_mir_connection and the mir client library")))
49  UBUNTU_DLL_PUBLIC UAUiWindow*
50  ua_ui_window_new_for_application_with_properties(
51  UApplicationInstance *instance,
53 
54  __attribute__((__deprecated__("Use u_application_instance_get_mir_connection and the mir client library")))
56  ua_ui_window_destroy(
57  UAUiWindow *window);
58 
59  __attribute__((__deprecated__("Use u_application_instance_get_mir_connection and the mir client library")))
60  UBUNTU_DLL_PUBLIC UAUiWindowId
61  ua_ui_window_get_id(
62  UAUiWindow *window);
63 
64  __attribute__((__deprecated__("Use u_application_instance_get_mir_connection and the mir client library")))
66  ua_ui_window_get_size(
67  UAUiWindow *window,
68  uint32_t *width,
69  uint32_t *height);
70 
71  __attribute__((__deprecated__("Use u_application_instance_get_mir_connection and the mir client library")))
73  ua_ui_window_move(
74  UAUiWindow *window,
75  uint32_t new_x,
76  uint32_t new_y);
77 
78  __attribute__((__deprecated__("Use u_application_instance_get_mir_connection and the mir client library")))
80  ua_ui_window_resize(
81  UAUiWindow *window,
82  uint32_t new_width,
83  uint32_t new_height);
84 
85  __attribute__((__deprecated__("Use u_application_instance_get_mir_connection and the mir client library")))
87  ua_ui_window_hide(
88  UAUiWindow *window);
89 
90  __attribute__((__deprecated__("Use u_application_instance_get_mir_connection and the mir client library")))
92  ua_ui_window_show(
93  UAUiWindow *window);
94 
95  // Deprecated. Prefer ua_ui_window_request_state.
96  __attribute__((__deprecated__("Use u_application_instance_get_mir_connection and the mir client library")))
98  ua_ui_window_request_fullscreen(
99  UAUiWindow *window);
100 
101  __attribute__((__deprecated__("Use u_application_instance_get_mir_connection and the mir client library")))
102  UBUNTU_DLL_PUBLIC EGLNativeWindowType
103  ua_ui_window_get_native_type(
104  UAUiWindow *window);
105 
106  __attribute__((__deprecated__("Use u_application_instance_get_mir_connection and the mir client library")))
108  ua_ui_window_is_focused(
109  UAUiWindow *window);
110 
111  __attribute__((__deprecated__("Use u_application_instance_get_mir_connection and the mir client library")))
112  UBUNTU_DLL_PUBLIC void
113  ua_ui_window_request_state(
114  UAUiWindow *window, UApplicationUiWindowState state);
115 
116  __attribute__((__deprecated__("Use u_application_instance_get_mir_connection and the mir client library")))
118  ua_ui_window_get_orientation(
119  UAUiWindow *window);
120 
121 #ifdef __cplusplus
122 }
123 #endif
124 
125 #endif /* UBUNTU_APPLICATION_UI_WINDOW_H_ */
uint32_t * width
Definition: window.h:68
__attribute__((__deprecated__("Use u_application_instance_get_mir_connection and the mir client library"))) UBUNTU_DLL_PUBLIC UAUiWindow *ua_ui_window_new_for_application_with_properties(UApplicationInstance *instance
void UAUiWindow
Definition: window.h:42
UBUNTU_DLL_PUBLIC MirConnection * u_application_instance_get_mir_connection(UApplicationInstance *instance)
Return the MirConnection associated with an application instance. Use of MirConnection with the mir c...
UbuntuStatus
Indicates the status of an operation.
Definition: status.h:26
uint32_t uint32_t new_height
Definition: window.h:82
UApplicationUiWindowState
Definition: window_state.h:27
void UAUiWindowProperties
void UApplicationInstance
Opaque type describing an application instance.An application instance encapsulates the event loop of...
Definition: instance.h:41
uint32_t uint32_t new_y
Definition: window.h:75
UApplicationUiWindowOrientation
uint32_t new_width
Definition: window.h:82
uint32_t uint32_t * height
Definition: window.h:68
#define UBUNTU_DLL_PUBLIC
Definition: visibility.h:26
UAUiWindowProperties * properties
Definition: window.h:52
uint32_t new_x
Definition: window.h:75
UApplicationUiWindowState state
Definition: window.h:114
int32_t UAUiWindowId
Definition: window.h:43