class_viewportcontainer.rst 1.9 KB

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