merge with master
[apps/home/mobileprint.git] / mobileprint / smsc / include / smsc_position.h
1 #ifndef _SMSC_POSITION_H_INCLUDED_
2 #define _SMSC_POSITION_H_INCLUDED_
3
4 #include <paper_size.h>
5
6 struct smsc_position {
7         int is_configured;
8         struct size_px available_size;
9         struct size_px page_size_px;
10         int page_space;
11         int pages_count;
12         int offset;
13
14         int position_update_event_type;
15 };
16
17
18 struct smsc_position_event {
19         int is_ok; /* STUB */
20 };
21
22
23 int init_smsc_position(struct smsc_position *position);
24 int set_smsc_position_settings(struct smsc_position *position, int pages_count,
25                 const struct size_px *available_size_px,
26                 const struct size_pts *page_size);
27 int get_smsc_position_all_width(const struct smsc_position *position);
28 int get_smsc_position_cur_page(const struct smsc_position *position);
29 int *get_smsc_position_visible_pages(const struct smsc_position *position);
30 int get_smsc_position_page(const struct smsc_position *position,
31                 int page, int *is_ok);
32 int get_smsc_position_cur_page_center_xdiff(
33                 const struct smsc_position *position, int *is_ok);
34 int move_smsc_position(struct smsc_position *position, int xdiff);
35 int set_smsc_position(struct smsc_position *position, int offset);
36
37
38 #endif /* _SMSC_POSITION_H_INCLUDED_ */
39