fork download
  1. #ifndef DUI_STENCIL_TWO_CLASS_API
  2. #define DUI_STENCIL_TWO_CLASS_API
  3.  
  4. //Headers
  5. #include <SFML/Graphics/Drawable.hpp>
  6. #include <SFML/Graphics/Transformable.hpp>
  7. #include <SFML/Graphics/RenderTarget.hpp>
  8. #include <SFML/Graphics/Rect.hpp>
  9. #include <SFML/Graphics/VertexArray.hpp>
  10. #include <SFML/Graphics/Texture.hpp>
  11. #include <SFML/Graphics/Font.hpp>
  12. #include <SFML/Window/Mouse.hpp>
  13. #include <SFML/System/Time.hpp>
  14. #include <SFML/System/String.hpp>
  15. #include <functional>
  16. #include <cmath>
  17.  
  18. namespace dui {
  19.  
  20. //Stencil class provides an interface for easy inheritance.
  21. //It's essentially a template class for all derived objects to have
  22. //a back bone for, and provides all includes to be used throughout.
  23. class Stencil : public sf::Transformable {
  24. protected:
  25. sf::IntRect rect;
  26. sf::String state;
  27. sf::String type;
  28. bool internal, visible, hover, alwaysupdate, retainsize;
  29. sf::Color borderColor;
  30. sf::Font defaultFont;
  31. Stencil(): rect(0,0,5,5), state("none"), type("stencil"), internal(false),
  32. visible(true), hover(false), alwaysupdate(false), retainsize(false),
  33. borderColor(143,143,143) {
  34. defaultFont.loadFromFile("deps/ronda.ttf");
  35. }
  36. };
  37. } //namespace dui
  38.  
  39.  
  40.  
  41. #endif //DUI_STENCIL_TWO_CLASS_API
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty