Container.xml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="Container" inherits="Control" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
  3. <brief_description>
  4. Base node for containers.
  5. </brief_description>
  6. <description>
  7. Base node for containers. A [Container] 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. <link title="GUI containers">$DOCS_URL/tutorials/ui/gui_containers.html</link>
  12. </tutorials>
  13. <methods>
  14. <method name="fit_child_in_rect">
  15. <return type="void" />
  16. <argument index="0" name="child" type="Control" />
  17. <argument index="1" name="rect" type="Rect2" />
  18. <description>
  19. Fit a child control in a given rect. This is mainly a helper for creating custom container classes.
  20. </description>
  21. </method>
  22. <method name="queue_sort">
  23. <return type="void" />
  24. <description>
  25. Queue resort of the contained children. This is called automatically anyway, but can be called upon request.
  26. </description>
  27. </method>
  28. </methods>
  29. <signals>
  30. <signal name="sort_children">
  31. <description>
  32. Emitted when sorting the children is needed.
  33. </description>
  34. </signal>
  35. </signals>
  36. <constants>
  37. <constant name="NOTIFICATION_SORT_CHILDREN" value="50">
  38. Notification for when sorting the children, it must be obeyed immediately.
  39. </constant>
  40. </constants>
  41. </class>