plain_button.h 461 B

12345678910111213141516171819
  1. #include "implementation.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. // TODO: add when ui_element is copyable
  10. // explicit plain_button(const plain_button&) = default;
  11. plain_button(graphical::color color, range2D bounds);
  12. virtual void draw(const graphical::surface&) override;
  13. virtual void update(const interactive::event&) noexcept override;
  14. private:
  15. graphical::color color;
  16. };