C4 Engine
C4 Engine API Documentation

class ChromaticityWidget

Defined in:  C4Widgets.h
The ChromaticityWidget class represents an interface widget that displays a chromaticity picking box.
Definition

class ChromaticityWidget final : public RectangleWidget

Constructor

ChromaticityWidget(const Vector2D& size, const ColorRGB& chromaticity);

Parameters
size The size of the chromaticity box, in pixels.
chromaticity The chromaticity that is initially displayed in the chromaticity box.
Description
The ChromaticityWidgett class displays a chromaticity selection box that displays a chromaticity picker dialog when clicked.

The default widget color corresponds to the kWidgetColorBorder color type and determines the color of the border.
Base Classes
RectangleWidget The chromaticity widget is rendered as a rectangular box with rounded corners.
Wiki Articles

Chromaticity Widget