Layer 220
MediaAreaCoordinates
Coordinates and size of a clickable rectangular area on top of a story.
constructor
mediaAreaCoordinates#cfc9e002 flags:# x:double y:double w:double h:double rotation:double radius:flags.0?double = MediaAreaCoordinates;
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| X | double | The abscissa of the rectangle's center, as a percentage of the media width (0-100). |
| Y | double | The ordinate of the rectangle's center, as a percentage of the media height (0-100). |
| W | double | The width of the rectangle, as a percentage of the media width (0-100). |
| H | double | The height of the rectangle, as a percentage of the media height (0-100). |
| Rotation | double | Clockwise rotation angle of the rectangle, in degrees (0-360). |
| Radius | flags.0?double | The radius of the rectangle corner rounding, as a percentage of the media width. |
Returns
MediaAreaCoordinatesGogram Example
// Creating MediaAreaCoordinates constructor obj := &tg.MediaAreaCoordinates{ X: 0.0, Y: 0.0, W: 0.0, H: 0.0, Rotation: 0.0, // Optional fields: // Radius: 0.0, }