2
0

GUIElementStateStyle.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. using System;
  2. using System.Runtime.CompilerServices;
  3. namespace BansheeEngine
  4. {
  5. public sealed class GUIElementStateStyle : ScriptObject
  6. {
  7. public GUIElementStateStyle()
  8. {
  9. Internal_CreateInstance(this);
  10. }
  11. public SpriteTexture texture
  12. {
  13. get { SpriteTexture value; Internal_GetTexture(mCachedPtr, out value); return value; }
  14. set { Internal_SetTexture(mCachedPtr, value); }
  15. }
  16. public Color textColor
  17. {
  18. get { Color value; Internal_GetTextColor(mCachedPtr, out value); return value; }
  19. set { Internal_SetTextColor(mCachedPtr, ref value); }
  20. }
  21. [MethodImpl(MethodImplOptions.InternalCall)]
  22. private static extern void Internal_CreateInstance(GUIElementStateStyle instance);
  23. [MethodImpl(MethodImplOptions.InternalCall)]
  24. private static extern void Internal_GetTexture(IntPtr nativeInstance, out SpriteTexture value);
  25. [MethodImpl(MethodImplOptions.InternalCall)]
  26. private static extern void Internal_SetTexture(IntPtr nativeInstance, SpriteTexture value);
  27. [MethodImpl(MethodImplOptions.InternalCall)]
  28. private static extern void Internal_GetTextColor(IntPtr nativeInstance, out Color value);
  29. [MethodImpl(MethodImplOptions.InternalCall)]
  30. private static extern void Internal_SetTextColor(IntPtr nativeInstance, ref Color value);
  31. };
  32. }