C4 Engine
C4 Engine API Documentation

class QuadWidget

Defined in:  C4Widgets.h
The QuadWidget class represents an interface widget that displays a filled quad.
Definition

class QuadWidget : public RenderableWidget

Constructor

QuadWidget(const Vector2D& size, const ColorRGBA& color = Color::white);

Parameters
size The size of the quad, in pixels.
color The initial color of the quad.
Description
The QuadWidget class displays a plain colored quad.

The default widget color controls the color of the quad. No specific color types are supported by the quad widget.
Base Classes
RenderableWidget All rendered interface widgets are subclasses of RenderableWidget.
See Also

LineWidget

BorderWidget

Wiki Articles

Quad Widget