GUILabel.cs 808 B

123456789101112131415161718192021222324
  1. using System;
  2. using System.Runtime.CompilerServices;
  3. namespace BansheeEngine
  4. {
  5. public sealed class GUILabel : GUIElement
  6. {
  7. public GUILabel(GUIContent content, string style, params GUIOption[] options)
  8. {
  9. Internal_CreateInstance(this, content, style, options);
  10. }
  11. public void SetContent(GUIContent content)
  12. {
  13. Internal_SetContent(mCachedPtr, content);
  14. }
  15. [MethodImpl(MethodImplOptions.InternalCall)]
  16. private static extern void Internal_CreateInstance(GUILabel instance, GUIContent content, string style, GUIOption[] options);
  17. [MethodImpl(MethodImplOptions.InternalCall)]
  18. private static extern void Internal_SetContent(IntPtr nativeInstance, GUIContent content);
  19. }
  20. }