2 * Copyright © 2010-2011 Intel Corporation
3 * Copyright © 2008-2011 Kristian Høgsberg
4 * Copyright © 2013 TOYOTA MOTOR CORPORATION.
6 * Permission to use, copy, modify, distribute, and sell this software and
7 * its documentation for any purpose is hereby granted without fee, provided
8 * that the above copyright notice appear in all copies and that both that
9 * copyright notice and this permission notice appear in supporting
10 * documentation, and that the name of the copyright holders not be used in
11 * advertising or publicity pertaining to distribution of the software
12 * without specific, written prior permission. The copyright holders make
13 * no representations about the suitability of this software for any
14 * purpose. It is provided "as is" without express or implied warranty.
16 * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
17 * SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
18 * FITNESS, IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY
19 * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER
20 * RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF
21 * CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
22 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
25 * @brief Public functions in ico_ivi_shell Weston plugin
30 #ifndef _ICO_IVI_SHELL_H_
31 #define _ICO_IVI_SHELL_H_
36 enum shell_surface_type {
38 SHELL_SURFACE_TOPLEVEL,
39 SHELL_SURFACE_TRANSIENT,
40 SHELL_SURFACE_FULLSCREEN,
41 SHELL_SURFACE_MAXIMIZED,
43 SHELL_SURFACE_XWAYLAND
46 /* Prototype for get/set function */
47 struct weston_layer *ico_ivi_shell_weston_layer(void);
48 void ico_ivi_shell_set_toplevel(struct shell_surface *shsurf);
49 int ico_ivi_shell_get_surfacetype(struct shell_surface *shsurf);
50 void ico_ivi_shell_set_surface_type(struct shell_surface *shsurf);
51 void ico_ivi_shell_send_configure(struct weston_surface *surface,
52 const uint32_t edges, const int width, const int height);
53 void ico_ivi_shell_startup(void *shell);
55 /* Prototypr for hook routine */
56 void ico_ivi_shell_hook_bind(void (*hook_bind)(struct wl_client *client, void *shell));
57 void ico_ivi_shell_hook_unbind(void (*hook_unbind)(struct wl_client *client));
58 void ico_ivi_shell_hook_create(void (*hook_create)(struct wl_client *client,
59 struct wl_resource *resource, struct weston_surface *surface,
60 struct shell_surface *shsurf));
61 void ico_ivi_shell_hook_destroy(void (*hook_destroy)(struct weston_surface *surface));
62 void ico_ivi_shell_hook_map(void (*hook_map)(struct weston_surface *surface,
63 int32_t *width, int32_t *height, int32_t *sx, int32_t *sy));
64 void ico_ivi_shell_hook_configure(void (*hook_configure)(struct weston_surface *surface));
65 void ico_ivi_shell_hook_select(void (*hook_select)(struct weston_surface *surface));
66 void ico_ivi_shell_hook_title(void (*hook_title)(struct weston_surface *surface,
68 void ico_ivi_shell_hook_move(void (*hook_move)(struct weston_surface *surface,
71 #endif /*_ICO_IVI_SHELL_H_*/