BsScriptGUIArea.h 1.6 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. 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 internal_destroy(ScriptGUIArea* nativeInstance);
  23. static void internal_disable(ScriptGUIArea* nativeInstance);
  24. static void internal_enable(ScriptGUIArea* nativeInstance);
  25. static void initRuntimeData();
  26. ScriptGUIArea(GUIArea* area, ScriptGUIBase* parentGUI);
  27. GUIArea* mArea;
  28. ScriptGUIBase* mParentGUI;
  29. };
  30. }