The source code moved from the SPIN with license changed to Flora 1.1
[apps/native/home/homescreen-efl.git] / inc / livebox / grid_item_resize.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 GRID_ITEM_RESIZE_H_
18 #define GRID_ITEM_RESIZE_H_
19
20 #include <Elementary.h>
21 #include <Evas.h>
22 #include <stdbool.h>
23
24 #include "../util.h"
25 #include "livebox_utils.h"
26 #include "../conf.h"
27
28 /**
29  * @brief Adds callbacks to livebox_container
30  * @param livebox_scroller scroller with livebox_container
31  * @param livebox_container Layout created with file: livebox_container.edj,
32  * with grid as its main part
33  * @return true on success
34  */
35 extern bool grid_item_init_resize_callbacks(Evas_Object *livebox_scroller,
36         Evas_Object *livebox_container);
37
38 /**
39  * @brief Set the resize sliders on @p page based on @p livebox geometry
40  */
41 extern void grid_item_set_resize_livebox_sliders(Evas_Object *livebox,
42         Evas_Object *page);
43
44 /**
45  * @brief Set the visibility of resize frame
46  * @param page Page containing the frame
47  * @param visible Visibility of the frame
48  */
49 extern void grid_item_set_resize_sliders_visibility(Evas_Object *page,
50         bool visible);
51
52 #endif /* GRID_ITEM_RESIZE_H_ */