TextureButton.StretchMode/stretchMode - multiple declarations
Function TextureButton.stretchMode
Controls the texture's behavior when you resize the node's bounding rectangle, only if expand
is true
. Set it to one of the stretchmode
constants. See the constants to learn more.
TextureButton . StretchMode stretchMode() nothrow @property @nogc;
void stretchMode
(
long v
) nothrow @property @nogc;
Enum TextureButton.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. |
stretchTile
|
Tile inside the node's bounding rectangle. |