BsModalWindow.h 671 B

1234567891011121314151617181920212223242526272829303132333435
  1. #pragma once
  2. #include "BsEditorPrerequisites.h"
  3. #include "BsEditorWindowBase.h"
  4. namespace BansheeEngine
  5. {
  6. class BS_ED_EXPORT ModalWindow : public EditorWindowBase
  7. {
  8. public:
  9. virtual ~ModalWindow();
  10. virtual void update();
  11. virtual void close();
  12. void setTitle(const HString& title);
  13. protected:
  14. friend class EditorWindowManager;
  15. ModalWindow(const HString& title, bool hasCloseButton = false);
  16. Rect2I getContentArea() const;
  17. virtual void resized();
  18. private:
  19. void updateSize();
  20. UINT32 getTitleBarHeight() const;
  21. GUIArea* mTitleBarArea;
  22. GUIArea* mTitleBarBgArea;
  23. GUILabel* mTitle;
  24. GUIButton* mCloseButton;
  25. GUITexture* mTitleBarBg;
  26. };
  27. }