BsScriptGUIElementStateStyle.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. #pragma once
  2. #include "BsScriptEnginePrerequisites.h"
  3. #include "BsScriptObject.h"
  4. #include "BsGUIElementStyle.h"
  5. #include "BsScriptSpriteTexture.h"
  6. namespace BansheeEngine
  7. {
  8. /**
  9. * @brief Performs conversion between managed GUIElementStateStyle and native GUIElementStyle::GUIElementStateStyle.
  10. */
  11. class BS_SCR_BE_EXPORT ScriptGUIElementStateStyle : public ScriptObject<ScriptGUIElementStateStyle>
  12. {
  13. public:
  14. SCRIPT_OBJ(ENGINE_ASSEMBLY, "BansheeEngine", "GUIElementStateStyle")
  15. /**
  16. * @brief Creates a new managed instance of GUIElementStateStyle.
  17. *
  18. * @param state Native GUI element style state to copy to the managed instance.
  19. */
  20. static MonoObject* toManaged(const GUIElementStyle::GUIElementStateStyle& state);
  21. /**
  22. * @brief Converts a managed instance of GUIElementStateStyle to a native GUI element style state.
  23. */
  24. static GUIElementStyle::GUIElementStateStyle toNative(MonoObject* instance);
  25. private:
  26. ScriptGUIElementStateStyle(MonoObject* instance);
  27. static MonoField* sTextureField;
  28. static MonoField* sTextColorField;
  29. };
  30. }