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

The background is filled using the selected solid color. https://core.telegram.org/bots/api#backgroundfillsolid. More...

#include <BackgroundFill.hpp>

Inheritance diagram for tgbotxx::BackgroundFillSolid:
tgbotxx::BackgroundFill

Public Member Functions

 BackgroundFillSolid ()
 
 BackgroundFillSolid (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 color {}
 The color of the background fill in the RGB24 format.
 
- 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 filled using the selected solid color. https://core.telegram.org/bots/api#backgroundfillsolid.

Definition at line 39 of file BackgroundFill.hpp.

Constructor & Destructor Documentation

◆ BackgroundFillSolid() [1/2]

tgbotxx::BackgroundFillSolid::BackgroundFillSolid ( )
inline

Definition at line 40 of file BackgroundFill.hpp.

◆ BackgroundFillSolid() [2/2]

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

Definition at line 43 of file BackgroundFill.hpp.

Member Function Documentation

◆ fromJson()

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

Reimplemented from tgbotxx::BackgroundFill.

Definition at line 56 of file BackgroundFill.hpp.

◆ toJson()

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

Reimplemented from tgbotxx::BackgroundFill.

Definition at line 50 of file BackgroundFill.hpp.

Member Data Documentation

◆ color

std::int32_t tgbotxx::BackgroundFillSolid::color {}

The color of the background fill in the RGB24 format.

Definition at line 48 of file BackgroundFill.hpp.


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