tgbotxx 1.1.9.2
Telegram Bot C++ Library
Loading...
Searching...
No Matches
tgbotxx::BackgroundFillGradient Struct Reference

The background is a gradient fill. https://core.telegram.org/bots/api#backgroundfillgradient. More...

#include <BackgroundFill.hpp>

Inheritance diagram for tgbotxx::BackgroundFillGradient:
tgbotxx::BackgroundFill

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".
 

Detailed Description

The background is a gradient fill. https://core.telegram.org/bots/api#backgroundfillgradient.

Definition at line 64 of file BackgroundFill.hpp.

Constructor & Destructor Documentation

◆ BackgroundFillGradient() [1/2]

tgbotxx::BackgroundFillGradient::BackgroundFillGradient ( )
inline

Definition at line 65 of file BackgroundFill.hpp.

◆ BackgroundFillGradient() [2/2]

tgbotxx::BackgroundFillGradient::BackgroundFillGradient ( const nl::json &  json)
inlineexplicit

Definition at line 68 of file BackgroundFill.hpp.

Member Function Documentation

◆ fromJson()

void tgbotxx::BackgroundFillGradient::fromJson ( const nl::json &  json)
inlineoverridevirtual

Reimplemented from tgbotxx::BackgroundFill.

Definition at line 89 of file BackgroundFill.hpp.

◆ toJson()

nl::json tgbotxx::BackgroundFillGradient::toJson ( ) const
inlineoverridevirtual

Reimplemented from tgbotxx::BackgroundFill.

Definition at line 81 of file BackgroundFill.hpp.

Member Data Documentation

◆ bottomColor

std::int32_t tgbotxx::BackgroundFillGradient::bottomColor {}

Bottom color of the gradient in the RGB24 format.

Definition at line 76 of file BackgroundFill.hpp.

◆ rotationAngle

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.

◆ topColor

std::int32_t tgbotxx::BackgroundFillGradient::topColor {}

Top color of the gradient in the RGB24 format.

Definition at line 73 of file BackgroundFill.hpp.


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