WebRadioApp  0.1
_EffectsTransition.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 _EffectsTransition_H
28 #define _EffectsTransition_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 Effects::Fader */
46 #ifndef _EffectsFader_
48 #define _EffectsFader_
49 #endif
50 
51 /* Forward declaration of the class Effects::Transition */
52 #ifndef _EffectsTransition_
53  EW_DECLARE_CLASS( EffectsTransition )
54 #define _EffectsTransition_
55 #endif
56 
57 
58 /* The class Effects::Transition provides the infrastructure to implement sophisticated
59  transitions for fading-in/out GUI components. At the runtime, you associate instances
60  of the desired transition classes with the affected GUI component and determine
61  so the desired animations to perform when the component is presented, dismissed
62  or when the user switches between components forth and back. For more see the
63  methods Core::Group.PresentDialog(), Core::Group.DismissDialog() and Core::Group.SwitchToDialog().
64  The infrastructure consists of:
65  - The method @CreatePresentFader(), which has the job to create and configure
66  a fader (an instance of a class descending from Effects::Fader class) to perform
67  the desired present (fade-in) transition.
68  - The method @CreateDismissFader(), which has the job to create and configure
69  a fader (an instance of a class descending from Effects::Fader class) to perform
70  the desired dismiss (fade-out) transition.
71  - The method @CreateOverlayFader(), which has the job to create and configure
72  a fader (an instance of a class descending from Effects::Fader class) to perform
73  the desired overlay (temporarily fade-out) transition.
74  - The method @CreateRestoreFader(), which has the job to create and configure
75  a fader (an instance of a class descending from Effects::Fader class) to perform
76  the desired restore (fade-in) transition after the preceding overlay transition.
77  The class Effects::Transition and all classes descending from it can be considered
78  as kind of factories to conveniently create and configure often used fader objects.
79  The default implementation of Effects::Transition does nothing. Derived classes
80  has to override and implement at least the both methods @CreatePresentFader()
81  and @CreateDismissFader(). */
82 EW_DEFINE_FIELDS( EffectsTransition, XObject )
83 EW_END_OF_FIELDS( EffectsTransition )
84 
85 /* Virtual Method Table (VMT) for the class : 'Effects::Transition' */
86 EW_DEFINE_METHODS( EffectsTransition, XObject )
87  EW_METHOD( CreatePresentFader, EffectsFader )( EffectsTransition _this )
88  EW_METHOD( CreateDismissFader, EffectsFader )( EffectsTransition _this )
89  EW_METHOD( CreateRestoreFader, EffectsFader )( EffectsTransition _this )
90  EW_METHOD( CreateOverlayFader, EffectsFader )( EffectsTransition _this )
91 EW_END_OF_METHODS( EffectsTransition )
92 
93 /* The method CreatePresentFader() creates an object of one of the classes descending
94  from Effects::Fader and configures it with parameters according to the desired
95  fade-in (present) transition. Finally the prepared fader object is returned to
96  the caller. Typically, the created fader is used to show (to present) a GUI component
97  when the user navigates to it. The method has to be overridden and implemented
98  in derived classes. The actual implementation does nothing and returns 'null'. */
99 EffectsFader EffectsTransition_CreatePresentFader( EffectsTransition _this );
100 
101 /* Wrapper function for the virtual method : 'Effects::Transition.CreatePresentFader()' */
103 
104 /* The method CreateDismissFader() creates an object of one of the classes descending
105  from Effects::Fader and configures it with parameters according to the desired
106  fade-out (dismiss) transition. Finally the prepared fader object is returned
107  to the caller. Typically, the created fader is used to hide (to dismiss) a GUI
108  component when the user leaves it while he/she navigates in the GUI system. The
109  method has to be overridden and implemented in derived classes. The actual implementation
110  does nothing and returns 'null'. */
111 EffectsFader EffectsTransition_CreateDismissFader( EffectsTransition _this );
112 
113 /* Wrapper function for the virtual method : 'Effects::Transition.CreateDismissFader()' */
115 
116 /* The method CreateRestoreFader() creates an object of one of the classes descending
117  from Effects::Fader and configures it with parameters according to the desired
118  fade-in (restore) transition. Finally the prepared fader object is returned to
119  the caller. Typically, the created fader is used to show (to restore the original
120  visible state) of a GUI component, which has been obscured (overlaid) by other
121  GUI components during the user navigates in the GUI system. The method has to
122  be overridden and implemented in derived classes. The actual implementation of
123  this method redirects the operation to the method @CreatePresentFader(). */
124 EffectsFader EffectsTransition_CreateRestoreFader( EffectsTransition _this );
125 
126 /* Wrapper function for the virtual method : 'Effects::Transition.CreateRestoreFader()' */
128 
129 /* The method CreateOverlayFader() creates an object of one of the classes descending
130  from Effects::Fader and configures it with parameters according to the desired
131  fade-out (overlay) transition. Finally the prepared fader object is returned
132  to the caller. Typically, the created fader is used to temporarily hide (to overlay)
133  a GUI component when the user navigates a deeper level in the GUI system. The
134  method has to be overridden and implemented in derived classes. The actual implementation
135  of this method redirects the operation to the method @CreateDismissFader(). */
136 EffectsFader EffectsTransition_CreateOverlayFader( EffectsTransition _this );
137 
138 /* Wrapper function for the virtual method : 'Effects::Transition.CreateOverlayFader()' */
140 
141 #ifdef __cplusplus
142  }
143 #endif
144 
145 #endif /* _EffectsTransition_H */
146 
147 /* Embedded Wizard */
EffectsTransition_CreatePresentFader
EffectsFader EffectsTransition_CreatePresentFader(EffectsTransition _this)
Definition: Effects.c:1922
ewrte.h
EffectsFader
EffectsFader(EffectsTransition _this) EW_METHOD(CreateRestoreFader
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
EW_DEFINE_METHODS
#define EW_DEFINE_METHODS(aClass, aSuperClass)
Definition: ewrte.h:524
EffectsTransition__CreateRestoreFader
EffectsFader EffectsTransition__CreateRestoreFader(void *_this)
Definition: Effects.c:1971
EffectsTransition__CreateOverlayFader
EffectsFader EffectsTransition__CreateOverlayFader(void *_this)
Definition: Effects.c:1989
EffectsTransition_CreateOverlayFader
EffectsFader EffectsTransition_CreateOverlayFader(EffectsTransition _this)
Definition: Effects.c:1983
EffectsTransition_CreateRestoreFader
EffectsFader EffectsTransition_CreateRestoreFader(EffectsTransition _this)
Definition: Effects.c:1965
EffectsTransition_CreateDismissFader
EffectsFader EffectsTransition_CreateDismissFader(EffectsTransition _this)
Definition: Effects.c:1943
EW_METHOD
EW_METHOD(CreatePresentFader, EffectsFader)(EffectsTransition _this) EW_METHOD(CreateDismissFader
EffectsTransition__CreateDismissFader
EffectsFader EffectsTransition__CreateDismissFader(void *_this)
Definition: Effects.c:1952
EW_END_OF_METHODS
#define EW_END_OF_METHODS(aClass)
Definition: ewrte.h:539
EffectsTransition__CreatePresentFader
EffectsFader EffectsTransition__CreatePresentFader(void *_this)
Definition: Effects.c:1931
EW_DEFINE_FIELDS
#define EW_DEFINE_FIELDS(aClass, aSuperClass)
Definition: ewrte.h:451