Enumerationmigueldeicaza.swiftgodot 0.45.0SwiftGodot
AxisStretchMode
StyleBoxTexture.swift:13enum AxisStretchMode
Cases
case stretch
Stretch the stylebox’s texture. This results in visible distortion unless the texture size matches the stylebox’s size perfectly.
case tile
Repeats the stylebox’s texture to match the stylebox’s size according to the nine-patch system.
case tileFit
Repeats the stylebox’s texture to match the stylebox’s size according to the nine-patch system. Unlike .tile, the texture may be slightly stretched to make the nine-patch texture tile seamlessly.
Other members in extension
View members
Hide members
This section is hidden by default because it contains too many (17) members.
Type members
Instance members
var axisStretchHorizontal: StyleBoxTexture.AxisStretchMode
Controls how the stylebox’s texture will be stretched or tiled horizontally. See
AxisStretchMode
for possible values.var axisStretchVertical: StyleBoxTexture.AxisStretchMode
Controls how the stylebox’s texture will be stretched or tiled vertically. See
AxisStretchMode
for possible values.var drawCenter: Bool
If
true
, the nine-patch texture’s center tile will be drawn.var expandMarginBottom: Double
Expands the bottom margin of this style box when drawing, causing it to be drawn larger than requested.
var expandMarginLeft: Double
Expands the left margin of this style box when drawing, causing it to be drawn larger than requested.
var expandMarginRight: Double
Expands the right margin of this style box when drawing, causing it to be drawn larger than requested.
var expandMarginTop: Double
Expands the top margin of this style box when drawing, causing it to be drawn larger than requested.
var modulateColor: Color
Modulates the color of the texture when this style box is drawn.
var regionRect: Rect2
Species a sub-region of the texture to use.
var texture: Texture2D?
The texture to use when drawing this style box.
var textureMarginBottom: Double
Increases the bottom margin of the 3×3 texture box.
var textureMarginLeft: Double
Increases the left margin of the 3×3 texture box.
var textureMarginRight: Double
Increases the right margin of the 3×3 texture box.
var textureMarginTop: Double
Increases the top margin of the 3×3 texture box.
func setExpandMarginAll(size: Double
) Sets the expand margin to
size
pixels for all sides.func setTextureMarginAll(size: Double
) Sets the margin to
size
pixels for all sides.
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.