BsEditorWidget.h 671 B

1234567891011121314151617181920212223242526272829303132
  1. #pragma once
  2. #include "BsEditorPrerequisites.h"
  3. #include "boost/signal.hpp"
  4. namespace BansheeEditor
  5. {
  6. class EditorWidget
  7. {
  8. public:
  9. virtual ~EditorWidget();
  10. const CM::WString& getName() const { return mName; }
  11. void _setSize(CM::UINT32 width, CM::UINT32 height);
  12. void _setPosition(CM::INT32 x, CM::INT32 y);
  13. void _changeParent(EditorWidgetContainer* parent);
  14. void _disable();
  15. void _enable();
  16. static void destroy(EditorWidget* widget);
  17. protected:
  18. EditorWidget(const CM::WString& name);
  19. CM::WString mName;
  20. EditorWidgetContainer* mParent;
  21. BS::GUIArea* mContent;
  22. BS::GUIWidget& getParentWidget() const;
  23. };
  24. }