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

Developer

API Reference

AEECLSID_TRANSITION2_SCALER

Brew Release
Brew MP 1.0.2
See Also
- ITransition2 Interface - ITransitionMgr Interface - AEECLSID_Transition2_Resizer - Transition2Scaler_Init() - IWidget_SetScale()
Description
The scaler transition is a transition that modifies the scale of an object over time. Unlike the resizer transition which only modifies the extent of a widget, the scaler modifies the size of the target. For example, an application could wrap a scaler transition around an menu item, and have the selection grow when the user selects it. The scaler transition will gradually modify the scale of the target in a linear manner to reach the final desired size. For this transition to work properly, the target widget must support IPARM_SCALE. This is usually supported by images.
Instantiation
To create a scaler transition, an application would do the following: 1. Create the object that will be the target of the scaler transition 2. Call ISHELL_CreateInstance() with a class ID of AEECLSID_TRANSITION2_SCALER to retrieve a reference counted instance of the scaler transition. 3. Call Transition2Scaler_Init() to setup and initialize the scaler's custom properties, including the widget it is to wrap and the start/end x and y scales. 4. Call ITransitionMgr_Add() to add the transition to a manager.
>
Cleanup
This class will free itself if the reference count reaches zero.
Default Interface Name
Other Interfaces