GUIFloatDistributionField.generated.cs 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  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 floating point distribution.
  13. /// </summary>
  14. public partial class GUIFloatDistributionField : GUIElement
  15. {
  16. private GUIFloatDistributionField(bool __dummy0) { }
  17. protected GUIFloatDistributionField() { }
  18. /// <summary>Creates a new GUI editor field with a label.</summary>
  19. /// <param name="labelContent">Content to display in the editor field label.</param>
  20. /// <param name="labelWidth">Width of the label in pixels.</param>
  21. /// <param name="style">
  22. /// Optional style to use for the element. Style will be retrieved from GUISkin of the GUIWidget the element is used on.
  23. /// If not specified default style is used.
  24. /// </param>
  25. public GUIFloatDistributionField(GUIContent labelContent, uint labelWidth, string style = "")
  26. {
  27. Internal_create(this, ref labelContent, labelWidth, style);
  28. }
  29. /// <summary>Creates a new GUI editor field with a label.</summary>
  30. /// <param name="labelContent">Content to display in the editor field label.</param>
  31. /// <param name="style">
  32. /// Optional style to use for the element. Style will be retrieved from GUISkin of the GUIWidget the element is used on.
  33. /// If not specified default style is used.
  34. /// </param>
  35. public GUIFloatDistributionField(GUIContent labelContent, string style = "")
  36. {
  37. Internal_create0(this, ref labelContent, style);
  38. }
  39. /// <summary>Creates a new GUI editor field with a label.</summary>
  40. /// <param name="labelText">String to display in the editor field label.</param>
  41. /// <param name="labelWidth">Width of the label in pixels.</param>
  42. /// <param name="style">
  43. /// Optional style to use for the element. Style will be retrieved from GUISkin of the GUIWidget the element is used on.
  44. /// If not specified default style is used.
  45. /// </param>
  46. public GUIFloatDistributionField(LocString labelText, uint labelWidth, string style = "")
  47. {
  48. Internal_create1(this, labelText, labelWidth, style);
  49. }
  50. /// <summary>Creates a new GUI editor field with a label.</summary>
  51. /// <param name="labelText">String to display in the editor field label.</param>
  52. /// <param name="style">
  53. /// Optional style to use for the element. Style will be retrieved from GUISkin of the GUIWidget the element is used on.
  54. /// If not specified default style is used.
  55. /// </param>
  56. public GUIFloatDistributionField(LocString labelText, string style = "")
  57. {
  58. Internal_create2(this, labelText, style);
  59. }
  60. /// <summary>Creates a new GUI editor field without a label.</summary>
  61. /// <param name="style">
  62. /// Optional style to use for the element. Style will be retrieved from GUISkin of the GUIWidget the element is used on.
  63. /// If not specified default style is used.
  64. /// </param>
  65. public GUIFloatDistributionField(string style = "")
  66. {
  67. Internal_create3(this, style);
  68. }
  69. /// <summary>Changes the value of the field.</summary>
  70. public FloatDistribution Value
  71. {
  72. get { return Internal_getValue(mCachedPtr); }
  73. set { Internal_setValue(mCachedPtr, value); }
  74. }
  75. /// <summary>
  76. /// Checks if any of the float input fields currently have input focus. Only relevant for non-curve distributions.
  77. /// </summary>
  78. public bool HasInputFocus
  79. {
  80. get { return Internal_hasInputFocus(mCachedPtr); }
  81. }
  82. /// <summary>
  83. /// Triggered when the user clicks on the curve display. Only relevant if the distribution is a curve distribution.
  84. /// </summary>
  85. partial void OnClicked();
  86. /// <summary>
  87. /// Triggered when the user modifies either of the non-curve (constant) values of the distribution. Only relevant if the
  88. /// distribution is not a curve distribution.
  89. /// </summary>
  90. partial void OnConstantModified();
  91. /// <summary>
  92. /// Triggered when the user confirms inputs in either of the non-curve (constant) values of the distribution. Only
  93. /// relevant if the distribution is not a curve distribution.
  94. /// </summary>
  95. partial void OnConstantConfirmed();
  96. [MethodImpl(MethodImplOptions.InternalCall)]
  97. private static extern FloatDistribution Internal_getValue(IntPtr thisPtr);
  98. [MethodImpl(MethodImplOptions.InternalCall)]
  99. private static extern void Internal_setValue(IntPtr thisPtr, FloatDistribution value);
  100. [MethodImpl(MethodImplOptions.InternalCall)]
  101. private static extern bool Internal_hasInputFocus(IntPtr thisPtr);
  102. [MethodImpl(MethodImplOptions.InternalCall)]
  103. private static extern void Internal_create(GUIFloatDistributionField managedInstance, ref GUIContent labelContent, uint labelWidth, string style);
  104. [MethodImpl(MethodImplOptions.InternalCall)]
  105. private static extern void Internal_create0(GUIFloatDistributionField managedInstance, ref GUIContent labelContent, string style);
  106. [MethodImpl(MethodImplOptions.InternalCall)]
  107. private static extern void Internal_create1(GUIFloatDistributionField managedInstance, LocString labelText, uint labelWidth, string style);
  108. [MethodImpl(MethodImplOptions.InternalCall)]
  109. private static extern void Internal_create2(GUIFloatDistributionField managedInstance, LocString labelText, string style);
  110. [MethodImpl(MethodImplOptions.InternalCall)]
  111. private static extern void Internal_create3(GUIFloatDistributionField managedInstance, string style);
  112. private void Internal_onClicked()
  113. {
  114. OnClicked();
  115. }
  116. private void Internal_onConstantModified()
  117. {
  118. OnConstantModified();
  119. }
  120. private void Internal_onConstantConfirmed()
  121. {
  122. OnConstantConfirmed();
  123. }
  124. }
  125. /** @} */
  126. }