:github_url: hide .. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the ViewportContainer.xml source instead. .. The source is found in doc/classes or modules//doc_classes. .. _class_ViewportContainer: ViewportContainer ================= **Inherits:** :ref:`Container` **<** :ref:`Control` **<** :ref:`CanvasItem` **<** :ref:`Node` **<** :ref:`Object` **Category:** Core Brief Description ----------------- Control for holding :ref:`Viewport`\ s. Properties ---------- +-------------------------+------------------------------------------------------------------------+-------+ | :ref:`bool` | :ref:`stretch` | false | +-------------------------+------------------------------------------------------------------------+-------+ | :ref:`int` | :ref:`stretch_shrink` | 1 | +-------------------------+------------------------------------------------------------------------+-------+ Description ----------- A :ref:`Container` node that holds a :ref:`Viewport`, automatically setting its size. Property Descriptions --------------------- .. _class_ViewportContainer_property_stretch: - :ref:`bool` **stretch** +-----------+----------------------+ | *Default* | false | +-----------+----------------------+ | *Setter* | set_stretch(value) | +-----------+----------------------+ | *Getter* | is_stretch_enabled() | +-----------+----------------------+ If ``true``, the viewport will be scaled to the control's size. .. _class_ViewportContainer_property_stretch_shrink: - :ref:`int` **stretch_shrink** +-----------+---------------------------+ | *Default* | 1 | +-----------+---------------------------+ | *Setter* | set_stretch_shrink(value) | +-----------+---------------------------+ | *Getter* | get_stretch_shrink() | +-----------+---------------------------+