TDLib
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
updateAccentColors Class Referencefinal

Inherits Update.

Description

The list of supported accent colors has changed.

Public Member Functions

void store (TlStorerToString &s, const char *field_name) const final
 
 updateAccentColors ()
 
 updateAccentColors (array< object_ptr< accentColor > > &&colors_, array< int32 > &&available_accent_color_ids_)
 
- Public Member Functions inherited from TlObject
TlObject & operator= (const TlObject &)=delete
 
TlObject & operator= (TlObject &&)=default
 
virtual void store (TlStorerCalcLength &s) const
 
virtual void store (TlStorerUnsafe &s) const
 
 TlObject ()=default
 
 TlObject (const TlObject &)=delete
 
 TlObject (TlObject &&)=default
 
virtual ~TlObject ()=default
 

Public Attributes

array< int32 > available_accent_color_ids_
 The list of accent color identifiers, which can be set through setAccentColor and setChatAccentColor. The colors must be shown in the specified order.
 
array< object_ptr< accentColor > > colors_
 Information about supported colors; colors with identifiers 0 (red), 1 (orange), 2 (purple/violet), 3 (green), 4 (cyan), 5 (blue), 6 (pink) must always be supported and aren't included in the list. The exact colors for the accent colors with identifiers 0-6 must be taken from the application theme.
 

Static Public Attributes

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

Constructor & Destructor Documentation

◆ updateAccentColors() [1/2]

The list of supported accent colors has changed.

◆ updateAccentColors() [2/2]

updateAccentColors ( array< object_ptr< accentColor > > &&  colors_,
array< int32 > &&  available_accent_color_ids_ 
)

The list of supported accent colors has changed.

Parameters
[in]colors_Information about supported colors; colors with identifiers 0 (red), 1 (orange), 2 (purple/violet), 3 (green), 4 (cyan), 5 (blue), 6 (pink) must always be supported and aren't included in the list. The exact colors for the accent colors with identifiers 0-6 must be taken from the application theme.
[in]available_accent_color_ids_The list of accent color identifiers, which can be set through setAccentColor and setChatAccentColor. The colors must be shown in the specified order.

Member Function Documentation

◆ store()

void 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 TlObject.


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