bbc3afa18aaf9f7ff0600b02dfa85ddf1dac0847
[profile/ivi/ico-uxf-homescreen.git] / src / statusbar / CicoCommonWindow.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 //==========================================================================
11 /**
12  *  @file   CicoCommonWindow.h
13  *
14  *  @brief  This file is definition of CicoCommonWindow class
15  */
16 //==========================================================================
17 #ifndef __CICO_COMMON_WINDOW_H__
18 #define __CICO_COMMON_WINDOW_H__
19
20 #include <Elementary.h>
21 #include <Ecore.h>
22 #include <Evas.h>
23 #include <list>
24
25 //==========================================================================
26 /**
27  *  @brief  This class provide the common window interfaces
28  */
29 //==========================================================================
30 class CicoCommonWindow
31 {
32 public:
33     // default constructor
34     CicoCommonWindow();
35
36     // destructor
37     virtual ~CicoCommonWindow();
38
39     // terminate the window
40     virtual bool Terminate(void);
41
42     // show the window
43     virtual void Show(void);
44
45     // hide the window
46     virtual void Hide(void);
47
48     // set position of the window
49     virtual void SetPos(int x, int y);
50
51     // set size of the window
52     virtual void SetSize(int w, int h);
53
54 protected:
55
56     Ecore_Evas *window_;        /// main window
57     Evas_Object *windowobj_;    /// background
58     int posx_;                  /// position x
59     int posy_;                  /// position y
60     int width_;                 /// window width
61     int height_;                /// window height
62 };
63 #endif  // __CICO_COMMON_WINDOW_H__
64 // vim: set expandtab ts=4 sw=4: