/* * Copyright 2016 Samsung Electronics Co., Ltd * * Licensed under the Flora License, Version 1.1 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://floralicense.org/license/ * * 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 __TIZEN_SHARE_PANEL_GRID_H__ #define __TIZEN_SHARE_PANEL_GRID_H__ #include /** * @ingroup View * @defgroup Grid Grid * @addtogroup Grid * @{ */ /** * @brief Creates grid of applications that meet sharing requirements. * * @param page The page widget * * @return created grid */ extern Evas_Object *_grid_create(Evas_Object *page); /** * @brief Destroys the application grid. * * @param grid The grid to be destroyed */ extern void _grid_destroy(Evas_Object *grid); /** * @brief Appends item to the application grid. * * @param grid The grid widget * @param item_info The info structure of the item to be appended * * @return Elm_Object_Item of the appended item */ extern Elm_Object_Item *_grid_append_item(Evas_Object *grid, item_s *item_info); /** * @brief Removes item from the application grid. * * @param grid The grid where item is removed * @param item_info Info structure of the item to be removed */ extern void _grid_remove_item(Evas_Object *grid, item_s *item_info); /** * @brief Sends app control launch request related to the given item. * * @param item The info structure of the item related with app to be launched * * @return app_control_error_e type value */ int _app_control_launch(item_s *item); /** * @} */ #endif /* __TIZEN_SHARE_PANEL_GRID_H__ */