|
tgbotxx 1.1.9.2
Telegram Bot C++ Library
|
The background is a gradient fill. https://core.telegram.org/bots/api#backgroundfillgradient. More...
#include <BackgroundFill.hpp>
Public Member Functions | |
| BackgroundFillGradient () | |
| BackgroundFillGradient (const nl::json &json) | |
| nl::json | toJson () const override |
| void | fromJson (const nl::json &json) override |
Public Member Functions inherited from tgbotxx::BackgroundFill | |
| BackgroundFill ()=default | |
| BackgroundFill (const nl::json &json) | |
| virtual | ~BackgroundFill ()=default |
Public Attributes | |
| std::int32_t | topColor {} |
| Top color of the gradient in the RGB24 format. | |
| std::int32_t | bottomColor {} |
| Bottom color of the gradient in the RGB24 format. | |
| std::int32_t | rotationAngle {} |
| Clockwise rotation angle of the background fill in degrees; 0-359. | |
Public Attributes inherited from tgbotxx::BackgroundFill | |
| std::string | type |
| Type of the background fill, one of "solid", "gradient", "freeform_gradient". | |
The background is a gradient fill. https://core.telegram.org/bots/api#backgroundfillgradient.
Definition at line 64 of file BackgroundFill.hpp.
|
inline |
Definition at line 65 of file BackgroundFill.hpp.
|
inlineexplicit |
Definition at line 68 of file BackgroundFill.hpp.
|
inlineoverridevirtual |
Reimplemented from tgbotxx::BackgroundFill.
Definition at line 89 of file BackgroundFill.hpp.
|
inlineoverridevirtual |
Reimplemented from tgbotxx::BackgroundFill.
Definition at line 81 of file BackgroundFill.hpp.
| std::int32_t tgbotxx::BackgroundFillGradient::bottomColor {} |
Bottom color of the gradient in the RGB24 format.
Definition at line 76 of file BackgroundFill.hpp.
| std::int32_t tgbotxx::BackgroundFillGradient::rotationAngle {} |
Clockwise rotation angle of the background fill in degrees; 0-359.
Definition at line 79 of file BackgroundFill.hpp.
| std::int32_t tgbotxx::BackgroundFillGradient::topColor {} |
Top color of the gradient in the RGB24 format.
Definition at line 73 of file BackgroundFill.hpp.