class_viewportcontainer.rst 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the ViewportContainer.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_ViewportContainer:
  5. ViewportContainer
  6. =================
  7. **Inherits:** :ref:`Container<class_Container>` **<** :ref:`Control<class_Control>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  8. **Category:** Core
  9. Brief Description
  10. -----------------
  11. Control for holding :ref:`Viewport<class_Viewport>`\ s.
  12. Properties
  13. ----------
  14. +-------------------------+------------------------------------------------------------------------+
  15. | :ref:`bool<class_bool>` | :ref:`stretch<class_ViewportContainer_property_stretch>` |
  16. +-------------------------+------------------------------------------------------------------------+
  17. | :ref:`int<class_int>` | :ref:`stretch_shrink<class_ViewportContainer_property_stretch_shrink>` |
  18. +-------------------------+------------------------------------------------------------------------+
  19. Description
  20. -----------
  21. A :ref:`Container<class_Container>` node that holds a :ref:`Viewport<class_Viewport>`, automatically setting its size.
  22. Property Descriptions
  23. ---------------------
  24. .. _class_ViewportContainer_property_stretch:
  25. - :ref:`bool<class_bool>` **stretch**
  26. +----------+----------------------+
  27. | *Setter* | set_stretch(value) |
  28. +----------+----------------------+
  29. | *Getter* | is_stretch_enabled() |
  30. +----------+----------------------+
  31. If ``true``, the viewport will be scaled to the control's size. Default value:``false``.
  32. .. _class_ViewportContainer_property_stretch_shrink:
  33. - :ref:`int<class_int>` **stretch_shrink**
  34. +----------+---------------------------+
  35. | *Setter* | set_stretch_shrink(value) |
  36. +----------+---------------------------+
  37. | *Getter* | get_stretch_shrink() |
  38. +----------+---------------------------+