[SDL_Tizen] Improve indicator functions
[platform/upstream/SDL.git] / src / video / tizen / SDL_tizenvideo.h
1 /*
2   Simple DirectMedia Layer
3   Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
4   Copyright 2015 Samsung Electronics co., Ltd. All Rights Reserved.
5
6   This software is provided 'as-is', without any express or implied
7   warranty.  In no event will the authors be held liable for any damages
8   arising from the use of this software.
9
10   Permission is granted to anyone to use this software for any purpose,
11   including commercial applications, and to alter it and redistribute it
12   freely, subject to the following restrictions:
13
14   1. The origin of this software must not be misrepresented; you must not
15      claim that you wrote the original software. If you use this software
16      in a product, an acknowledgment in the product documentation would be
17      appreciated but is not required.
18   2. Altered source versions must be plainly marked as such, and must not be
19      misrepresented as being the original software.
20   3. This notice may not be removed or altered from any source distribution.
21 */
22
23 #include "../../SDL_internal.h"
24
25 #ifndef _SDL_tizenvideo_h
26 #define _SDL_tizenvideo_h
27
28 #include "../SDL_sysvideo.h"
29
30 #include <EGL/egl.h>
31 #include <Ecore_Wayland.h>
32 #include <wayland-egl.h>
33
34 typedef struct Tizen_PreRotation_Data{
35     void *prerotation_dll_handle;
36     int (*wl_egl_window_get_capabilities) (struct wl_egl_window *egl_window);
37     void (*wl_egl_window_set_rotation) (struct wl_egl_window *egl_window, int rotation);
38 } Tizen_Prerotation_Data;
39
40 typedef struct {
41     struct wl_display *display;
42     Eina_Hash *windows;
43     Tizen_Prerotation_Data tizen_pre_rotation_data;
44
45     int indicator_mode;
46     int indicator_height;
47     int indicator_parent_id;
48
49     SDL_bool indicator_on;
50     SDL_bool indicator_visible;
51 } SDL_VideoData;
52
53 /* Initialization/Query functions */
54 int Tizen_VideoInit(_THIS);
55 void Tizen_GetDisplayModes(_THIS, SDL_VideoDisplay *sdl_display);
56 int Tizen_SetDisplayMode(_THIS, SDL_VideoDisplay *display, SDL_DisplayMode *mode);
57 void Tizen_VideoQuit(_THIS);
58
59 #endif /* _SDL_tizenvideo_h */
60
61 /* vi: set ts=4 sw=4 expandtab: */