tgbot-cpp
Loading...
Searching...
No Matches
TgBot::StoryAreaPosition Struct Reference

Describes the position of a clickable area within a story. More...

#include <Types.h>

Public Types

using Ptr = std::shared_ptr<StoryAreaPosition>

Public Attributes

double xPercentage { }
 The abscissa of the area's center, as a percentage of the media width.
double yPercentage { }
 The ordinate of the area's center, as a percentage of the media height.
double widthPercentage { }
 The width of the area's rectangle, as a percentage of the media width.
double heightPercentage { }
 The height of the area's rectangle, as a percentage of the media height.
double rotationAngle { }
 The clockwise rotation angle of the rectangle, in degrees; 0-360.
double cornerRadiusPercentage { }
 The radius of the rectangle corner rounding, as a percentage of the media width.

Detailed Description

Describes the position of a clickable area within a story.

Definition at line 13530 of file Types.h.

Member Typedef Documentation

◆ Ptr

Definition at line 13531 of file Types.h.

Member Data Documentation

◆ cornerRadiusPercentage

double TgBot::StoryAreaPosition::cornerRadiusPercentage { }

The radius of the rectangle corner rounding, as a percentage of the media width.

Definition at line 13561 of file Types.h.

◆ heightPercentage

double TgBot::StoryAreaPosition::heightPercentage { }

The height of the area's rectangle, as a percentage of the media height.

Definition at line 13551 of file Types.h.

◆ rotationAngle

double TgBot::StoryAreaPosition::rotationAngle { }

The clockwise rotation angle of the rectangle, in degrees; 0-360.

Definition at line 13556 of file Types.h.

◆ widthPercentage

double TgBot::StoryAreaPosition::widthPercentage { }

The width of the area's rectangle, as a percentage of the media width.

Definition at line 13546 of file Types.h.

◆ xPercentage

double TgBot::StoryAreaPosition::xPercentage { }

The abscissa of the area's center, as a percentage of the media width.

Definition at line 13536 of file Types.h.

◆ yPercentage

double TgBot::StoryAreaPosition::yPercentage { }

The ordinate of the area's center, as a percentage of the media height.

Definition at line 13541 of file Types.h.


The documentation for this struct was generated from the following file: