Ubuntu Platform API  2.9.0
A library helping with tight integration into the Ubuntu platform
window_parent.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_PARENT_H_
26 #define UBUNTU_APPLICATION_UI_WINDOW_PARENT_H_
27 
28 #include <ubuntu/visibility.h>
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
34  typedef enum
35  {
41 
42  typedef struct UApplicationUiWindowParent;
43 
44  __attribute__((__deprecated__("Use u_application_instance_get_mir_connection and the mir client library")))
45  UBUNTU_DLL_PUBLIC UApplicationUiWindowParent*
46  u_application_ui_window_parent_new_with_window(
47  UApplicationUiWindow *window);
48 
49  __attribute__((__deprecated__("Use u_application_instance_get_mir_connection and the mir client library")))
50  UBUNTU_DLL_PUBLIC UApplicationUiWindowParent*
51  u_application_ui_window_parent_new_with_application(
52  UApplicationInstance *instance);
53 
54  __attribute__((__deprecated__("Use u_application_instance_get_mir_connection and the mir client library")))
55  UBUNTU_DLL_PUBLIC UApplicationUiWindowParent*
56  u_application_ui_window_parent_new_for_session();
57 
58  __attribute__((__deprecated__("Use u_application_instance_get_mir_connection and the mir client library")))
59  UBUNTU_DLL_PUBLIC UApplicationUiWindowParent*
60  u_application_ui_window_parent_new_for_system();
61 
62  __attribute__((__deprecated__("Use u_application_instance_get_mir_connection and the mir client library")))
64  u_application_ui_window_parent_destroy(
65  UApplicationUiWindowParent *parent);
66 
67  __attribute__((__deprecated__("Use u_application_instance_get_mir_connection and the mir client library")))
69  u_application_ui_window_parent_get_type(
70  UApplicationUiWindowParent *parent);
71 
72  __attribute__((__deprecated__("Use u_application_instance_get_mir_connection and the mir client library")))
73  UBUNTU_DLL_PUBLIC UApplicationUiWindow*
74  u_application_ui_window_parent_get_parent_window(
75  UApplicationUiWindowParent *parent);
76 
77 #ifdef __cplusplus
78 }
79 #endif
80 
81 #endif /* UBUNTU_APPLICATION_UI_WINDOW_PARENT_H_ */
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...
UApplicationUiWindowParentType
Definition: window_parent.h:34
__attribute__((__deprecated__("Use u_application_instance_get_mir_connection and the mir client library"))) UBUNTU_DLL_PUBLIC UApplicationUiWindowParent *u_application_ui_window_parent_new_with_window(UApplicationUiWindow *window)
void UApplicationInstance
Opaque type describing an application instance.An application instance encapsulates the event loop of...
Definition: instance.h:41
#define UBUNTU_DLL_PUBLIC
Definition: visibility.h:26