2 * Copyright (c) 2013, TOYOTA MOTOR CORPORATION.
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
14 #include "CicoHSWindow.h"
16 /*============================================================================*/
18 /*============================================================================*/
19 /*--------------------------------------------------------------------------*/
21 * @brief CicoHSWindow::CicoHSWindow
27 /*--------------------------------------------------------------------------*/
28 CicoHSWindow::CicoHSWindow(void)
32 /*--------------------------------------------------------------------------*/
34 * @brief CicoHSWindow::~CicoHSWindow
40 /*--------------------------------------------------------------------------*/
41 CicoHSWindow::~CicoHSWindow(void)
43 /* Do not somthing to do */
48 /*--------------------------------------------------------------------------*/
50 * @brief CicoHSWindow::CreateWindow
51 * create new window(ecore evas)
56 /*--------------------------------------------------------------------------*/
58 CicoHSWindow::CreateWindow(const char *title,int pos_x,int pos_y,int width,int height,int alpha)
64 this->height = height;
66 /* Make a new ecore_evas */
67 window = ecore_evas_new(NULL, pos_x, pos_y, width, height, "frame=0");
68 /* if do not creted new, enlightenment return NULL */
70 EINA_LOG_CRIT("CicoHSWindow::Initialize: could not create new_window.");
73 strncpy(this->title, title, ICO_MAX_TITLE_NAME_LEN);
74 ecore_evas_title_set(window, this->title);
76 /* alpha channel is enable*/
77 ecore_evas_alpha_set(window, alpha);
81 /*--------------------------------------------------------------------------*/
83 * @brief CicoHSWindow::FreeWindow
84 * Free the window(ecore evas)
89 /*--------------------------------------------------------------------------*/
91 CicoHSWindow::FreeWindow(void)
93 ecore_evas_free(window);
95 /*--------------------------------------------------------------------------*/
97 * @brief CicoHSWindow::WindowSetting
98 * setting to window(ecore evas)
103 /*--------------------------------------------------------------------------*/
105 CicoHSWindow::WindowSetting(int pos_x,int pos_y,int width,int height,int alpha)
110 this->height = height;
113 ecore_evas_move(window,pos_x,pos_y);
115 ecore_evas_resize(window, width, height);
116 /* alpha channel is enable*/
117 ecore_evas_alpha_set(window, alpha);
119 /*--------------------------------------------------------------------------*/
121 * @brief CicoHSWindow::ShowWindow
122 * showing window(ecore evas)
127 /*--------------------------------------------------------------------------*/
129 CicoHSWindow::ShowWindow(void)
132 ecore_evas_show(window);
135 /*--------------------------------------------------------------------------*/
137 * @brief CicoHSWindow::HideWindow
138 * hiding window(ecore evas)
143 /*--------------------------------------------------------------------------*/
145 CicoHSWindow::HideWindow(void)
148 ecore_evas_hide(window);
150 // vim:set expandtab ts=4 sw=4: