GridContainer.xml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="GridContainer" inherits="Container" category="Core" version="3.0.alpha.custom_build">
  3. <brief_description>
  4. Grid container used to arrange elements in a grid like layout
  5. </brief_description>
  6. <description>
  7. Grid container will arrange its children in a grid like structure, the grid columns are specified using the [method set_columns] method and the number of rows will be equal to the number of children in the container divided by the number of columns, for example: if the container has 5 children, and 2 columns, there will be 3 rows in the container. Notice that grid layout will preserve the columns and rows for every size of the container.
  8. </description>
  9. <tutorials>
  10. </tutorials>
  11. <demos>
  12. </demos>
  13. <methods>
  14. <method name="get_columns" qualifiers="const">
  15. <return type="int">
  16. </return>
  17. <description>
  18. Returns the number of columns in this container
  19. </description>
  20. </method>
  21. <method name="set_columns">
  22. <return type="void">
  23. </return>
  24. <argument index="0" name="columns" type="int">
  25. </argument>
  26. <description>
  27. Sets the numbers of columns in the container, then reorder its children to accommodate the new layout
  28. </description>
  29. </method>
  30. </methods>
  31. <members>
  32. <member name="columns" type="int" setter="set_columns" getter="get_columns">
  33. The number of columns in the [code]GridContainer[/code]. If modified, [code]GridContainer[/code] reorders its children to accommodate the new layout.
  34. </member>
  35. </members>
  36. <constants>
  37. </constants>
  38. <theme_items>
  39. <theme_item name="hseparation" type="int">
  40. </theme_item>
  41. <theme_item name="vseparation" type="int">
  42. </theme_item>
  43. </theme_items>
  44. </class>