BsScriptGUIFixedSpace.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  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 "Wrappers/GUI/BsScriptGUIElement.h"
  6. namespace bs
  7. {
  8. /** @addtogroup ScriptInteropEngine
  9. * @{
  10. */
  11. /** Interop class between C++ & CLR for GUIFixedSpace. */
  12. class BS_SCR_BE_EXPORT ScriptGUIFixedSpace : public TScriptGUIElementBase<ScriptGUIFixedSpace>
  13. {
  14. public:
  15. SCRIPT_OBJ(ENGINE_ASSEMBLY, "BansheeEngine", "GUIFixedSpace")
  16. private:
  17. ScriptGUIFixedSpace(MonoObject* instance, GUIFixedSpace* fixedSpace);
  18. /** @copydoc ScriptGUIElementBaseTBase::destroy */
  19. void destroy() override;
  20. GUIFixedSpace* mFixedSpace;
  21. bool mIsDestroyed;
  22. /************************************************************************/
  23. /* CLR HOOKS */
  24. /************************************************************************/
  25. static void internal_createInstance(MonoObject* instance, UINT32 size);
  26. static void internal_setSize(ScriptGUIFixedSpace* nativeInstance, UINT32 size);
  27. };
  28. /** @} */
  29. }