GridContainer.xml 1.2 KB

12345678910111213141516171819202122232425262728
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="GridContainer" inherits="Container" category="Core" version="3.1">
  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 [member columns] property 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. </methods>
  15. <members>
  16. <member name="columns" type="int" setter="set_columns" getter="get_columns">
  17. The number of columns in the [code]GridContainer[/code]. If modified, [code]GridContainer[/code] reorders its children to accommodate the new layout.
  18. </member>
  19. </members>
  20. <constants>
  21. </constants>
  22. <theme_items>
  23. <theme_item name="hseparation" type="int">
  24. </theme_item>
  25. <theme_item name="vseparation" type="int">
  26. </theme_item>
  27. </theme_items>
  28. </class>