C4 Engine
C4 Engine API Documentation

class ScaleSprocket

Defined in:  C4Sprockets.h
The ScaleSprocket class causes a widget to change scale.
Definition

class ScaleSprocket final : public Sprocket

Constructor

ScaleSprocket(const Vector2D& start, const Vector2D& finish, float time);

Parameters
start The start scale factor.
finish The finish scale factor.
time The time over which the widget is scaled from start to finish, in milliseconds.
Description
The ScaleSprocket class scales an image widget from the scale specified by the start parameter to the scale specified by the finish parameter over the time specified by the time parameter, where the scales represent multiples of the widget's original size.
Base Classes
Sprocket A ScaleSprocket is a specific type of sprocket.