BoxContainer.xml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="BoxContainer" inherits="Container" category="Core" version="3.1">
  3. <brief_description>
  4. Base class for box containers.
  5. </brief_description>
  6. <description>
  7. Arranges child controls vertically or horizontally, and rearranges the controls automatically when their minimum size changes.
  8. </description>
  9. <tutorials>
  10. </tutorials>
  11. <demos>
  12. </demos>
  13. <methods>
  14. <method name="add_spacer">
  15. <return type="void">
  16. </return>
  17. <argument index="0" name="begin" type="bool">
  18. </argument>
  19. <description>
  20. Adds a control to the box as a spacer. If [code]true[/code], [i]begin[/i] will insert the spacer control in front of other children.
  21. </description>
  22. </method>
  23. </methods>
  24. <members>
  25. <member name="alignment" type="int" setter="set_alignment" getter="get_alignment" enum="BoxContainer.AlignMode">
  26. The alignment of the container's children (must be one of ALIGN_BEGIN, ALIGN_CENTER, or ALIGN_END).
  27. </member>
  28. </members>
  29. <constants>
  30. <constant name="ALIGN_BEGIN" value="0" enum="AlignMode">
  31. Aligns children with the beginning of the container.
  32. </constant>
  33. <constant name="ALIGN_CENTER" value="1" enum="AlignMode">
  34. Aligns children with the center of the container.
  35. </constant>
  36. <constant name="ALIGN_END" value="2" enum="AlignMode">
  37. Aligns children with the end of the container.
  38. </constant>
  39. </constants>
  40. </class>