API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

TRANSITION2SCROLLER_INIT()

Brew Release
Brew MP 1.0.2
See Also
Description
This function initializes the properties of a scroller transition. It sets the widget directly, and uses a descriptor to quickly initialize the custom parameters of the transition. An application using the scroller transition should init the scroller after creating an instance of the object.
Params
piTrans
[]:
Pointer to a Transition2_Resizer object
piWidget
[]:
Pointer to the widget that will be the target of scroller.
nVel
[]:
Specifies initial velocity of scroll.
nAccl
[]:
Specifies acceleration
nScrollDir
[]:
Specifies direction of scroll (TOUCHOBS_DIR_UP,TOUCHOBS_DIR_DOWN, TOUCHOBS_DIR_RIGHT or TOUCHOBS_DIR_LEFT)
Prototype
  •    int Transition2Scroller_Init(ITransition2 *piTrans, IWidget * piWidget,  
                                              int nVel,int nAccl,int nScrollDir);
    
Return
  • AEE_SUCCESS - if transition is initialized AEE_EFAILED - otherwise
Side Effect
  • None
Comments
None