| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- #pragma once
- #include "BsEditorPrerequisites.h"
- #include "BsEvent.h"
- namespace BansheeEngine
- {
- class EditorWindowBase
- {
- public:
- virtual ~EditorWindowBase();
- virtual void setPosition(INT32 x, INT32 y);
- virtual void setSize(UINT32 width, UINT32 height);
- INT32 getLeft() const;
- INT32 getTop() const;
- UINT32 getWidth() const;
- UINT32 getHeight() const;
- virtual void close();
- void hide();
- /**
- * @brief Called once every frame. Internal method.
- */
- virtual void update() { }
- protected:
- EditorWindowBase();
- EditorWindowBase(const RenderWindowPtr& renderWindow);
- RenderWindowPtr mRenderWindow;
- HSceneObject mSceneObject;
- HGUIWidget mGUI;
- HCamera mCamera;
- GameObjectHandle<WindowFrameWidget> mWindowFrame;
- bool mOwnsRenderWindow;
- void construct(const RenderWindowPtr& renderWindow);
- virtual void initialize();
- virtual void resized() { }
- private:
- HEvent mResizedConn;
- };
- }
|