| 123456789101112131415161718192021222324252627282930313233343536373839 |
- #pragma once
- #include "BsEditorPrerequisites.h"
- namespace BansheeEditor
- {
- class EditorWindowBase
- {
- public:
- virtual ~EditorWindowBase();
- virtual void setPosition(CM::INT32 x, CM::INT32 y);
- virtual void setSize(CM::UINT32 width, CM::UINT32 height);
- CM::INT32 getLeft() const;
- CM::INT32 getTop() const;
- CM::UINT32 getWidth() const;
- CM::UINT32 getHeight() const;
- virtual void close();
- protected:
- EditorWindowBase();
- EditorWindowBase(CM::RenderWindowPtr renderWindow);
- CM::HSceneObject mSceneObject;
- BS::HGUIWidget mGUI;
- BS::HCamera mCamera;
- bool mOwnsRenderWindow;
- void construct(CM::RenderWindowPtr renderWindow);
- virtual void initialize();
- virtual void movedOrResized() { }
- private:
- CM::RenderWindowPtr mRenderWindow;
-
- void movedOrResized(CM::RenderWindow& renderWindow);
- };
- }
|