BsScriptGUIArea.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #pragma once
  2. #include "BsScriptEnginePrerequisites.h"
  3. #include "BsScriptObject.h"
  4. #include "CmRectI.h"
  5. namespace BansheeEngine
  6. {
  7. class BS_SCR_BE_EXPORT ScriptGUIArea : public ScriptObject<ScriptGUIArea>
  8. {
  9. public:
  10. static void initMetaData();
  11. GUIArea* getInternalValue() const { return mGUIArea; }
  12. void* getNativeRaw() const { return mGUIArea; }
  13. void updateArea();
  14. private:
  15. static void internal_createInstance(MonoObject* instance, MonoObject* parentGUI, INT32 x, INT32 y, UINT32 width, UINT32 height, UINT16 depth);
  16. static void internal_destroyInstance(ScriptGUIArea* nativeInstance);
  17. static void internal_destroy(ScriptGUIArea* thisPtr);
  18. static void internal_setVisible(ScriptGUIArea* thisPtr, bool visible);
  19. static void internal_setArea(ScriptGUIArea* thisPtr, INT32 x, INT32 y, UINT32 width, UINT32 height, UINT16 depth);
  20. static void initRuntimeData();
  21. ScriptGUIArea(GUIArea* area, ScriptGUIPanel* panel);
  22. void destroy();
  23. GUIArea* mGUIArea;
  24. RectI mArea;
  25. ScriptGUIPanel* mParentPanel;
  26. bool mIsDestroyed;
  27. };
  28. }