Open 3D Engine AzQtComponents API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AzQtComponents::HueSaturationValidator Class Reference

#include <ColorValidator.h>

Inherits AzQtComponents::ColorValidator.

Public Member Functions

 HueSaturationValidator (float defaultV, QObject *parent=nullptr)
 
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.
 
- Public Member Functions inherited from AzQtComponents::ColorValidator
 ColorValidator (QObject *parent=nullptr)
 
virtual bool isValid (const Internal::ColorController *controller)=0
 Returns true if the input color is valid, false otherwise. False will trigger adjust to be called.
 
virtual void adjust (Internal::ColorController *controller)=0
 Returns color adjusted to something acceptable.
 
virtual void warn ()=0
 Must emit colorWarning when called.
 
void acceptColor ()
 Emits the colorAccepted signal.
 

Additional Inherited Members

- Signals inherited from AzQtComponents::ColorValidator
void colorWarning (const QString &message)
 
void colorAccepted ()
 

Detailed Description

Validates the 'value' field of a color is set to the default, as it must be in HueSaturation mode

Member Function Documentation

◆ adjust()

void AzQtComponents::HueSaturationValidator::adjust ( Internal::ColorController *  controller)
overridevirtual

Returns color adjusted to something acceptable.

Implements AzQtComponents::ColorValidator.

◆ isValid()

bool AzQtComponents::HueSaturationValidator::isValid ( const Internal::ColorController *  controller)
overridevirtual

Returns true if the input color is valid, false otherwise. False will trigger adjust to be called.

Implements AzQtComponents::ColorValidator.

◆ warn()

void AzQtComponents::HueSaturationValidator::warn ( )
overridevirtual

Must emit colorWarning when called.

Implements AzQtComponents::ColorValidator.


The documentation for this class was generated from the following file: