#include <ColorValidator.h>
Inherits AzQtComponents::ColorValidator.
Public Member Functions | |
| bool | isValid (const Internal::ColorController *controller) override |
| Returns true if the input color is valid, false otherwise. False will trigger adjust to be called. | |
| void | adjust (Internal::ColorController *controller) override |
| Returns color adjusted to something acceptable. | |
| void | warn () override |
| Must emit colorWarning when called. | |
| ColorValidator (QObject *parent=nullptr) | |
Public Member Functions inherited from AzQtComponents::ColorValidator | |
| ColorValidator (QObject *parent=nullptr) | |
| void | acceptColor () |
| Emits the colorAccepted signal. | |
Additional Inherited Members | |
Signals inherited from AzQtComponents::ColorValidator | |
| void | colorWarning (const QString &message) |
| void | colorAccepted () |
Validates the input colors are in not high dynamic range (i.e. that the colors are in the 0.0 - 1.0 range)
|
overridevirtual |
Returns color adjusted to something acceptable.
Implements AzQtComponents::ColorValidator.
|
overridevirtual |
Returns true if the input color is valid, false otherwise. False will trigger adjust to be called.
Implements AzQtComponents::ColorValidator.
|
overridevirtual |
Must emit colorWarning when called.
Implements AzQtComponents::ColorValidator.