1 #ifndef _SMSC_POSITION_H_INCLUDED_
2 #define _SMSC_POSITION_H_INCLUDED_
4 #include <paper_size.h>
8 struct size_px available_size;
9 struct size_px page_size_px;
14 int position_update_event_type;
18 struct smsc_position_event {
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);
38 #endif /* _SMSC_POSITION_H_INCLUDED_ */