bug fix: TIVI-1997, TIVI-2161, An action is inaccurate when the menu of HomeScreen...
[profile/ivi/ico-uxf-homescreen.git] / src / homescreen / CicoHSWindow.h
1 /*
2  * Copyright (c) 2013, TOYOTA MOTOR CORPORATION.
3  *
4  * This program is licensed under the terms and conditions of the
5  * Apache License, version 2.0.  The full text of the Apache License is at
6  * http://www.apache.org/licenses/LICENSE-2.0
7  *
8  */
9 /**
10  * @brief   Window class
11  *
12  * @date    Aug-08-2013
13  */
14 #ifndef __CICO_HSWINDOW_H__
15 #define __CICO_HSWINDOW_H__
16
17 #include <stdio.h>
18 #include <pthread.h>
19 #include <libwebsockets.h>
20 #include <string.h>
21 #include <unistd.h>
22
23 #include <Eina.h>
24 #include <Evas.h>
25 #include <Ecore.h>
26 #include <Ecore_Wayland.h>
27 #include <Ecore_Evas.h>
28 #include <Edje.h>
29
30 #include "CicoHomeScreenCommon.h"
31
32 #define ICO_ORIENTATION_VERTICAL (1) 
33 #define ICO_ORIENTATION_HORIZONTAL (2)
34
35 #define ICO_MAX_TITLE_NAME_LEN 64
36
37 class CicoHSWindow
38 {
39   public:
40     CicoHSWindow(void);
41     virtual ~CicoHSWindow(void);
42     int CreateWindow(const char *title,int pos_x,int pos_y,int width,int height,int alpha);
43     void FreeWindow(void);
44     void WindowSetting(int pos_x,int pos_y,int width,int height,int alpha);
45     void ShowWindow(void);
46     void HideWindow(void);
47   private:
48
49   protected:
50     CicoHSWindow operator=(const CicoHSWindow&);
51     CicoHSWindow(const CicoHSWindow&);
52
53     char title[ICO_MAX_TITLE_NAME_LEN];
54     int pos_x;
55     int pos_y;
56     int width; /*width*/
57     int height; /*height*/
58     Ecore_Evas *window; /* ecore-evas object */
59
60 };
61 #endif
62 // vim:set expandtab ts=4 sw=4: