Container.xml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="Container" inherits="Control" version="4.0">
  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. </tutorials>
  12. <methods>
  13. <method name="fit_child_in_rect">
  14. <return type="void" />
  15. <argument index="0" name="child" type="Control" />
  16. <argument index="1" name="rect" type="Rect2" />
  17. <description>
  18. Fit a child control in a given rect. This is mainly a helper for creating custom container classes.
  19. </description>
  20. </method>
  21. <method name="queue_sort">
  22. <return type="void" />
  23. <description>
  24. Queue resort of the contained children. This is called automatically anyway, but can be called upon request.
  25. </description>
  26. </method>
  27. </methods>
  28. <members>
  29. <member name="mouse_filter" type="int" setter="set_mouse_filter" getter="get_mouse_filter" override="true" enum="Control.MouseFilter" default="1" />
  30. </members>
  31. <signals>
  32. <signal name="pre_sort_children">
  33. <description>
  34. Emitted when children are going to be sorted.
  35. </description>
  36. </signal>
  37. <signal name="sort_children">
  38. <description>
  39. Emitted when sorting the children is needed.
  40. </description>
  41. </signal>
  42. </signals>
  43. <constants>
  44. <constant name="NOTIFICATION_PRE_SORT_CHILDREN" value="50">
  45. Notification just before children are going to be sorted, in case there's something to process beforehand.
  46. </constant>
  47. <constant name="NOTIFICATION_SORT_CHILDREN" value="51">
  48. Notification for when sorting the children, it must be obeyed immediately.
  49. </constant>
  50. </constants>
  51. </class>