BsScriptGUIFixedSpace.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. #pragma once
  4. #include "BsScriptEnginePrerequisites.h"
  5. #include "BsScriptGUIElement.h"
  6. namespace BansheeEngine
  7. {
  8. /**
  9. * @brief Interop class between C++ & CLR for GUIFixedSpace.
  10. */
  11. class BS_SCR_BE_EXPORT ScriptGUIFixedSpace : public TScriptGUIElementBase<ScriptGUIFixedSpace>
  12. {
  13. public:
  14. SCRIPT_OBJ(ENGINE_ASSEMBLY, "BansheeEngine", "GUIFixedSpace")
  15. private:
  16. ScriptGUIFixedSpace(MonoObject* instance, GUIFixedSpace* fixedSpace);
  17. /**
  18. * @copydoc ScriptGUIElementBaseTBase::destroy
  19. */
  20. void destroy() override;
  21. GUIFixedSpace* mFixedSpace;
  22. bool mIsDestroyed;
  23. /************************************************************************/
  24. /* CLR HOOKS */
  25. /************************************************************************/
  26. static void internal_createInstance(MonoObject* instance, UINT32 size);
  27. static void internal_setSize(ScriptGUIFixedSpace* nativeInstance, UINT32 size);
  28. };
  29. }