| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- #pragma once
- #include "BsEditorPrerequisites.h"
- #include <boost/signals/connection.hpp>
- 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();
- void hide();
- /**
- * @brief Called once every frame. Internal method.
- */
- virtual void update() { }
- protected:
- EditorWindowBase();
- EditorWindowBase(const CM::RenderWindowPtr& renderWindow);
- CM::RenderWindowPtr mRenderWindow;
- CM::HSceneObject mSceneObject;
- BS::HGUIWidget mGUI;
- BS::HCamera mCamera;
- CM::GameObjectHandle<WindowFrameWidget> mWindowFrame;
- bool mOwnsRenderWindow;
- void construct(const CM::RenderWindowPtr& renderWindow);
- virtual void initialize();
- virtual void resized() { }
- private:
- boost::signals::connection mResizedConn;
- };
- }
|