GridContainer.xml 1.2 KB

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