Add spec file
[profile/mobile/apps/native/homescreen-efl.git] / inc / page_indicator.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 __PAGE_INDICATOR_H__
18 #define __PAGE_INDICATOR_H__
19
20 #include <app.h>
21 #include <Elementary.h>
22
23 #define PAGE_INDICATOR_MAX_PAGE_COUNT 7
24
25 typedef struct {
26         Evas_Object *scroller;
27         Evas_Object *box;
28         Evas_Object *unit[PAGE_INDICATOR_MAX_PAGE_COUNT];
29
30         int page_count;
31         int x;
32         int y;
33         int w;
34         int h;
35         int current_page;
36 } page_indicator_t;
37
38 page_indicator_t * page_indictor_create(Evas_Object *scroller);
39 void page_indicator_set_page_count(page_indicator_t *page_indicator, int count);
40 void page_indicator_scroller_resize(page_indicator_t *page_indicator, int width, int height);
41 void page_indicator_set_current_page(page_indicator_t *page_indicator, int page_number);
42 void page_indicator_show(page_indicator_t *page_indicator);
43 void page_indicator_hide(page_indicator_t *page_indicator);
44
45 #endif /* __PAGE_INDICATOR_H__ */