WebRadioApp  0.1
_EffectsShowHideTransition.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 _EffectsShowHideTransition_H
28 #define _EffectsShowHideTransition_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 "_EffectsTransition.h"
46 
47 /* Forward declaration of the class Effects::Fader */
48 #ifndef _EffectsFader_
50 #define _EffectsFader_
51 #endif
52 
53 /* Forward declaration of the class Effects::ShowHideTransition */
54 #ifndef _EffectsShowHideTransition_
55  EW_DECLARE_CLASS( EffectsShowHideTransition )
56 #define _EffectsShowHideTransition_
57 #endif
58 
59 
60 /* The class Effects::ShowHideTransition provides functionality for the most primitive
61  fade-in/out operation affecting the pure visibility of a given GUI component.
62  When using the transition for the fade-in operation, the GUI component is automatically
63  arranged to appear (per default centered) within the area of its owner component.
64  This transition is thus ideal wherever one GUI component should instantly appear
65  or disappear in context of another component without any animation effects.
66  Per default when the component is displayed, it is aligned in the center of its
67  owner. This can be modified by using the property @Alignment. Furthermore, with
68  the four properties @MarginLeft, @MarginRight, @MarginTop and @MarginBottom the
69  area to align the component within its owner can be limited.
70  Please note, with this transition the fade-in operation is performed just at
71  the beginning of all other transitions running simultaneously, in other words,
72  the GUI component appears during the start phase of the transition. In turn,
73  to fade-out the component, the operation is executed during the end phase of
74  the transition. This behavior can be modified by using the properties @ShowAtStart
75  and @HideAtStart. */
76 EW_DEFINE_FIELDS( EffectsShowHideTransition, EffectsTransition )
77  EW_PROPERTY( MarginBottom, XInt32 )
78  EW_PROPERTY( MarginRight, XInt32 )
79  EW_PROPERTY( MarginTop, XInt32 )
80  EW_PROPERTY( MarginLeft, XInt32 )
81  EW_PROPERTY( Alignment, XSet )
82  EW_PROPERTY( ShowAtStart, XBool )
83  EW_PROPERTY( HideAtStart, XBool )
84 EW_END_OF_FIELDS( EffectsShowHideTransition )
85 
86 /* Virtual Method Table (VMT) for the class : 'Effects::ShowHideTransition' */
87 EW_DEFINE_METHODS( EffectsShowHideTransition, EffectsTransition )
88  EW_METHOD( CreatePresentFader, EffectsFader )( EffectsShowHideTransition _this )
89  EW_METHOD( CreateDismissFader, EffectsFader )( EffectsShowHideTransition _this )
90  EW_METHOD( CreateRestoreFader, EffectsFader )( EffectsShowHideTransition _this )
91  EW_METHOD( CreateOverlayFader, EffectsFader )( EffectsShowHideTransition _this )
92 EW_END_OF_METHODS( EffectsShowHideTransition )
93 
94 /* The method CreatePresentFader() creates an object of one of the classes descending
95  from Effects::Fader and configures it with parameters according to the desired
96  fade-in (present) transition. Finally the prepared fader object is returned to
97  the caller. Typically, the created fader is used to show (to present) a GUI component
98  when the user navigates to it. The method has to be overridden and implemented
99  in derived classes. The actual implementation does nothing and returns 'null'. */
100 EffectsFader EffectsShowHideTransition_CreatePresentFader( EffectsShowHideTransition _this );
101 
102 /* The method CreateDismissFader() creates an object of one of the classes descending
103  from Effects::Fader and configures it with parameters according to the desired
104  fade-out (dismiss) transition. Finally the prepared fader object is returned
105  to the caller. Typically, the created fader is used to hide (to dismiss) a GUI
106  component when the user leaves it while he/she navigates in the GUI system. The
107  method has to be overridden and implemented in derived classes. The actual implementation
108  does nothing and returns 'null'. */
109 EffectsFader EffectsShowHideTransition_CreateDismissFader( EffectsShowHideTransition _this );
110 
111 /* The method CreateRestoreFader() creates an object of one of the classes descending
112  from Effects::Fader and configures it with parameters according to the desired
113  fade-in (restore) transition. Finally the prepared fader object is returned to
114  the caller. Typically, the created fader is used to show (to restore the original
115  visible state) of a GUI component, which has been obscured (overlaid) by other
116  GUI components during the user navigates in the GUI system. The method has to
117  be overridden and implemented in derived classes. The actual implementation of
118  this method redirects the operation to the method @CreatePresentFader(). */
119 EffectsFader EffectsShowHideTransition_CreateRestoreFader( EffectsShowHideTransition _this );
120 
121 /* The method CreateOverlayFader() creates an object of one of the classes descending
122  from Effects::Fader and configures it with parameters according to the desired
123  fade-out (overlay) transition. Finally the prepared fader object is returned
124  to the caller. Typically, the created fader is used to temporarily hide (to overlay)
125  a GUI component when the user navigates a deeper level in the GUI system. The
126  method has to be overridden and implemented in derived classes. The actual implementation
127  of this method redirects the operation to the method @CreateDismissFader(). */
128 EffectsFader EffectsShowHideTransition_CreateOverlayFader( EffectsShowHideTransition _this );
129 
130 /* 'C' function for method : 'Effects::ShowHideTransition.onInitializeIn()' */
131 void EffectsShowHideTransition_onInitializeIn( EffectsShowHideTransition _this,
132  XObject sender );
133 
134 #ifdef __cplusplus
135  }
136 #endif
137 
138 #endif /* _EffectsShowHideTransition_H */
139 
140 /* Embedded Wizard */
ewrte.h
EffectsShowHideTransition_CreateDismissFader
EffectsFader EffectsShowHideTransition_CreateDismissFader(EffectsShowHideTransition _this)
Definition: Effects.c:2067
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
ewgfx.h
_obj_XObject
Definition: ewrte.h:281
XInt32
signed long XInt32
Definition: ewrte.h:1586
XBool
char XBool
Definition: ewrte.h:1592
EW_DEFINE_METHODS
#define EW_DEFINE_METHODS(aClass, aSuperClass)
Definition: ewrte.h:524
EffectsFader
EffectsFader(EffectsShowHideTransition _this) EW_METHOD(CreateRestoreFader
XSet
unsigned long XSet
Definition: ewrte.h:1594
EW_METHOD
EW_METHOD(CreatePresentFader, EffectsFader)(EffectsShowHideTransition _this) EW_METHOD(CreateDismissFader
_EffectsTransition.h
EffectsShowHideTransition_CreateRestoreFader
EffectsFader EffectsShowHideTransition_CreateRestoreFader(EffectsShowHideTransition _this)
Definition: Effects.c:2085
EffectsShowHideTransition_CreatePresentFader
EffectsFader EffectsShowHideTransition_CreatePresentFader(EffectsShowHideTransition _this)
Definition: Effects.c:2047
sender
XRect CoreOutline aOutline XObject sender
Definition: _ApplicationRadioInterface.h:186
EW_PROPERTY
#define EW_PROPERTY(aName, aType)
Definition: ewrte.h:466
EffectsShowHideTransition_onInitializeIn
void EffectsShowHideTransition_onInitializeIn(EffectsShowHideTransition _this, XObject sender)
Definition: Effects.c:2112
EW_END_OF_METHODS
#define EW_END_OF_METHODS(aClass)
Definition: ewrte.h:539
EffectsShowHideTransition_CreateOverlayFader
EffectsFader EffectsShowHideTransition_CreateOverlayFader(EffectsShowHideTransition _this)
Definition: Effects.c:2100
EW_DEFINE_FIELDS
#define EW_DEFINE_FIELDS(aClass, aSuperClass)
Definition: ewrte.h:451