Developer

API Reference

FaderDesc

deprecated
Items marked as deprecated have been replaced by a more powerful, alternative feature. Deprecated interfaces include a reference to the replacement interface, which should be used for all new application development. Deprecated features are still supported for backward compatibility, but should be avoided when developing new applications.
Brew Release
Brew MP 1.0.2
Description
This data type is the object descriptor for fader class object that implements the transition interface. It extends the base transition descriptor, adding fields specific to fader transitions, defining the levels of transparency for the wrapped object at the start and of the visual fade effect. For example, a object wrapped in a fader could begin its fade out transition as mostly opaque, though partially transparent, then gradually fade to total invisibility.
Members
  • base:   The base transition descriptor, which identifies those fields that are 
               common to all transition decorators.  The "base" field will contain a 
               pointer to the widget that is wrapped by the fader.
    
  • start:  This field contains the transparency factor that will be applied to the 
               wrapped object at the beginning of its fade transition.  When the fade 
               transition begins, the object will be redrawn at this level of transparency, 
               then gradually fade until the 'end' transparency level is reached.  A value 
               of 0 for 'start' would produce a fully opaque object.  A value of 1 would 
               add a small degree of transparency to the widget, 2 a little more, 3 a little 
               more... up to 255 which would render the object completely transparent (i.e., 
               invisible!).
    
  • end:    This field contains the final transparency level for the object to be faded 
               at the conclusion of the fadeout effect.  The fade effect begins with a 
               transparency level of 'start', then gradually increases until the 'end' value 
               is reached.
Definition
   typedef struct FaderDesc {
      TransitionDesc  base;
      uint8           start;
      uint8           end;
   };
Comment
None
  • Follow