BsEditorWindow.h 602 B

1234567891011121314151617181920212223242526272829303132
  1. #pragma once
  2. #include "BsEditorPrerequisites.h"
  3. #include "BsEditorWindowBase.h"
  4. namespace BansheeEngine
  5. {
  6. class BS_ED_EXPORT EditorWindow : public EditorWindowBase
  7. {
  8. public:
  9. virtual ~EditorWindow();
  10. EditorWidgetContainer& widgets() const { return *mWidgets; }
  11. virtual void update();
  12. static EditorWindow* create();
  13. protected:
  14. friend class EditorWindowManager;
  15. EditorWindow();
  16. virtual void resized();
  17. private:
  18. EditorWidgetContainer* mWidgets;
  19. void updateSize();
  20. void widgetAdded();
  21. void widgetRemoved();
  22. void closeWindowDelayed();
  23. };
  24. }