BsEditorWindow.h 579 B

12345678910111213141516171819202122232425262728293031
  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 widgetRemoved();
  21. void closeWindowDelayed();
  22. };
  23. }