Layer 224
MediaAreaCoordinatesObj
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 |
|---|---|---|
| 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 MediaAreaCoordinatesObj constructor obj := &tg.MediaAreaCoordinatesObj{ X: 3.14159, Y: 3.14159, W: 3.14159, H: 3.14159, Rotation: 3.14159, // Optional fields: // Radius: 3.14159, }