Implements AlphaBar control.
You can find more information in comments below. Overrided methods can be found in corresponding base classes and interfaces.
class CAlphaBar :public virtual IAlphaBar, public CControl
{
public:
void(*OnChange)(IControl *sender); // Event called when color changed by user
// IControl setters
bool setDPI(const Point &value) override;
// IControl methods
void Refresh(const bool refresh_children) override;
int getAlpha() override;
bool setAlpha(const int value) override;
CAlphaBar();
CAlphaBar(IControl *parent);
CAlphaBar(IForm *parent);
// Return layout properties
float getPickerSize() const;
Color getPickerColor() const;
Color getPickerBorderColor() const;
Color getCheckerColor1() const;
Color getCheckerColor2() const;
Color getBackgroundColor() const; // If alpha channel of background color is 0, then checker background will be drawn
Color getForegroundColor1() const;
Color getForegroundColor2() const;
float getCheckerSize() const;
// Set layout properties
bool setPickerSize(const float value);
bool setPickerColor(const Color &value);
bool setPickerBorderColor(const Color &value);
bool setCheckerColor1(const Color &value);
bool setCheckerColor2(const Color &value);
bool setBackgroundColor(const Color &value);
bool setForegroundColor1(const Color &value);
bool setForegroundColor2(const Color &value);
bool setCheckerSize(const float value);
};
Namespace: | nitisa::standard |
Include: | Standard/Controls/AlphaBar/AlphaBar.h |