FlowContainer.xml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="FlowContainer" inherits="Container" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
  3. <brief_description>
  4. Base class for flow containers.
  5. </brief_description>
  6. <description>
  7. Arranges child [Control] nodes vertically or horizontally in a left-to-right or top-to-bottom flow.
  8. A line is filled with [Control] nodes until no more fit on the same line, similar to text in an autowrapped label.
  9. </description>
  10. <tutorials>
  11. </tutorials>
  12. <methods>
  13. <method name="get_line_count" qualifiers="const">
  14. <return type="int" />
  15. <description>
  16. Returns the current line count.
  17. </description>
  18. </method>
  19. </methods>
  20. <members>
  21. <member name="alignment" type="int" setter="set_alignment" getter="get_alignment" enum="FlowContainer.AlignMode" default="0">
  22. The alignment of the container's children (must be one of [constant ALIGN_BEGIN], [constant ALIGN_CENTER] or [constant ALIGN_END]).
  23. </member>
  24. </members>
  25. <constants>
  26. <constant name="ALIGN_BEGIN" value="0" enum="AlignMode">
  27. Aligns children with the beginning of the container.
  28. </constant>
  29. <constant name="ALIGN_CENTER" value="1" enum="AlignMode">
  30. Aligns children with the center of the container.
  31. </constant>
  32. <constant name="ALIGN_END" value="2" enum="AlignMode">
  33. Aligns children with the end of the container.
  34. </constant>
  35. </constants>
  36. </class>