1. Changed license year
[apps/home/mobileprint.git] / mobileprint / smsc / include / smsc_control.h
1 /*
2 *  Mobileprint
3 *
4 * Copyright 2013  Samsung Electronics Co., Ltd
5
6 * Licensed under the Flora License, Version 1.1 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9
10 * http://floralicense.org/license/
11
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 *
18 */
19
20 #ifndef _SMSC_CONTROL_H_INCLUDED_
21 #define _SMSC_CONTROL_H_INCLUDED_
22
23 #include <Ecore.h>
24
25 #include "smsc_position.h"
26
27
28 struct smsc_control {
29         int is_pressed;
30         int last_x;
31         //int last_y;
32         //int cur_x;
33         //int cur_y;
34         Ecore_Animator *move_anim;
35         int anim_xdiff;
36         int anim_initial_offset;
37
38         struct smsc_position *position;
39 };
40
41
42 int init_smsc_control(struct smsc_control *control,
43                 struct smsc_position *position);
44
45 int reset_smsc_control(struct smsc_control *control);
46 int smsc_control_begin_move(struct smsc_control *control, int xpos);
47 int smsc_control_process_move(struct smsc_control *control, int xpos);
48 int smsc_control_finish_move(struct smsc_control *control, int xpos);
49
50 #endif /* _SMSC_CONTROL_H_INCLUDED_ */
51