Ubuntu Platform API  2.5.0
A library helping with tight integration into the Ubuntu platform
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules 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  // Deprecated! Use UAUiWindowEventCb instead
43  typedef void (*input_event_cb)(void* ctx, const Event* ev);
45 
46  typedef void (*event_cb)(void* ctx, const WindowEvent* ev);
48 
49  typedef void UAUiWindowProperties;
50 
51  UBUNTU_DLL_PUBLIC UAUiWindowProperties*
53 
56  UAUiWindowProperties *properties);
57 
60  UAUiWindowProperties *properties,
61  const char *title,
62  size_t size);
63 
64  UBUNTU_DLL_PUBLIC const char*
66  UAUiWindowProperties *properties);
67 
70  UAUiWindowProperties *properties,
71  UAUiWindowRole role);
72 
75  UAUiWindowProperties *properties);
76 
77  // Deprecated! Use ua_ui_window_properties_set_event_cb_and_ctx instead.
80  UAUiWindowProperties *properties,
81  UAUiWindowInputEventCb cb,
82  void *ctx);
83 
86  UAUiWindowProperties *properties,
87  UAUiWindowEventCb cb,
88  void *ctx);
89 
92  UAUiWindowProperties *properties,
93  uint32_t width,
94  uint32_t height);
95 
96 #ifdef __cplusplus
97 }
98 #endif
99 
100 #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_set_event_cb_and_ctx(UAUiWindowProperties *properties, UAUiWindowEventCb cb, void *ctx)
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()
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)
event_cb UAUiWindowEventCb
input_event_cb UAUiWindowInputEventCb
UAUiWindowRole
#define UBUNTU_DLL_PUBLIC
Definition: visibility.h:26
UBUNTU_DLL_PUBLIC void ua_ui_window_properties_set_input_cb_and_ctx(UAUiWindowProperties *properties, UAUiWindowInputEventCb cb, void *ctx)
void(* event_cb)(void *ctx, const WindowEvent *ev)