/**
* @brief Structure for extra event information for livebox_content_event interface function.
*/
-#ifndef __PROVIDER_H
+#if !defined(__SCRIPT_EVENT_INFO)
+#define __SCRIPT_EVENT_INFO
+/**
+ * @brief
+ * Text signal & Content event uses this data structure.
+ */
struct event_info {
- struct {
- double x; /**< Coordinates of X axis */
- double y; /**< Coordinates of Y axis */
- int down; /**< 1 If the button is pressed. */
- } pointer; /**< Down/Up state and mouse position */
-
- struct {
- double sx; /**< Event source part's left top position, X axis */
- double sy; /**< Event source part's left top position, Y axis */
- double ex; /**< Event source part's right bottom position, X axis */
- double ey; /**< Event source part's right bottom position, Y axis */
- } part; /**< Geometry of event received part */
+ struct pointer {
+ double x; /**< X value of current mouse(touch) position */
+ double y; /**< Y value of current mouse(touch) position */
+ int down; /**< Is it pressed(1) or not(0) */
+ } pointer;
+
+ struct part {
+ double sx; /**< Pressed object's left top X */
+ double sy; /**< Pressed object's left top Y */
+ double ex; /**< Pressed object's right bottom X */
+ double ey; /**< Pressed object's right bottom Y */
+ } part;
};
#endif