c23cba96655065520afbe2e5193ad83ce8dbbd10
[profile/ivi/ico-uxf-weston-plugin.git] / src / ico_input_mgr.h
1 /*
2  * Copyright © 2013 TOYOTA MOTOR CORPORATION.
3  *
4  * Permission to use, copy, modify, distribute, and sell this software and
5  * its documentation for any purpose is hereby granted without fee, provided
6  * that the above copyright notice appear in all copies and that both that
7  * copyright notice and this permission notice appear in supporting
8  * documentation, and that the name of the copyright holders not be used in
9  * advertising or publicity pertaining to distribution of the software
10  * without specific, written prior permission.  The copyright holders make
11  * no representations about the suitability of this software for any
12  * purpose.  It is provided "as is" without express or implied warranty.
13  *
14  * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
15  * SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
16  * FITNESS, IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY
17  * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER
18  * RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF
19  * CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
20  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
21  */
22 /**
23  * @brief   Multi Input Manager header for Device Input Controller
24  *
25  * @date    Jul-26-2013
26  */
27
28 #ifndef _ICO_INPUT_MGR_H_
29 #define _ICO_INPUT_MGR_H_
30
31 /* Input Region struct for Haptic Device Controller */
32 struct ico_uifw_input_region    {
33     uint16_t    change;                 /* change method                        */
34                                         /*   ICO_INPUT_MGR_DEVICE_REGION_ADD    */
35                                         /*   ICO_INPUT_MGR_DEVICE_REGION_REMOVE */
36                                         /*   ICO_INPUT_MGR_DEVICE_REGION_REMOVEALL*/
37     uint16_t    node;                   /* display node                         */
38     uint32_t    surfaceid;              /* surface Id                           */
39     uint16_t    surface_x;              /* surface absolute X coordinate        */
40     uint16_t    surface_y;              /* surface absolute Y coordinate        */
41     uint16_t    x;                      /* input region relative X coordinate   */
42     uint16_t    y;                      /* input region relative Y coordinate   */
43     uint16_t    width;                  /* input region width                   */
44     uint16_t    height;                 /* input region height                  */
45     int16_t     hotspot_x;              /* hotspot of X relative coordinate     */
46     int16_t     hotspot_y;              /* hotspot of Y relative coordinate     */
47     uint16_t    cursor_x;               /* cursor region X coordinate           */
48     uint16_t    cursor_y;               /* cursor region Y coordinate           */
49     uint16_t    cursor_width;           /* cursor region width                  */
50     uint16_t    cursor_height;          /* cursor region height                 */
51     uint32_t    attr;                   /* input region attribute               */
52 };
53
54 #endif  /*_ICO_INPUT_MGR_H_*/
55