C4 Engine
C4 Engine API Documentation

class TickerSprocket

Defined in:  C4Sprockets.h
The TickerSprocket class causes a text widget's contents to scroll horizontally.
Definition

class TickerSprocket final : public Sprocket

Constructor

TickerSprocket(float start, float finish, float time);

Parameters
start The start offset of the text, in pixels.
finish The finish offset of the text, in pixels.
time The time over which the text is scrolled from start to finish, in milliseconds.
Description
The TickerSprocket class scrolls text in a text widget like a stock ticker. The text must be displayed as a single line.
Base Classes
Sprocket A TickerSprocket is a specific type of sprocket.