BsGUIWindowFrameWidget.h 767 B

12345678910111213141516171819202122232425262728293031
  1. #pragma once
  2. #include "BsEditorPrerequisites.h"
  3. #include "BsGUIWidget.h"
  4. #include "BsEvent.h"
  5. namespace BansheeEngine
  6. {
  7. class WindowFrameWidget : public GUIWidget
  8. {
  9. public:
  10. WindowFrameWidget(const HSceneObject& parent, bool allowResize, Viewport* target, RenderWindow* ownerWindow, const GUISkin& skin);
  11. virtual ~WindowFrameWidget();
  12. protected:
  13. static const UINT32 RESIZE_BORDER_WIDTH;
  14. bool mAllowResize;
  15. GUIArea* mWindowFrameArea;
  16. RenderWindow* mParentWindow;
  17. GUIWindowFrame* mWindowFrame;
  18. virtual void update();
  19. virtual bool _mouseEvent(GUIElement* element, const GUIMouseEvent& ev);
  20. virtual void ownerWindowFocusChanged();
  21. virtual void ownerTargetResized();
  22. void refreshNonClientAreas() const;
  23. };
  24. }