Simple SFML GUI  0.2a
HaveEnabled.hpp
1 /*
2  * HaveEnabled.hpp
3  *
4  * Created on: 17.03.2017
5  * Author: jakub
6  */
7 
8 #ifndef HAVEENABLED_HPP_
9 #define HAVEENABLED_HPP_
10 
11 #include "ColorProvider.hpp"
12 #include "Element.hpp"
13 #include "UTest.hpp"
14 
15 class HaveEnabled {
16 public:
17  UT_FRIEND
18  friend Element;
19  HaveEnabled(ColorProvider& colorProvider, bool e = true);
20  bool isEnabled() const;
21  void setEnabled(bool enabled);
22 
23 protected:
24  bool enabled;
25 };
26 
27 #endif /* HAVEENABLED_HPP_ */
Definition: HaveEnabled.hpp:15
Definition: ColorProvider.hpp:15
Definition: Element.hpp:22