GUIVector2DistributionField.generated.cs 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. using System;
  2. using System.Runtime.CompilerServices;
  3. using System.Runtime.InteropServices;
  4. using BansheeEngine;
  5. namespace BansheeEditor
  6. {
  7. /** @addtogroup GUIEditor
  8. * @{
  9. */
  10. /// <summary>
  11. /// A composite GUI object representing an editor field. Editor fields are a combination of a label and an input field.
  12. /// Label is optional. This specific implementation displays an input field for a 2D vector distribution.
  13. /// </summary>
  14. [ShowInInspector]
  15. public partial class GUIVector2DistributionField : GUIElement
  16. {
  17. private GUIVector2DistributionField(bool __dummy0) { }
  18. protected GUIVector2DistributionField() { }
  19. /// <summary>Creates a new GUI editor field with a label.</summary>
  20. /// <param name="labelContent">Content to display in the editor field label.</param>
  21. /// <param name="labelWidth">Width of the label in pixels.</param>
  22. /// <param name="style">
  23. /// Optional style to use for the element. Style will be retrieved from GUISkin of the GUIWidget the element is used on.
  24. /// If not specified default style is used.
  25. /// </param>
  26. public GUIVector2DistributionField(GUIContent labelContent, uint labelWidth, string style = "")
  27. {
  28. Internal_create(this, ref labelContent, labelWidth, style);
  29. }
  30. /// <summary>Creates a new GUI editor field with a label.</summary>
  31. /// <param name="labelContent">Content to display in the editor field label.</param>
  32. /// <param name="style">
  33. /// Optional style to use for the element. Style will be retrieved from GUISkin of the GUIWidget the element is used on.
  34. /// If not specified default style is used.
  35. /// </param>
  36. public GUIVector2DistributionField(GUIContent labelContent, string style = "")
  37. {
  38. Internal_create0(this, ref labelContent, style);
  39. }
  40. /// <summary>Creates a new GUI editor field with a label.</summary>
  41. /// <param name="labelText">String to display in the editor field label.</param>
  42. /// <param name="labelWidth">Width of the label in pixels.</param>
  43. /// <param name="style">
  44. /// Optional style to use for the element. Style will be retrieved from GUISkin of the GUIWidget the element is used on.
  45. /// If not specified default style is used.
  46. /// </param>
  47. public GUIVector2DistributionField(LocString labelText, uint labelWidth, string style = "")
  48. {
  49. Internal_create1(this, labelText, labelWidth, style);
  50. }
  51. /// <summary>Creates a new GUI editor field with a label.</summary>
  52. /// <param name="labelText">String to display in the editor field label.</param>
  53. /// <param name="style">
  54. /// Optional style to use for the element. Style will be retrieved from GUISkin of the GUIWidget the element is used on.
  55. /// If not specified default style is used.
  56. /// </param>
  57. public GUIVector2DistributionField(LocString labelText, string style = "")
  58. {
  59. Internal_create2(this, labelText, style);
  60. }
  61. /// <summary>Creates a new GUI editor field without a label.</summary>
  62. /// <param name="style">
  63. /// Optional style to use for the element. Style will be retrieved from GUISkin of the GUIWidget the element is used on.
  64. /// If not specified default style is used.
  65. /// </param>
  66. public GUIVector2DistributionField(string style = "")
  67. {
  68. Internal_create3(this, style);
  69. }
  70. /// <summary>Changes the value of the field.</summary>
  71. [ShowInInspector]
  72. [NativeWrapper]
  73. public Vector2Distribution Value
  74. {
  75. get { return Internal_getValue(mCachedPtr); }
  76. set { Internal_setValue(mCachedPtr, value); }
  77. }
  78. /// <summary>Returns the type of the currently selected distribution.</summary>
  79. [ShowInInspector]
  80. [NativeWrapper]
  81. public PropertyDistributionType DistributionType
  82. {
  83. get { return Internal_getType(mCachedPtr); }
  84. }
  85. /// <summary>
  86. /// Checks if any of the float input fields currently have input focus. Only relevant for non-curve distributions.
  87. /// </summary>
  88. [ShowInInspector]
  89. [NativeWrapper]
  90. public bool HasInputFocus
  91. {
  92. get { return Internal_hasInputFocus(mCachedPtr); }
  93. }
  94. /// <summary>
  95. /// Triggered when the user clicks on the curve display. Only relevant if the distribution is a curve distribution.
  96. /// Provides the sequential index of the clicked curve (0 - x, 1 - y, 2 - z).
  97. /// </summary>
  98. partial void OnClicked(int p0);
  99. /// <summary>
  100. /// Triggered when the user modifies either of the non-curve (constant) values of the distribution. Only relevant if the
  101. /// distribution is not a curve distribution.
  102. /// </summary>
  103. partial void OnConstantModified();
  104. /// <summary>
  105. /// Triggered when the user confirms inputs in either of the non-curve (constant) values of the distribution. Only
  106. /// relevant if the distribution is not a curve distribution.
  107. /// </summary>
  108. partial void OnConstantConfirmed();
  109. [MethodImpl(MethodImplOptions.InternalCall)]
  110. private static extern Vector2Distribution Internal_getValue(IntPtr thisPtr);
  111. [MethodImpl(MethodImplOptions.InternalCall)]
  112. private static extern void Internal_setValue(IntPtr thisPtr, Vector2Distribution value);
  113. [MethodImpl(MethodImplOptions.InternalCall)]
  114. private static extern PropertyDistributionType Internal_getType(IntPtr thisPtr);
  115. [MethodImpl(MethodImplOptions.InternalCall)]
  116. private static extern bool Internal_hasInputFocus(IntPtr thisPtr);
  117. [MethodImpl(MethodImplOptions.InternalCall)]
  118. private static extern void Internal_create(GUIVector2DistributionField managedInstance, ref GUIContent labelContent, uint labelWidth, string style);
  119. [MethodImpl(MethodImplOptions.InternalCall)]
  120. private static extern void Internal_create0(GUIVector2DistributionField managedInstance, ref GUIContent labelContent, string style);
  121. [MethodImpl(MethodImplOptions.InternalCall)]
  122. private static extern void Internal_create1(GUIVector2DistributionField managedInstance, LocString labelText, uint labelWidth, string style);
  123. [MethodImpl(MethodImplOptions.InternalCall)]
  124. private static extern void Internal_create2(GUIVector2DistributionField managedInstance, LocString labelText, string style);
  125. [MethodImpl(MethodImplOptions.InternalCall)]
  126. private static extern void Internal_create3(GUIVector2DistributionField managedInstance, string style);
  127. private void Internal_onClicked(int p0)
  128. {
  129. OnClicked(p0);
  130. }
  131. private void Internal_onConstantModified()
  132. {
  133. OnConstantModified();
  134. }
  135. private void Internal_onConstantConfirmed()
  136. {
  137. OnConstantConfirmed();
  138. }
  139. }
  140. /** @} */
  141. }