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

Inherits td::td_api::Object.

Public Member Functions

 maskPosition ()
 
 maskPosition (object_ptr< MaskPoint > &&point_, double x_shift_, double y_shift_, double scale_)
 
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< MaskPointpoint_
 Part of the face, relative to which the mask is placed.
 
double x_shift_
 Shift by X-axis measured in widths of the mask scaled to the face size, from left to right. (For example, -1.0 will place the mask just to the left of the default mask position.)
 
double y_shift_
 Shift by Y-axis measured in heights of the mask scaled to the face size, from top to bottom. (For example, 1.0 will place the mask just below the default mask position.)
 
double scale_
 Mask scaling coefficient. (For example, 2.0 means a doubled size.)
 

Static Public Attributes

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

Detailed Description

Position on a photo where a mask is placed.

Constructor & Destructor Documentation

◆ maskPosition() [1/2]

td::td_api::maskPosition::maskPosition ( )

Position on a photo where a mask is placed.

◆ maskPosition() [2/2]

td::td_api::maskPosition::maskPosition ( object_ptr< MaskPoint > &&  point_,
double  x_shift_,
double  y_shift_,
double  scale_ 
)

Position on a photo where a mask is placed.

Parameters
[in]point_Part of the face, relative to which the mask is placed.
[in]x_shift_Shift by X-axis measured in widths of the mask scaled to the face size, from left to right. (For example, -1.0 will place the mask just to the left of the default mask position.)
[in]y_shift_Shift by Y-axis measured in heights of the mask scaled to the face size, from top to bottom. (For example, 1.0 will place the mask just below the default mask position.)
[in]scale_Mask scaling coefficient. (For example, 2.0 means a doubled size.)

Member Function Documentation

◆ get_id()

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

Returns identifier uniquely determining a type of the object.

Returns
this->ID.

Implements td::TlObject.

◆ store()

void td::td_api::maskPosition::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: