UIImageWidget.h 422 B

1234567891011121314151617181920212223242526272829303132
  1. #pragma once
  2. #include "UIWidget.h"
  3. namespace Atomic
  4. {
  5. class UIImageWidget : public UIWidget
  6. {
  7. OBJECT(UIImageWidget)
  8. public:
  9. UIImageWidget(Context* context, bool createWidget = true);
  10. virtual ~UIImageWidget();
  11. void SetImage(const String& imagePath);
  12. int GetImageWidth() const;
  13. int GetImageHeight() const;
  14. protected:
  15. virtual bool OnEvent(const tb::TBWidgetEvent &ev);
  16. private:
  17. };
  18. }