Container.xml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="Container" inherits="Control" category="Core" version="3.1.2">
  3. <brief_description>
  4. Base node for containers.
  5. </brief_description>
  6. <description>
  7. Base node for containers. A [code]Container[/code] contains other controls and automatically arranges them in a certain way.
  8. A Control can inherit this to create custom container classes.
  9. </description>
  10. <tutorials>
  11. </tutorials>
  12. <methods>
  13. <method name="fit_child_in_rect">
  14. <return type="void">
  15. </return>
  16. <argument index="0" name="child" type="Control">
  17. </argument>
  18. <argument index="1" name="rect" type="Rect2">
  19. </argument>
  20. <description>
  21. Fit a child control in a given rect. This is mainly a helper for creating custom container classes.
  22. </description>
  23. </method>
  24. <method name="queue_sort">
  25. <return type="void">
  26. </return>
  27. <description>
  28. Queue resort of the contained children. This is called automatically anyway, but can be called upon request.
  29. </description>
  30. </method>
  31. </methods>
  32. <signals>
  33. <signal name="sort_children">
  34. <description>
  35. Emitted when sorting the children is needed.
  36. </description>
  37. </signal>
  38. </signals>
  39. <constants>
  40. <constant name="NOTIFICATION_SORT_CHILDREN" value="50">
  41. Notification for when sorting the children, it must be obeyed immediately.
  42. </constant>
  43. </constants>
  44. </class>