Ubuntu Platform API  2.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_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 #ifndef UBUNTU_APPLICATION_UI_WINDOW_PROPERTIES_H_
21 #define UBUNTU_APPLICATION_UI_WINDOW_PROPERTIES_H_
22 
23 #include <ubuntu/visibility.h>
24 
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
31  typedef enum {
41 
42 
43  typedef void (*input_event_cb)(void* ctx, const Event* ev);
45 
46  typedef void UAUiWindowProperties;
47 
48  UBUNTU_DLL_PUBLIC UAUiWindowProperties*
50 
53  UAUiWindowProperties *properties);
54 
57  UAUiWindowProperties *properties,
58  const char *title,
59  size_t size);
60 
61  UBUNTU_DLL_PUBLIC const char*
63  UAUiWindowProperties *properties);
64 
67  UAUiWindowProperties *properties,
68  UAUiWindowRole role);
69 
72  UAUiWindowProperties *properties);
73 
76  UAUiWindowProperties *properties,
77  UAUiWindowInputEventCb cb,
78  void *ctx);
79 
82  UAUiWindowProperties *properties,
83  uint32_t width,
84  uint32_t height);
85 
86 #ifdef __cplusplus
87 }
88 #endif
89 
90 #endif /* UBUNTU_APPLICATION_UI_WINDOW_PROPERTIES_H_ */
UBUNTU_DLL_PUBLIC void ua_ui_window_properties_set_dimensions(UAUiWindowProperties *properties, uint32_t width, uint32_t height)
UBUNTU_DLL_PUBLIC void ua_ui_window_properties_destroy(UAUiWindowProperties *properties)
UBUNTU_DLL_PUBLIC const char * ua_ui_window_properties_get_title(UAUiWindowProperties *properties)
UBUNTU_DLL_PUBLIC UAUiWindowProperties * ua_ui_window_properties_new_for_normal_window()
Definition: event.h:120
UBUNTU_DLL_PUBLIC UAUiWindowRole ua_ui_window_properties_get_role(UAUiWindowProperties *properties)
void(* input_event_cb)(void *ctx, const Event *ev)
void UAUiWindowProperties
UBUNTU_DLL_PUBLIC void ua_ui_window_properties_set_role(UAUiWindowProperties *properties, UAUiWindowRole role)
UBUNTU_DLL_PUBLIC void ua_ui_window_properties_set_titlen(UAUiWindowProperties *properties, const char *title, size_t size)
input_event_cb UAUiWindowInputEventCb
UAUiWindowRole
#define UBUNTU_DLL_PUBLIC
Definition: visibility.h:25
UBUNTU_DLL_PUBLIC void ua_ui_window_properties_set_input_cb_and_ctx(UAUiWindowProperties *properties, UAUiWindowInputEventCb cb, void *ctx)