| 1234567891011121314151617181920212223242526272829303132333435 |
- #pragma once
- #include "BsEditorPrerequisites.h"
- #include "BsEditorWindowBase.h"
- namespace BansheeEngine
- {
- class BS_ED_EXPORT ModalWindow : public EditorWindowBase
- {
- public:
- virtual ~ModalWindow();
- virtual void update();
- virtual void close();
- void setTitle(const HString& title);
- protected:
- friend class EditorWindowManager;
- ModalWindow(const HString& title, bool hasCloseButton = false);
- Rect2I getContentArea() const;
- virtual void resized();
- private:
- void updateSize();
- UINT32 getTitleBarHeight() const;
- GUIArea* mTitleBarArea;
- GUIArea* mTitleBarBgArea;
- GUILabel* mTitle;
- GUIButton* mCloseButton;
- GUITexture* mTitleBarBg;
- };
- }
|