Added rotation maps to velocity and direction images
[apps/native/gear-racing-controller.git] / inc / view / view_base.h
1 /*
2 * Copyright (c) 2018 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 VIEW_VIEW_BASE_H_
18 #define VIEW_VIEW_BASE_H_
19
20 #include "gear-racing-controller.h"
21
22 typedef enum _e_horizontal_align {
23         HORIZONTAL_ALIGN_LEFT,
24         HORIZONTAL_ALIGN_RIGHT,
25         HORIZONTAL_ALIGN_CENTER,
26 } e_horizontal_align;
27
28 typedef enum _e_veritcal_align {
29         VERTICAL_ALIGN_TOP,
30         VERTICAL_ALIGN_BOTTOM,
31         VERTICAL_ALIGN_CENTER
32 } e_vertical_align;
33
34
35 void view_base_get_resource(const char *edj_file_in, char *edj_path_out);
36 Evas_Object *view_base_create_button(Evas_Object *parent, char *part, char *text, Evas_Smart_Cb callback, void *data);
37 Evas_Object *view_base_create_layout(Evas_Object *parent, char *edj_file, char *group);
38 void view_base_set_position(Evas_Object *image, int pos_X, int pos_Y,
39                 e_horizontal_align horizontal_align, e_vertical_align vertical_align);
40 void view_base_set_angle(Evas_Object *image, float angle, float rotation_center_x, float rotation_center_y);
41
42 #endif /* VIEW_VIEW_BASE_H_ */