The source code moved from the SPIN with license changed to Flora 1.1
[apps/native/home/homescreen-efl.git] / inc / all_apps.h
1 /*
2  * Copyright 2012  Samsung Electronics Co., Ltd
3  *
4  * Licensed under the Flora License, Version 1.1 (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://floralicense.org/license/
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 ALL_APPS_H_
18 #define ALL_APPS_H_
19
20 #include <Elementary.h>
21 #include "app_grid.h"
22 #include "data_model.h"
23
24 /**
25  * @brief Creates all apps panel
26  * @param parent elm_layout widget with proper swallow part
27  * @return pointer to Evas_Object
28  */
29 Evas_Object *all_apps_create(Evas_Object *parent, void *data);
30
31 /**
32  * @brief Shows all_apps panel
33  */
34 void all_apps_show(void);
35
36 /**
37  * @brief [Hides all apps panel
38  */
39 void all_apps_hide(void);
40
41 /**
42  * @brief [brief description]
43  * @details [long description]
44  */
45 void all_apps_del(void);
46
47 /**
48  * @brief Sets view mode of all apps view
49  */
50 void all_apps_set_view_mode(homescreen_view_t view);
51
52 /**
53  * @brief Function blocks srolling of the all_apps panel.
54  * @details It is used during items reposition.
55  *
56  * @param is_blocked bool value, true if should be blocked
57  */
58 void all_apps_set_scrolling_blocked_state(bool is_blocked);
59
60 /**
61  * @brief detaches app icon from grid:
62  */
63 void all_apps_detach_from_grid(Elm_Object_Item *grid_item);
64
65 /**
66  * @brief attaches app icon to grid number grid_num:
67  */
68 Elm_Object_Item *all_apps_attach_to_grid(Evas_Object *icon, int grid_num);
69
70 /**
71  * @brief appends new page to the page scroller
72  */
73 bool all_apps_append_page(Tree_node_t *page_item);
74
75 /**
76  * @brief appends new page to the page scroller
77  */
78 void all_apps_remove_empty_pages(void);
79
80 /**
81  * @brief it simply updates all pages dynamic index display
82  */
83 void all_apps_update_dynamic_index_count(void);
84
85 #endif /* ALL_APPS_H_ */