Describes minimum required functionality of color dialog.
You can find more information in comments below. Overrided methods can be found in corresponding base interface.
class IColorDialog :public virtual IComponent
{
public:
void(*OnApply)(IComponent *sender); // Event called when color form or dialog box closed with applying changes
virtual Color getColor() = 0; // Get selected color
virtual bool isUseDialogBox() = 0; // Return whether dialog box or regular form should be used
virtual IColorDialogListener *getColorDialogListener() = 0; // Return assigned listener
virtual bool setColor(const Color &value) = 0; // Set selected color
virtual bool setUseDialogBox(const bool value) = 0; // Set whether dialog box or regular form should be used
virtual void setColorDialogListener(IColorDialogListener *value) = 0; // Assign listener
virtual bool Execute() = 0; // Show dialog
};
Namespace: | nitisa::standard |
Include: | Standard/Components/IColorDialog.h |