TDLib
Loading...
Searching...
No Matches
td::td_api::backgroundTypePattern Class Referencefinal

Inherits td::td_api::BackgroundType.

Public Member Functions

 backgroundTypePattern ()
 
 backgroundTypePattern (object_ptr< BackgroundFill > &&fill_, int32 intensity_, bool is_inverted_, bool is_moving_)
 
std::int32_t get_id () const final
 
void store (TlStorerToString &s, const char *field_name) const final
 
- Public Member Functions inherited from td::TlObject
virtual void store (TlStorerUnsafe &s) const
 
virtual void store (TlStorerCalcLength &s) const
 
 TlObject ()=default
 
 TlObject (const TlObject &)=delete
 
TlObjectoperator= (const TlObject &)=delete
 
 TlObject (TlObject &&)=default
 
TlObjectoperator= (TlObject &&)=default
 
virtual ~TlObject ()=default
 

Public Attributes

object_ptr< BackgroundFillfill_
 Fill of the background.
 
int32 intensity_
 Intensity of the pattern when it is shown above the filled background; 0-100.
 
bool is_inverted_
 True, if the background fill must be applied only to the pattern itself. All other pixels are black in this case. For dark themes only.
 
bool is_moving_
 True, if the background needs to be slightly moved when device is tilted.
 

Static Public Attributes

static const std::int32_t ID = 1290213117
 Identifier uniquely determining a type of the object.
 

Detailed Description

A PNG or TGV (gzipped subset of SVG with MIME type "application/x-tgwallpattern") pattern to be combined with the background fill chosen by the user.

Constructor & Destructor Documentation

◆ backgroundTypePattern() [1/2]

td::td_api::backgroundTypePattern::backgroundTypePattern ( )

A PNG or TGV (gzipped subset of SVG with MIME type "application/x-tgwallpattern") pattern to be combined with the background fill chosen by the user.

◆ backgroundTypePattern() [2/2]

td::td_api::backgroundTypePattern::backgroundTypePattern ( object_ptr< BackgroundFill > &&  fill_,
int32  intensity_,
bool  is_inverted_,
bool  is_moving_ 
)

A PNG or TGV (gzipped subset of SVG with MIME type "application/x-tgwallpattern") pattern to be combined with the background fill chosen by the user.

Parameters
[in]fill_Fill of the background.
[in]intensity_Intensity of the pattern when it is shown above the filled background; 0-100.
[in]is_inverted_True, if the background fill must be applied only to the pattern itself. All other pixels are black in this case. For dark themes only.
[in]is_moving_True, if the background needs to be slightly moved when device is tilted.

Member Function Documentation

◆ get_id()

std::int32_t td::td_api::backgroundTypePattern::get_id ( ) const
inlinefinalvirtual

Returns identifier uniquely determining a type of the object.

Returns
this->ID.

Implements td::TlObject.

◆ store()

void td::td_api::backgroundTypePattern::store ( TlStorerToString &  s,
const char *  field_name 
) const
finalvirtual

Helper function for to_string method. Appends string representation of the object to the storer.

Parameters
[in]sStorer to which object string representation will be appended.
[in]field_nameObject field_name if applicable.

Implements td::TlObject.


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