Piano / inc / view /

window.h

/*
 * Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
 *
 * Licensed under the Apache License, Version 2.0 (the License);
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef __WINDOW_OBJ_H__
#define __WINDOW_OBJ_H__

#include <Evas.h>
#include <Elementary.h>

typedef struct
{
	Evas_Object		*win;
	Evas_Object		*conform;
	Evas_Object		*layout;
	Evas_Object		*bg;
	Elm_Theme		*theme;
}window_obj;

/**
 * @brief Create application main window
 * @return window on success, otherwise NULL
 */
window_obj *win_create();

/**
 * @brief Destroy application main window
 * @param[in]	win		application window
 */
void win_lower(window_obj *win);

/**
 * @brief Lower application window to hide application without exiting
 * @param[in]	win		application window
 */
void win_destroy(window_obj *win);

#endif /* __WINDOW_OBJ_H__ */