Piano / inc / view /

window.h

  1. /*
  2. * Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the License);
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16.  
  17. #ifndef __WINDOW_OBJ_H__
  18. #define __WINDOW_OBJ_H__
  19.  
  20. #include <Evas.h>
  21. #include <Elementary.h>
  22.  
  23. typedef struct
  24. {
  25. Evas_Object *win;
  26. Evas_Object *conform;
  27. Evas_Object *layout;
  28. Evas_Object *bg;
  29. Elm_Theme *theme;
  30. }window_obj;
  31.  
  32. /**
  33. * @brief Create application main window
  34. * @return window on success, otherwise NULL
  35. */
  36. window_obj *win_create();
  37.  
  38. /**
  39. * @brief Destroy application main window
  40. * @param[in] win application window
  41. */
  42. void win_lower(window_obj *win);
  43.  
  44. /**
  45. * @brief Lower application window to hide application without exiting
  46. * @param[in] win application window
  47. */
  48. void win_destroy(window_obj *win);
  49.  
  50. #endif /* __WINDOW_OBJ_H__ */