TextureRect.StretchMode/stretchMode - multiple declarations
Function TextureRect.stretchMode
Controls the texture's behavior when resizing the node's bounding rectangle. See stretchmode
.
TextureRect . StretchMode stretchMode() nothrow @property @nogc;
void stretchMode
(
long v
) nothrow @property @nogc;
Enum TextureRect.StretchMode
enum StretchMode
: int { ... }
Enum members
Name | Description |
---|---|
stretchKeep
|
The texture keeps its original size and stays in the bounding rectangle's top-left corner. |
stretchKeepAspect
|
Scale the texture to fit the node's bounding rectangle, but maintain the texture's aspect ratio. |
stretchKeepAspectCentered
|
Scale the texture to fit the node's bounding rectangle, center it and maintain its aspect ratio. |
stretchKeepAspectCovered
|
Scale the texture so that the shorter side fits the bounding rectangle. The other side clips to the node's limits. |
stretchKeepCentered
|
The texture keeps its original size and stays centered in the node's bounding rectangle. |
stretchScale
|
Scale to fit the node's bounding rectangle. |
stretchScaleOnExpand
|
Scale to fit the node's bounding rectangle, only if expand is true . Default stretch_mode , for backwards compatibility. Until you set expand to true , the texture will behave like constant STRETCH_KEEP .
|
stretchTile
|
Tile inside the node's bounding rectangle. |