WebRadioApp  0.1
_CoreCursorGrabEvent.h
Go to the documentation of this file.
1 /*******************************************************************************
2 *
3 * E M B E D D E D W I Z A R D P R O J E C T
4 *
5 * Copyright (c) TARA Systems GmbH
6 * written by Paul Banach and Manfred Schweyer
7 *
8 ********************************************************************************
9 *
10 * This file was generated automatically by Embedded Wizard Studio.
11 *
12 * Please do not make any modifications of this file! The modifications are lost
13 * when the file is generated again by Embedded Wizard Studio!
14 *
15 * The template of this heading text can be found in the file 'head.ewt' in the
16 * directory 'Platforms' of your Embedded Wizard installation directory. If you
17 * wish to adapt this text, please copy the template file 'head.ewt' into your
18 * project directory and edit the copy only. Please avoid any modifications of
19 * the original template file!
20 *
21 * Version : 10.00
22 * Profile : STM32H747
23 * Platform : STM.STM32.RGB565
24 *
25 *******************************************************************************/
26 
27 #ifndef _CoreCursorGrabEvent_H
28 #define _CoreCursorGrabEvent_H
29 
30 #ifdef __cplusplus
31  extern "C"
32  {
33 #endif
34 
35 #include "ewrte.h"
36 #if EW_RTE_VERSION != 0x000A0000
37  #error Wrong version of Embedded Wizard Runtime Environment.
38 #endif
39 
40 #include "ewgfx.h"
41 #if EW_GFX_VERSION != 0x000A0000
42  #error Wrong version of Embedded Wizard Graphics Engine.
43 #endif
44 
45 #include "_CoreEvent.h"
46 
47 /* Forward declaration of the class Core::CursorGrabEvent */
48 #ifndef _CoreCursorGrabEvent_
49  EW_DECLARE_CLASS( CoreCursorGrabEvent )
50 #define _CoreCursorGrabEvent_
51 #endif
52 
53 /* Forward declaration of the class Core::View */
54 #ifndef _CoreView_
55  EW_DECLARE_CLASS( CoreView )
56 #define _CoreView_
57 #endif
58 
59 
60 /* The class Core::CursorGrabEvent provides a specialized event object able to deliver
61  touch screen events associated with the beginning and the end of a cursor grab
62  cycle.
63  Each time the user clicks with the mouse cursor on the screen, hits it with a
64  pen or touches it with his finger, the Mosaic searches for the view, which is
65  lying at the touched screen position and willing to handle the user interaction.
66  This found view will become the target for all subsequent cursor events related
67  to this interaction. This relation is called the 'grab cycle'.
68  The event Core::CursorGrabEvent is used to notify all other views about the beginning
69  and the end of the grab cycle. With the event the views receive the information
70  where the user has touched the screen and which view has been selected as the
71  target.
72  In this manner, although not being the target of the cursor event, the view can
73  perform operations like to stop a running slide animation etc. */
74 EW_DEFINE_FIELDS( CoreCursorGrabEvent, CoreEvent )
75  EW_VARIABLE( Target, CoreView )
76  EW_VARIABLE( GlobalCurrentPos, XPoint )
77  EW_VARIABLE( StrikeCount, XInt32 )
78  EW_VARIABLE( Finger, XInt32 )
79  EW_VARIABLE( Down, XBool )
80  EW_VARIABLE( AutoDeflected, XBool )
81 EW_END_OF_FIELDS( CoreCursorGrabEvent )
82 
83 /* Virtual Method Table (VMT) for the class : 'Core::CursorGrabEvent' */
84 EW_DEFINE_METHODS( CoreCursorGrabEvent, CoreEvent )
85 EW_END_OF_METHODS( CoreCursorGrabEvent )
86 
87 /* The method InitializeUp() simplifies the initialization of this Core::CursorGrabEvent
88  object. This method stores the given parameters in the variables of this event
89  object, sets its variable @Down 'false' and returns this event object to the
90  caller. */
91 CoreCursorGrabEvent CoreCursorGrabEvent_InitializeUp( CoreCursorGrabEvent _this,
92  XInt32 aFinger, XInt32 aStrikeCount, XBool aAutoDeflected, CoreView aTarget, XPoint
93  aGlobalCurrentPos );
94 
95 /* Wrapper function for the non virtual method : 'Core::CursorGrabEvent.InitializeUp()' */
96 CoreCursorGrabEvent CoreCursorGrabEvent__InitializeUp( void* _this, XInt32 aFinger,
97  XInt32 aStrikeCount, XBool aAutoDeflected, CoreView aTarget, XPoint aGlobalCurrentPos );
98 
99 /* The following define announces the presence of the method Core::CursorGrabEvent.InitializeUp(). */
100 #define _CoreCursorGrabEvent__InitializeUp_
101 
102 /* The method InitializeDown() simplifies the initialization of this Core::CursorGrabEvent
103  object. This method stores the given parameters in the variables of this event
104  object, sets its variable @Down 'true' and returns this event object to the caller. */
105 CoreCursorGrabEvent CoreCursorGrabEvent_InitializeDown( CoreCursorGrabEvent _this,
106  XInt32 aFinger, XInt32 aStrikeCount, XBool aAutoDeflected, CoreView aTarget, XPoint
107  aGlobalCurrentPos );
108 
109 /* Wrapper function for the non virtual method : 'Core::CursorGrabEvent.InitializeDown()' */
110 CoreCursorGrabEvent CoreCursorGrabEvent__InitializeDown( void* _this, XInt32 aFinger,
111  XInt32 aStrikeCount, XBool aAutoDeflected, CoreView aTarget, XPoint aGlobalCurrentPos );
112 
113 /* The following define announces the presence of the method Core::CursorGrabEvent.InitializeDown(). */
114 #define _CoreCursorGrabEvent__InitializeDown_
115 
116 #ifdef __cplusplus
117  }
118 #endif
119 
120 #endif /* _CoreCursorGrabEvent_H */
121 
122 /* Embedded Wizard */
_CoreEvent.h
ewrte.h
EW_END_OF_FIELDS
#define EW_END_OF_FIELDS(aClass)
Definition: ewrte.h:460
EW_DECLARE_CLASS
#define EW_DECLARE_CLASS(aClass)
Definition: ewrte.h:393
EW_VARIABLE
#define EW_VARIABLE(aName, aType)
Definition: ewrte.h:464
ewgfx.h
CoreCursorGrabEvent__InitializeUp
CoreCursorGrabEvent CoreCursorGrabEvent__InitializeUp(void *_this, XInt32 aFinger, XInt32 aStrikeCount, XBool aAutoDeflected, CoreView aTarget, XPoint aGlobalCurrentPos)
Definition: Core.c:5320
XInt32
signed long XInt32
Definition: ewrte.h:1586
CoreCursorGrabEvent__InitializeDown
CoreCursorGrabEvent CoreCursorGrabEvent__InitializeDown(void *_this, XInt32 aFinger, XInt32 aStrikeCount, XBool aAutoDeflected, CoreView aTarget, XPoint aGlobalCurrentPos)
Definition: Core.c:5344
XBool
char XBool
Definition: ewrte.h:1592
EW_DEFINE_METHODS
#define EW_DEFINE_METHODS(aClass, aSuperClass)
Definition: ewrte.h:524
CoreCursorGrabEvent_InitializeDown
CoreCursorGrabEvent CoreCursorGrabEvent_InitializeDown(CoreCursorGrabEvent _this, XInt32 aFinger, XInt32 aStrikeCount, XBool aAutoDeflected, CoreView aTarget, XPoint aGlobalCurrentPos)
Definition: Core.c:5330
XPoint
Definition: ewrte.h:1616
CoreCursorGrabEvent_InitializeUp
CoreCursorGrabEvent CoreCursorGrabEvent_InitializeUp(CoreCursorGrabEvent _this, XInt32 aFinger, XInt32 aStrikeCount, XBool aAutoDeflected, CoreView aTarget, XPoint aGlobalCurrentPos)
Definition: Core.c:5306
EW_END_OF_METHODS
#define EW_END_OF_METHODS(aClass)
Definition: ewrte.h:539
EW_DEFINE_FIELDS
#define EW_DEFINE_FIELDS(aClass, aSuperClass)
Definition: ewrte.h:451