Developer

API Reference

MoverDesc

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 mover class object that implements the transition interface. It extends the base transition descriptor, adding fields specific to mover transitions -- specifically, fields that define the start and end coordinates for the movement of the object wrapped by the mover. To illustrate, an object could be moved from its present location to the origin of the display by specifying the object's current location as the 'start' coordinate, then specifying the origin of the object's root container as the 'end' coordinate. Upon triggering the transition effect, the object would then follow a path that would see it visually "move" across the screen from its current position to the upper left hand corner of the display.
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 mover.
    
  • piContainer:  Pointer to the XY container object that will manage the movement of
                     the object wrapped by the mover.  The coordinates defined by the
                     "start" and "end" fields are defined relative to the coordinates of
                     piContainer.
    
  • start:        This field contains the starting (x, y) coordinates for the object
                     to be moved, relative to the container specified by piContainer.
    
  • end:          This field contains the ending (x, y) coordinates for the object
                     to be moved, relative to the container specified by piContainer.
Definition
   typedef struct MoverDesc {
      TransitionDesc   base;
      IXYContainer    *piContainer;
      struct {
         int16 x;
         int16 y;
      } start;
      struct {
         int16 x;
         int16 y;
      } end;
   }
Comment
None
  • Follow