gpg:: SnapshotMetadataChange:: 封面图片
#include <snapshot_metadata_change_cover_image.h>
单个数据结构,允许您访问有关特定封面图片状态的数据。
总结
构造函数和析构函数 |
|
---|---|
CoverImage(std::shared_ptr< const SnapshotMetadataChangeCoverImageImpl > impl)
|
|
CoverImage(const CoverImage & copy_from)
创建现有
CoverImage 的副本。 |
|
CoverImage(CoverImage && move_from)
移动现有的
CoverImage 。 |
|
~CoverImage()
|
公共函数 |
|
---|---|
Data() const
|
const std::vector< uint8_t > &
要设为封面的图片数据。
|
Height() const
|
int
图片的高度,以像素为单位。
|
MimeType() const
|
const std::string &
要设为封面图片的图片文件的 MIME 类型。
|
Width() const
|
int
图片的宽度,以像素为单位。
|
operator=(const CoverImage & copy_from)
|
通过将另一个
CoverImage 移入其中来分配此对象。 |
operator=(CoverImage && move_from)
|
用于从另一个 CoverImage 指定此 CoverImage 值的赋值运算符。
|
公共函数
封面图片
CoverImage( std::shared_ptr< const SnapshotMetadataChangeCoverImageImpl > impl )
从 shared_ptr
构造到 CoverImageImpl
的 CoverImage
。
供 API 内部使用。
身高
int Height() const
图片的高度,以像素为单位。
MimeType
const std::string & MimeType() const
要设为封面图片的图片文件的 MIME 类型。
示例:“image/png”。
宽度
int Width() const
图片的宽度,以像素为单位。
运算符=
CoverImage & operator=( CoverImage && move_from )
用于从另一个 CoverImage 指定此 CoverImage 值的赋值运算符。
r-value-reference 版本。
~封面图片
~CoverImage()