|
tgbotxx 1.1.9.2
Telegram Bot C++ Library
|
Describes the position of a clickable area within a story https://core.telegram.org/bots/api#storyareaposition. More...
#include <StoryAreaPosition.hpp>
Public Member Functions | |
| StoryAreaPosition ()=default | |
| StoryAreaPosition (const nl::json &json) | |
| nl::json | toJson () const |
| Serializes this object to JSON. | |
| void | fromJson (const nl::json &json) |
| Deserializes this object from JSON. | |
Public Attributes | |
| float | xPercentage {} |
| The abscissa of the area's center, as a percentage of the media width. | |
| float | yPercentage {} |
| The ordinate of the area's center, as a percentage of the media height. | |
| float | widthPercentage {} |
| The width of the area's rectangle, as a percentage of the media width. | |
| float | heightPercentage {} |
| The height of the area's rectangle, as a percentage of the media height. | |
| float | rotationAngle {} |
| The clockwise rotation angle of the rectangle, in degrees; 0-360. | |
| float | cornerRadiusPercentage {} |
| The radius of the rectangle corner rounding, as a percentage of the media width. | |
Describes the position of a clickable area within a story https://core.telegram.org/bots/api#storyareaposition.
Definition at line 8 of file StoryAreaPosition.hpp.
|
default |
|
inlineexplicit |
Definition at line 10 of file StoryAreaPosition.hpp.
|
inline |
Deserializes this object from JSON.
Definition at line 46 of file StoryAreaPosition.hpp.
|
inline |
Serializes this object to JSON.
Definition at line 34 of file StoryAreaPosition.hpp.
| float tgbotxx::StoryAreaPosition::cornerRadiusPercentage {} |
The radius of the rectangle corner rounding, as a percentage of the media width.
Definition at line 30 of file StoryAreaPosition.hpp.
| float tgbotxx::StoryAreaPosition::heightPercentage {} |
The height of the area's rectangle, as a percentage of the media height.
Definition at line 24 of file StoryAreaPosition.hpp.
| float tgbotxx::StoryAreaPosition::rotationAngle {} |
The clockwise rotation angle of the rectangle, in degrees; 0-360.
Definition at line 27 of file StoryAreaPosition.hpp.
| float tgbotxx::StoryAreaPosition::widthPercentage {} |
The width of the area's rectangle, as a percentage of the media width.
Definition at line 21 of file StoryAreaPosition.hpp.
| float tgbotxx::StoryAreaPosition::xPercentage {} |
The abscissa of the area's center, as a percentage of the media width.
Definition at line 15 of file StoryAreaPosition.hpp.
| float tgbotxx::StoryAreaPosition::yPercentage {} |
The ordinate of the area's center, as a percentage of the media height.
Definition at line 18 of file StoryAreaPosition.hpp.