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

Inherits PageBlock.

Description

An embedded web page; instant view only.

Public Member Functions

 pageBlockEmbedded ()
 pageBlockEmbedded (string const &url_, string const &html_, object_ptr< photo > &&poster_photo_, int32 width_, int32 height_, object_ptr< pageBlockCaption > &&caption_, bool is_full_width_, bool allow_scrolling_)
void store (TlStorerToString &s, const char *field_name) const final
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

bool allow_scrolling_
 True, if scrolling needs to be allowed.
object_ptr< pageBlockCaption > caption_
 Block caption; may be null if none.
int32 height_
 Block height; 0 if unknown.
string html_
 HTML-markup of the embedded page.
bool is_full_width_
 True, if the block must be full width.
object_ptr< photo > poster_photo_
 Poster photo, if available; may be null.
string url_
 URL of the embedded page, if available.
int32 width_
 Block width; 0 if unknown.

Static Public Attributes

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

Constructor & Destructor Documentation

◆ pageBlockEmbedded() [1/2]

pageBlockEmbedded ( )

An embedded web page; instant view only.

◆ pageBlockEmbedded() [2/2]

pageBlockEmbedded ( string const & url_,
string const & html_,
object_ptr< photo > && poster_photo_,
int32 width_,
int32 height_,
object_ptr< pageBlockCaption > && caption_,
bool is_full_width_,
bool allow_scrolling_ )

An embedded web page; instant view only.

Parameters
[in]url_URL of the embedded page, if available.
[in]html_HTML-markup of the embedded page.
[in]poster_photo_Poster photo, if available; may be null.
[in]width_Block width; 0 if unknown.
[in]height_Block height; 0 if unknown.
[in]caption_Block caption; may be null if none.
[in]is_full_width_True, if the block must be full width.
[in]allow_scrolling_True, if scrolling needs to be allowed.

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: