WebRadioApp  0.1
_EffectsBoolEffect.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 _EffectsBoolEffect_H
28 #define _EffectsBoolEffect_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 /* Forward declaration of the class Core::Timer */
46 #ifndef _CoreTimer_
47  EW_DECLARE_CLASS( CoreTimer )
48 #define _CoreTimer_
49 #endif
50 
51 /* Forward declaration of the class Effects::BoolEffect */
52 #ifndef _EffectsBoolEffect_
53  EW_DECLARE_CLASS( EffectsBoolEffect )
54 #define _EffectsBoolEffect_
55 #endif
56 
57 
58 /* The class Effects::BoolEffect provides an animation effect intended to toggle
59  a 'bool' value between two values determined by the properties @Value1 and @value2.
60  The effect can 'remote control' a 'bool' property which is referred by the @Outlet
61  property.
62  Beside the both end values, bool animation effects are determined by their duration.
63  The duration is primarily controlled by the value of the property @CycleDuration.
64  This is the time the effect will take for a single animation run. Whether and
65  how often the animation is repeated is stored in the property @NoOfCycles. In
66  this case the property @InterCycleDelay can determine an optional interval to
67  wait between two consecutive animation runs. Finally the property @InitialDelay
68  determines the interval to wait at the very beginning of the effect still before
69  the first animation run began.
70  When the effect is finished a signal is send to the slot method stored in the
71  @OnFinished property.
72  Whether the effect is running or not is controlled by its property @Enabled.
73  It can be used to start and stop the effect. The effect can also be controlled
74  by sending signals to its @StartEffect and @StopEffect slot methods. */
75 EW_DEFINE_FIELDS( EffectsBoolEffect, XObject )
76  EW_VARIABLE( timer, CoreTimer )
77  EW_VARIABLE( privateOnFinished, XSlot )
78  EW_PROPERTY( OnFinished, XSlot )
79  EW_PROPERTY( Outlet, XRef )
80  EW_VARIABLE( cycleCounter, XInt32 )
81  EW_VARIABLE( startTime, XUInt32 )
82  EW_PROPERTY( NoOfCycles, XInt32 )
83  EW_PROPERTY( CycleDuration, XInt32 )
84  EW_PROPERTY( InterCycleDelay, XInt32 )
85  EW_PROPERTY( InitialDelay, XInt32 )
86  EW_PROPERTY( Enabled, XBool )
87  EW_PROPERTY( Value1, XBool )
88  EW_PROPERTY( Value2, XBool )
89 EW_END_OF_FIELDS( EffectsBoolEffect )
90 
91 /* Virtual Method Table (VMT) for the class : 'Effects::BoolEffect' */
92 EW_DEFINE_METHODS( EffectsBoolEffect, XObject )
93 EW_END_OF_METHODS( EffectsBoolEffect )
94 
95 /* 'C' function for method : 'Effects::BoolEffect.timerSlot()' */
96 void EffectsBoolEffect_timerSlot( EffectsBoolEffect _this, XObject sender );
97 
98 /* 'C' function for method : 'Effects::BoolEffect.OnSetNoOfCycles()' */
99 void EffectsBoolEffect_OnSetNoOfCycles( EffectsBoolEffect _this, XInt32 value );
100 
101 /* 'C' function for method : 'Effects::BoolEffect.OnSetCycleDuration()' */
102 void EffectsBoolEffect_OnSetCycleDuration( EffectsBoolEffect _this, XInt32 value );
103 
104 /* 'C' function for method : 'Effects::BoolEffect.OnSetEnabled()' */
105 void EffectsBoolEffect_OnSetEnabled( EffectsBoolEffect _this, XBool value );
106 
107 /* The slot method 'StartEffect' re-starts the effect if a signal is sent to this
108  slot method. The effect will start from the beginning. */
109 void EffectsBoolEffect_StartEffect( EffectsBoolEffect _this, XObject sender );
110 
111 #ifdef __cplusplus
112  }
113 #endif
114 
115 #endif /* _EffectsBoolEffect_H */
116 
117 /* Embedded Wizard */
XRef
Definition: ewrte.h:2075
EffectsBoolEffect_OnSetNoOfCycles
void EffectsBoolEffect_OnSetNoOfCycles(EffectsBoolEffect _this, XInt32 value)
Definition: Effects.c:1309
ewrte.h
EffectsBoolEffect_timerSlot
void EffectsBoolEffect_timerSlot(EffectsBoolEffect _this, XObject sender)
Definition: Effects.c:1237
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
XSlot
Definition: ewrte.h:2114
EW_VARIABLE
#define EW_VARIABLE(aName, aType)
Definition: ewrte.h:464
ewgfx.h
_obj_XObject
Definition: ewrte.h:281
XInt32
signed long XInt32
Definition: ewrte.h:1586
value
XRect CoreOutline aOutline XPoint value
Definition: _ViewsWarpView.h:137
EffectsBoolEffect_OnSetEnabled
void EffectsBoolEffect_OnSetEnabled(EffectsBoolEffect _this, XBool value)
Definition: Effects.c:1327
XBool
char XBool
Definition: ewrte.h:1592
EW_DEFINE_METHODS
#define EW_DEFINE_METHODS(aClass, aSuperClass)
Definition: ewrte.h:524
EffectsBoolEffect_OnSetCycleDuration
void EffectsBoolEffect_OnSetCycleDuration(EffectsBoolEffect _this, XInt32 value)
Definition: Effects.c:1318
EffectsBoolEffect_StartEffect
void EffectsBoolEffect_StartEffect(EffectsBoolEffect _this, XObject sender)
Definition: Effects.c:1352
sender
XRect CoreOutline aOutline XObject sender
Definition: _ApplicationRadioInterface.h:186
EW_PROPERTY
#define EW_PROPERTY(aName, aType)
Definition: ewrte.h:466
XUInt32
unsigned long XUInt32
Definition: ewrte.h:1590
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