MyButton.h 284 B

123456789101112131415161718
  1. #pragma once
  2. #include "oxygine-framework.h"
  3. using namespace oxygine;
  4. using namespace std;
  5. DECLARE_SMART(MyButton, spMyButton);
  6. class MyButton: public Sprite
  7. {
  8. public:
  9. MyButton();
  10. void setText(const string& txt);
  11. private:
  12. void onEvent(Event*);
  13. spTextField _text;
  14. };