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

This object describes the way a background is filled based on the selected colors. It can be one of: More...

#include <BackgroundFill.hpp>

Inheritance diagram for tgbotxx::BackgroundFill:
tgbotxx::BackgroundFillFreeformGradient tgbotxx::BackgroundFillGradient tgbotxx::BackgroundFillSolid

Public Member Functions

 BackgroundFill ()=default
 
 BackgroundFill (const nl::json &json)
 
virtual ~BackgroundFill ()=default
 
virtual nl::json toJson () const
 
virtual void fromJson (const nl::json &json)
 

Public Attributes

std::string type
 Type of the background fill, one of "solid", "gradient", "freeform_gradient".
 

Detailed Description

This object describes the way a background is filled based on the selected colors. It can be one of:

Definition at line 11 of file BackgroundFill.hpp.

Constructor & Destructor Documentation

◆ BackgroundFill() [1/2]

tgbotxx::BackgroundFill::BackgroundFill ( )
default

◆ BackgroundFill() [2/2]

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

Definition at line 13 of file BackgroundFill.hpp.

◆ ~BackgroundFill()

virtual tgbotxx::BackgroundFill::~BackgroundFill ( )
virtualdefault

Member Function Documentation

◆ fromJson()

virtual void tgbotxx::BackgroundFill::fromJson ( const nl::json &  json)
inlinevirtual

◆ toJson()

virtual nl::json tgbotxx::BackgroundFill::toJson ( ) const
inlinevirtual

Member Data Documentation

◆ type

std::string tgbotxx::BackgroundFill::type

Type of the background fill, one of "solid", "gradient", "freeform_gradient".

Definition at line 19 of file BackgroundFill.hpp.


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