Crash Fix: Don't call indicator APIs for ARTIC device profile
[apps/native/menu-screen.git] / inc / page.h
1 /*
2  * MENU-SCREEN
3  *
4  * Copyright (c) 2009-2015 Samsung Electronics Co., Ltd All Rights Reserved
5  *
6  * Contact: Jin Yoon <jinny.yoon@samsung.com>
7  *          Junkyu Han <junkyu.han@samsung.com>
8
9  * Licensed under the Apache License, Version 2.0 (the "License");
10  * you may not use this file except in compliance with the License.
11  * You may obtain a copy of the License at
12  *
13  * http://www.apache.org/licenses/LICENSE-2.0
14  *
15  * Unless required by applicable law or agreed to in writing, software
16  * distributed under the License is distributed on an "AS IS" BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
20  *
21  */
22
23 #ifndef __MENU_SCREEN_PAGE_H__
24 #define __MENU_SCREEN_PAGE_H__
25
26 #include <Evas.h>
27 #include "util.h"
28 #include "list.h"
29
30 extern void page_mark_dirty(Evas_Object *page);
31 extern void page_clean_dirty(Evas_Object *page);
32 extern void page_unmark_dirty(Evas_Object *page);
33 extern int page_is_dirty(Evas_Object *page);
34
35 extern Evas_Object *page_get_item_at(Evas_Object *menu, unsigned int idx);
36
37 extern menu_screen_error_e page_unpack_item(Evas_Object *page, Evas_Object *item);
38 extern Evas_Object *page_unpack_item_at(Evas_Object *page, int idx);
39
40 extern void page_pack_item(Evas_Object *menu, int idx, Evas_Object *item);
41 extern void page_set_item(Evas_Object *page, int idx, Evas_Object *item);
42
43 extern unsigned int page_count_item(Evas_Object *page);
44
45 extern Evas_Object *page_create(Evas_Object *scroller, int idx, int rotate);
46 extern void page_destroy(Evas_Object *scroller, Evas_Object *page);
47
48 extern int page_find_empty_near(Evas_Object *menu_edje, int pivot);
49 extern int page_find_first_empty(Evas_Object *page, int pivot);
50 extern void page_trim_items(Evas_Object *page);
51
52 #endif //__MENU_SCREEN_PAGE_H__
53 // End of a file
54