plain_button.h 415 B

123456789101112131415161718
  1. #include "implementaion.h"
  2. class plain_button :
  3. public movable_bounds,
  4. public ui_element,
  5. public i_graphic,
  6. public i_ui_object
  7. {
  8. public:
  9. explicit plain_button(const plain_button&) = default;
  10. plain_button(graphical::color color, range2D bounds);
  11. virtual void draw(const graphical::surface&) override;
  12. virtual void update(const interactive::event&) noexcept override;
  13. private:
  14. graphical::color color;
  15. };