StretchMode

    AspectRatioContainer.swift:13
    enum StretchMode

    Cases

    • case widthControlsHeight

      The height of child controls is automatically adjusted based on the width of the container.

    • case heightControlsWidth

      The width of child controls is automatically adjusted based on the height of the container.

    • case fit

      The bounding rectangle of child controls is automatically adjusted to fit inside the container while keeping the aspect ratio.

    • case cover

      The width and height of child controls is automatically adjusted to make their bounding rectangle cover the entire area of the container while keeping the aspect ratio.

    Other members in extension

    Types

    Type members

    Instance members

    Citizens in SwiftGodot

    Conformances

    Type members

    Instance members

    Type features

    Instance features