File Manager / inc / view /
  1. /*
  2. * Copyright 2014 - 2015 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.  
  18. #ifndef _NAVI_PATH_WIDGET_H_
  19. #define _NAVI_PATH_WIDGET_H_
  20.  
  21. #include "view/view.h"
  22. #include <Elementary.h>
  23.  
  24. /**
  25. * @brief Navi path widget data
  26. */
  27. typedef struct _navi_path_widget {
  28. view_data *view; /**< Parent view */
  29. Evas_Object *navi_path_layout; /**< Widget main layout */
  30. Evas_Object *navi_path_table; /**< Widget table object */
  31. Evas_Object *navi_path_scroller; /**< Widget scroller object */
  32. Eina_List *labels_list; /**< List of labels */
  33. Eina_Bool was_down; /**< State if mouse down event was */
  34. int down_pos_x; /**< Coordinate x where mouse down event was */
  35. unsigned int down_time_ms; /**< Time when mouse down event was */
  36. unsigned int table_size; /**< Table size */
  37. } navi_path_widget;
  38.  
  39. /**
  40. *@brief Creates navi path widget
  41. *@param[in] view View object
  42. *@return Navi path widget on success or NULL.
  43. */
  44. navi_path_widget *navi_path_widget_add(view_data *view);
  45.  
  46. /**
  47. *@brief Set data to view
  48. *@param[in] widget Navi path widget object
  49. *@param[in] path_list Path list to view
  50. */
  51. void navi_path_widget_content_set(navi_path_widget *widget, Eina_List *path_list);
  52.  
  53.  
  54. #endif /* _NAVI_PATH_WIDGET_H_ */