BsScriptGUIArea.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #pragma once
  2. #include "BsScriptEnginePrerequisites.h"
  3. #include "BsScriptObject.h"
  4. namespace BansheeEngine
  5. {
  6. class BS_SCR_BE_EXPORT ScriptGUIArea : public ScriptObject<ScriptGUIArea>
  7. {
  8. public:
  9. static void initMetaData();
  10. GUIArea* getInternalValue() const { return mArea; }
  11. void* getNativeRaw() const { return mArea; }
  12. GUIWidget& getParentWidget() const;
  13. private:
  14. static void internal_createInstance(MonoObject* instance, MonoObject* parentGUI, CM::INT32 x, CM::INT32 y, CM::UINT32 width, CM::UINT32 height, CM::UINT16 depth);
  15. static void internal_createInstanceResizeableX(MonoObject* instance, MonoObject* parentGUI, CM::UINT32 offsetLeft, CM::UINT32 offsetRight,
  16. CM::UINT32 offsetTop, CM::UINT32 height, CM::UINT16 depth);
  17. static void internal_createInstanceResizeableY(MonoObject* instance, MonoObject* parentGUI, CM::UINT32 offsetTop,
  18. CM::UINT32 offsetBottom, CM::UINT32 offsetLeft, CM::UINT32 width, CM::UINT16 depth);
  19. static void internal_createInstanceResizeableXY(MonoObject* instance, MonoObject* parentGUI, CM::UINT32 offsetLeft,
  20. CM::UINT32 offsetRight, CM::UINT32 offsetTop, CM::UINT32 offsetBottom, CM::UINT16 depth);
  21. static void internal_destroyInstance(ScriptGUIArea* nativeInstance);
  22. static void initRuntimeData();
  23. ScriptGUIArea(GUIArea* area, ScriptGUIBase* parentGUI);
  24. GUIArea* mArea;
  25. ScriptGUIBase* mParentGUI;
  26. };
  27. }