C4 Engine Terathon Software C4 Engine API Documentation

• Interface Manager

API Links
Developer Links

class ScrollWidget

Defined in:  C4Widgets.h
The ScrollWidget class represents an interface widget that displays a scroll bar.
Definition

class ScrollWidget : public RenderableWidget

Constructor

ScrollWidget(const Vector2D& size);

Parameters
size The size of the scroll bar, in pixels.
Description
The ScrollWidget class displays a scroll bar.

The default widget color corresponds to the kWidgetColorBackground color type and determines the interior color of the scroll bar. The kWidgetColorButton color type is also supported, and it controls the color of the up, down, and indicator buttons.
Base Classes
RenderableWidget All rendered interface widgets are subclasses of RenderableWidget.