1 /*************************************************************************** 2 * 3 * Copyright (c) 2015 Advanced Driver Information Technology. 4 * This code is developed by Advanced Driver Information Technology. 5 * Copyright of Advanced Driver Information Technology, Bosch, and DENSO. 6 * All rights reserved. 7 * 8 * 9 * Licensed under the Apache License, Version 2.0 (the "License"); 10 * you may not use this file except in compliance with the License. 11 * You may obtain a copy of the License at 12 * 13 * http://www.apache.org/licenses/LICENSE-2.0 14 * 15 * Unless required by applicable law or agreed to in writing, software 16 * distributed under the License is distributed on an "AS IS" BASIS, 17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 * See the License for the specific language governing permissions and 19 * limitations under the License. 20 * 21 ****************************************************************************/ 22 #ifndef MULTI_TOUCH_TEST_H 23 #define MULTI_TOUCH_TEST_H 24 25 #include "window.h" 26 #include "util.h" 27 28 struct touch_point_params 29 { 30 struct wl_list link; 31 int display; 32 int id; 33 float x, y; 34 float r; 35 int32_t n_vtx; 36 GLfloat *p_vertices; 37 GLfloat color[3]; 38 }; 39 40 struct touch_event_test_params 41 { 42 struct WaylandDisplay *p_display; 43 struct WaylandEglWindow *p_window; 44 struct wl_seat *p_seat; 45 struct wl_touch *p_touch; 46 struct wl_list touch_point_list; 47 struct event_log_array log_array; 48 char *p_logfile; 49 int n_fail; 50 51 struct { 52 GLuint pos; 53 GLuint loc_col; 54 GLuint loc_x; 55 GLuint loc_y; 56 GLuint loc_w; 57 GLuint loc_h; 58 } gl; 59 }; 60 61 #endif /* MULTI_TOUCH_TEST_H */ 62