-
Notifications
You must be signed in to change notification settings - Fork 0
TextureButton StretchModeEnum
Home | API by Category | Complete API Index | API Compatibility
| Field | Value |
|---|---|
| Full name | Electron2D.TextureButton.StretchModeEnum |
| Namespace | Electron2D |
| Kind | enum |
| Category | UI and Text |
Identifies how a texture button scales its selected texture.
public enum Electron2D.TextureButton.StretchModeEnum : System.IComparable, System.IConvertible, System.IFormattable, System.ISpanFormattableProfile: Electron2D 0.1.0 2D
Status: Supported / Parity verified
Out of profile: no
Godot reference: TextureButton.StretchMode
Scale, tile, keep, centered and aspect-preserving draw modes for TextureButton.
The values use the same numeric order as Electron2D.TextureRect.StretchModeEnum.
This enum is immutable and is safe to use from any thread.
This enum is available since Electron2D 0.1.0 Preview.
Electron2D.TextureButton.StretchMode
| Member | Kind | Summary |
|---|---|---|
Keep |
Enum value | Keeps the texture size at the top-left corner. |
KeepAspect |
Enum value | Fits the texture inside the control while preserving aspect ratio. |
KeepAspectCentered |
Enum value | Fits the texture inside the control and centers it. |
KeepAspectCovered |
Enum value | Covers the control while preserving aspect ratio. |
KeepCentered |
Enum value | Keeps the texture size and centers it. |
Scale |
Enum value | Scales the texture to the control rectangle. |
Tile |
Enum value | Draws the texture in the control rectangle. |
Kind: Enum value
public const Electron2D.TextureButton.StretchModeEnum KeepKeeps the texture size at the top-left corner.
Use this value to avoid scaling.
This value is available since Electron2D 0.1.0 Preview.
Electron2D.TextureButton.StretchModeEnum
Kind: Enum value
public const Electron2D.TextureButton.StretchModeEnum KeepAspectFits the texture inside the control while preserving aspect ratio.
Use this value when clipping is not desired.
This value is available since Electron2D 0.1.0 Preview.
Electron2D.TextureButton.StretchModeEnum
Kind: Enum value
public const Electron2D.TextureButton.StretchModeEnum KeepAspectCenteredFits the texture inside the control and centers it.
Use this value for centered aspect-ratio drawing.
This value is available since Electron2D 0.1.0 Preview.
Electron2D.TextureButton.StretchModeEnum
Kind: Enum value
public const Electron2D.TextureButton.StretchModeEnum KeepAspectCoveredCovers the control while preserving aspect ratio.
The destination rectangle can extend outside the control area.
This value is available since Electron2D 0.1.0 Preview.
Electron2D.TextureButton.StretchModeEnum
Kind: Enum value
public const Electron2D.TextureButton.StretchModeEnum KeepCenteredKeeps the texture size and centers it.
Use this value to draw fixed-size centered button art.
This value is available since Electron2D 0.1.0 Preview.
Electron2D.TextureButton.StretchModeEnum
Kind: Enum value
public const Electron2D.TextureButton.StretchModeEnum ScaleScales the texture to the control rectangle.
Use this value with Electron2D.TextureButton.StretchMode.
This value is available since Electron2D 0.1.0 Preview.
Electron2D.TextureButton.StretchModeEnum
Kind: Enum value
public const Electron2D.TextureButton.StretchModeEnum TileDraws the texture in the control rectangle.
Repeating tiles are not split into public draw calls.
This value is available since Electron2D 0.1.0 Preview.
Electron2D.TextureButton.StretchModeEnum
Electron2D 0.1.0 Preview API reference. Generated from 175 public runtime types.