BsGUIPanelContainer.h 934 B

1234567891011121314151617181920212223242526272829303132
  1. #pragma once
  2. #include "BsScriptEditorPrerequisites.h"
  3. #include "BsGUIElementContainer.h"
  4. #include "BsScriptGUIPanel.h"
  5. namespace BansheeEngine
  6. {
  7. class BS_SCR_BED_EXPORT GUIPanelContainer : public GUIElementContainer
  8. {
  9. struct PrivatelyConstruct {};
  10. public:
  11. static const String& getGUITypeName();
  12. static GUIPanelContainer* create(const ScriptGUIPanel& guiPanel, const GUIOptions& layoutOptions);
  13. static GUIPanelContainer* create(const ScriptGUIPanel& guiPanel);
  14. GUIPanelContainer(const PrivatelyConstruct& dummy, const ScriptGUIPanel& guiPanel, const GUILayoutOptions& layoutOptions);
  15. void setPanel(const ScriptGUIPanel& guiPanel) { mGUIPanel = &guiPanel; }
  16. void _updateLayoutInternal(INT32 x, INT32 y, UINT32 width, UINT32 height,
  17. Rect2I clipRect, UINT8 widgetDepth, UINT16 areaDepth);
  18. Vector2I _getOptimalSize() const;
  19. protected:
  20. virtual ~GUIPanelContainer();
  21. const ScriptGUIPanel* mGUIPanel;
  22. };
  23. }