diff options
Diffstat (limited to 'inc/grid.h')
-rwxr-xr-x | inc/grid.h | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/inc/grid.h b/inc/grid.h new file mode 100755 index 0000000..bc491a4 --- /dev/null +++ b/inc/grid.h @@ -0,0 +1,76 @@ +/* + * Copyright (c) 2020 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 __TIZEN_SHARE_PANEL_GRID_H__ +#define __TIZEN_SHARE_PANEL_GRID_H__ + +#include <Elementary.h> + +/** + * @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__ */ |