Ubuntu Platform API  1.0.0
A library helping with tight integration into the Ubuntu platform
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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 #ifndef UBUNTU_APPLICATION_UI_WINDOW_H_
21 #define UBUNTU_APPLICATION_UI_WINDOW_H_
22 
23 #include <ubuntu/visibility.h>
24 
25 #include <ubuntu/status.h>
28 
29 #include <EGL/egl.h>
30 
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34 
35  typedef void UAUiWindow;
36  typedef int32_t UAUiWindowId;
37 
38  UBUNTU_DLL_PUBLIC UAUiWindow*
40  UApplicationInstance *instance,
41  UAUiWindowProperties *properties);
42 
45  UAUiWindow *window);
46 
47  UBUNTU_DLL_PUBLIC UAUiWindowId
49  UAUiWindow *window);
50 
53  UAUiWindow *window,
54  uint32_t new_x,
55  uint32_t new_y);
56 
59  UAUiWindow *window,
60  uint32_t new_width,
61  uint32_t new_height);
62 
65  UAUiWindow *window);
66 
69  UAUiWindow *window);
70 
73  UAUiWindow *window);
74 
75  UBUNTU_DLL_PUBLIC EGLNativeWindowType
77  UAUiWindow *window);
78 
79 #ifdef __cplusplus
80 }
81 #endif
82 
83 #endif /* UBUNTU_APPLICATION_UI_WINDOW_H_ */