Simple SFML GUI  0.2a
ColorAccess.hpp
1 #ifndef COLORACCESS_HPP
2 #define COLORACCESS_HPP
3 
4 #include "ColorProvider.hpp"
5 
7 public:
10 
12 
13 protected:
14  ColorProvider& colorProviderReference;
15 };
16 
18 public:
19  SetColorAccess(ColorProvider& colorProvider);
20  virtual ~SetColorAccess() = default;
21  virtual bool setColorFrom(const SetColorAccess& colorAccess);
22  virtual bool setColor(ColorId::Type colorId, StateId::Type stateId, sf::Color newColor);
23  virtual bool setColorEnabled(ColorId::Type colorId, StateId::Type stateId, bool enabled);
24 };
25 
27 public:
28  GetColorAccess(ColorProvider& colorProvider);
29  virtual ~GetColorAccess() = default;
30  virtual bool colorDeduce(const ColorRef& colorRef) const;
31  virtual bool getColor(ColorId::Type colorId, StateId::Type stateId, sf::Color& result) const;
32 };
33 
34 #endif // COLORACCESS_HPP
Definition: ColorAccess.hpp:17
Definition: ColorProvider.hpp:15
Definition: ColorAccess.hpp:26
Definition: ColorAccess.hpp:6