Ubuntu Platform API  2.9.0
A library helping with tight integration into the Ubuntu platform
window_properties.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_PROPERTIES_H_
26 #define UBUNTU_APPLICATION_UI_WINDOW_PROPERTIES_H_
27 
28 #include <ubuntu/visibility.h>
29 
31 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
36  typedef enum {
46 
47  // Deprecated! Use UAUiWindowEventCb instead
48  typedef void (*input_event_cb)(void* ctx, const Event* ev);
50 
51  typedef void (*event_cb)(void* ctx, const WindowEvent* ev);
53 
54  typedef void UAUiWindowProperties;
55 
56  __attribute__((__deprecated__("Use u_application_instance_get_mir_connection and the mir client library")))
57  UBUNTU_DLL_PUBLIC UAUiWindowProperties*
58  ua_ui_window_properties_new_for_normal_window();
59 
60  __attribute__((__deprecated__("Use u_application_instance_get_mir_connection and the mir client library")))
62  ua_ui_window_properties_destroy(
63  UAUiWindowProperties *properties);
64 
65  __attribute__((__deprecated__("Use u_application_instance_get_mir_connection and the mir client library")))
67  ua_ui_window_properties_set_titlen(
68  UAUiWindowProperties *properties,
69  const char *title,
70  size_t size);
71 
72  __attribute__((__deprecated__("Use u_application_instance_get_mir_connection and the mir client library")))
73  UBUNTU_DLL_PUBLIC const char*
74  ua_ui_window_properties_get_title(
75  UAUiWindowProperties *properties);
76 
77  __attribute__((__deprecated__("Use u_application_instance_get_mir_connection and the mir client library")))
79  ua_ui_window_properties_set_role(
80  UAUiWindowProperties *properties,
82 
83  __attribute__((__deprecated__("Use u_application_instance_get_mir_connection and the mir client library")))
85  ua_ui_window_properties_get_role(
86  UAUiWindowProperties *properties);
87 
88  // Deprecated! Use ua_ui_window_properties_set_event_cb_and_ctx instead.
89  __attribute__((__deprecated__("Use u_application_instance_get_mir_connection and the mir client library")))
91  ua_ui_window_properties_set_input_cb_and_ctx(
92  UAUiWindowProperties *properties,
93  UAUiWindowInputEventCb cb,
94  void *ctx);
95 
97  __attribute__((__deprecated__("Use u_application_instance_get_mir_connection and the mir client library")))
98  ua_ui_window_properties_set_event_cb_and_ctx(
99  UAUiWindowProperties *properties,
100  UAUiWindowEventCb cb,
101  void *ctx);
102 
103  UBUNTU_DLL_PUBLIC void
104  __attribute__((__deprecated__("Use u_application_instance_get_mir_connection and the mir client library")))
105  ua_ui_window_properties_set_dimensions(
106  UAUiWindowProperties *properties,
107  uint32_t width,
108  uint32_t height);
109 
110 #ifdef __cplusplus
111 }
112 #endif
113 
114 #endif /* UBUNTU_APPLICATION_UI_WINDOW_PROPERTIES_H_ */
void(* input_event_cb)(void *ctx, const Event *ev)
const char * title
__attribute__((__deprecated__("Use u_application_instance_get_mir_connection and the mir client library"))) UBUNTU_DLL_PUBLIC UAUiWindowProperties *ua_ui_window_properties_new_for_normal_window()
UBUNTU_DLL_PUBLIC void uint32_t uint32_t height
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...
const char size_t size
UAUiWindowRole role
void UAUiWindowProperties
UBUNTU_DLL_PUBLIC void uint32_t width
event_cb UAUiWindowEventCb
UAUiWindowInputEventCb void * ctx
input_event_cb UAUiWindowInputEventCb
UAUiWindowRole
void(* event_cb)(void *ctx, const WindowEvent *ev)
UAUiWindowInputEventCb cb
#define UBUNTU_DLL_PUBLIC
Definition: visibility.h:26
UAUiWindowProperties * properties
Definition: window.h:52