BsScriptGUILabel.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 "Wrappers/GUI/BsScriptGUIElement.h"
  6. namespace bs
  7. {
  8. struct __GUIContentInterop;
  9. /** @addtogroup ScriptInteropEngine
  10. * @{
  11. */
  12. /** Interop class between C++ & CLR for GUILabel. */
  13. class BS_SCR_BE_EXPORT ScriptGUILabel : public TScriptGUIElement<ScriptGUILabel>
  14. {
  15. public:
  16. SCRIPT_OBJ(ENGINE_ASSEMBLY, "BansheeEngine", "GUILabel")
  17. private:
  18. ScriptGUILabel(MonoObject* instance, GUILabel* label);
  19. /************************************************************************/
  20. /* CLR HOOKS */
  21. /************************************************************************/
  22. static void internal_createInstance(MonoObject* instance, __GUIContentInterop* content, MonoString* style,
  23. MonoArray* guiOptions);
  24. static void internal_setContent(ScriptGUILabel* nativeInstance, __GUIContentInterop* content);
  25. static void internal_setTint(ScriptGUILabel* nativeInstance, Color* color);
  26. };
  27. /** @} */
  28. }