Advertisement
Guest User

Untitled

a guest
May 21st, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. #ifndef TOUCH_PROPERTIES_COLOR_H_
  2. #define TOUCH_PROPERTIES_COLOR_H_
  3.  
  4. #include <string>
  5.  
  6. #include "properties/property.h"
  7.  
  8. namespace touch {
  9.  
  10. class Color final : public Property<Color> {
  11. public:
  12. Color();
  13. Color(unsigned int, unsigned int, unsigned int);
  14. Color(unsigned int, unsigned int, unsigned int, unsigned int);
  15. Color(const Color &);
  16.  
  17. unsigned int GetRed() const;
  18. unsigned int GetGreen() const;
  19. unsigned int GetBlue() const;
  20. unsigned int GetAlpha() const;
  21.  
  22. void SetRed(unsigned int);
  23. void SetGreen(unsigned int);
  24. void SetBlue(unsigned int);
  25. void SetAlpha(unsigned int);
  26.  
  27. void Copy(const Color &) override;
  28. bool IsVisible() const;
  29. std::string ToString() const override;
  30.  
  31. private:
  32. unsigned int red;
  33. unsigned int green;
  34. unsigned int blue;
  35. unsigned int alpha;
  36. };
  37.  
  38. }
  39.  
  40. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement