TDLib
Loading...
Searching...
No Matches
themeSettings Class Referencefinal

Inherits Object.

Description

Describes theme settings.

Public Member Functions

void store (TlStorerToString &s, const char *field_name) const final
 themeSettings ()
 themeSettings (object_ptr< BuiltInTheme > &&base_theme_, int32 accent_color_, object_ptr< background > &&background_, object_ptr< BackgroundFill > &&outgoing_message_fill_, bool animate_outgoing_message_fill_, int32 outgoing_message_accent_color_)
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

int32 accent_color_
 Theme accent color in ARGB format.
bool animate_outgoing_message_fill_
 If true, the freeform gradient fill needs to be animated on every sent message.
object_ptr< background > background_
 The background to be used in chats; may be null.
object_ptr< BuiltInTheme > base_theme_
 Base theme for this theme.
int32 outgoing_message_accent_color_
 Accent color of outgoing messages in ARGB format.
object_ptr< BackgroundFill > outgoing_message_fill_
 The fill to be used as a background for outgoing messages; may be null if the fill from the base theme must be used instead.

Static Public Attributes

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

Constructor & Destructor Documentation

◆ themeSettings() [1/2]

themeSettings ( )

Describes theme settings.

◆ themeSettings() [2/2]

themeSettings ( object_ptr< BuiltInTheme > && base_theme_,
int32 accent_color_,
object_ptr< background > && background_,
object_ptr< BackgroundFill > && outgoing_message_fill_,
bool animate_outgoing_message_fill_,
int32 outgoing_message_accent_color_ )

Describes theme settings.

Parameters
[in]base_theme_Base theme for this theme.
[in]accent_color_Theme accent color in ARGB format.
[in]background_The background to be used in chats; may be null.
[in]outgoing_message_fill_The fill to be used as a background for outgoing messages; may be null if the fill from the base theme must be used instead.
[in]animate_outgoing_message_fill_If true, the freeform gradient fill needs to be animated on every sent message.
[in]outgoing_message_accent_color_Accent color of outgoing messages in ARGB format.

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: