Container.xml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="Container" inherits="Control" category="Core" version="3.1">
  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. <demos>
  13. </demos>
  14. <methods>
  15. <method name="fit_child_in_rect">
  16. <return type="void">
  17. </return>
  18. <argument index="0" name="child" type="Control">
  19. </argument>
  20. <argument index="1" name="rect" type="Rect2">
  21. </argument>
  22. <description>
  23. Fit a child control in a given rect. This is mainly a helper for creating custom container classes.
  24. </description>
  25. </method>
  26. <method name="queue_sort">
  27. <return type="void">
  28. </return>
  29. <description>
  30. Queue resort of the contained children. This is called automatically anyway, but can be called upon request.
  31. </description>
  32. </method>
  33. </methods>
  34. <signals>
  35. <signal name="sort_children">
  36. <description>
  37. Emitted when sorting the children is needed.
  38. </description>
  39. </signal>
  40. </signals>
  41. <constants>
  42. <constant name="NOTIFICATION_SORT_CHILDREN" value="50">
  43. Notification for when sorting the children, it must be obeyed immediately.
  44. </constant>
  45. </constants>
  46. </class>