Enumerationmigueldeicaza.swiftgodot 0.45.0SwiftGodot
StretchMode
AspectRatioContainer.swift:13enum 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
var alignmentHorizontal: AspectRatioContainer.AlignmentMode
Specifies the horizontal relative position of child controls.
var alignmentVertical: AspectRatioContainer.AlignmentMode
Specifies the vertical relative position of child controls.
var ratio: Double
The aspect ratio to enforce on child controls. This is the width divided by the height. The ratio depends on the
stretchMode
.var stretchMode: AspectRatioContainer.StretchMode
The stretch mode used to align child controls.
Citizens in SwiftGodot
Conformances
protocol CaseIterable
A type that provides a collection of all of its values.
protocol CustomDebugStringConvertible
A type with a customized textual representation suitable for debugging purposes.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.protocol RawRepresentable<RawValue>
A type that can be converted to and from an associated raw value.
Type members
Instance members
var debugDescription: String
A textual representation of this instance, suitable for debugging
Type features
static func != (lhs: Self, rhs: Self
) -> Bool Returns a Boolean value indicating whether two values are not equal.