Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef TOUCH_PROPERTIES_COLOR_H_
- #define TOUCH_PROPERTIES_COLOR_H_
- #include <string>
- #include "properties/property.h"
- namespace touch {
- class Color final : public Property<Color> {
- public:
- Color();
- Color(unsigned int, unsigned int, unsigned int);
- Color(unsigned int, unsigned int, unsigned int, unsigned int);
- Color(const Color &);
- unsigned int GetRed() const;
- unsigned int GetGreen() const;
- unsigned int GetBlue() const;
- unsigned int GetAlpha() const;
- void SetRed(unsigned int);
- void SetGreen(unsigned int);
- void SetBlue(unsigned int);
- void SetAlpha(unsigned int);
- void Copy(const Color &) override;
- bool IsVisible() const;
- std::string ToString() const override;
- private:
- unsigned int red;
- unsigned int green;
- unsigned int blue;
- unsigned int alpha;
- };
- }
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement