BsScriptGUIArea.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. private:
  13. static void internal_createInstance(MonoObject* instance, MonoObject* parentGUI, CM::INT32 x, CM::INT32 y, CM::UINT32 width, CM::UINT32 height, CM::UINT16 depth);
  14. static void internal_createInstanceResizeableX(MonoObject* instance, MonoObject* parentGUI, CM::UINT32 offsetLeft, CM::UINT32 offsetRight,
  15. CM::UINT32 offsetTop, CM::UINT32 height, CM::UINT16 depth);
  16. static void internal_createInstanceResizeableY(MonoObject* instance, MonoObject* parentGUI, CM::UINT32 offsetTop,
  17. CM::UINT32 offsetBottom, CM::UINT32 offsetLeft, CM::UINT32 width, CM::UINT16 depth);
  18. static void internal_createInstanceResizeableXY(MonoObject* instance, MonoObject* parentGUI, CM::UINT32 offsetLeft,
  19. CM::UINT32 offsetRight, CM::UINT32 offsetTop, CM::UINT32 offsetBottom, CM::UINT16 depth);
  20. static void internal_destroyInstance(ScriptGUIArea* nativeInstance);
  21. static void internal_destroy(ScriptGUIArea* nativeInstance);
  22. static void internal_setVisible(ScriptGUIArea* nativeInstance, bool visible);
  23. static void initRuntimeData();
  24. ScriptGUIArea(GUIArea* area, ScriptGUIBase* parentGUI);
  25. void destroy();
  26. GUIArea* mArea;
  27. ScriptGUIBase* mParentGUI;
  28. bool mIsDestroyed;
  29. };
  30. }