gpg::SnapshotMetadataChange::封面图片

#include <snapshot_metadata_change_cover_image.h>

单个数据结构,允许您访问有关特定封面图片状态的数据。

总结

构造函数和析构函数

CoverImage(std::shared_ptr< const SnapshotMetadataChangeCoverImageImpl > impl)
shared_ptr 构造到 CoverImageImplCoverImage
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 构造到 CoverImageImplCoverImage

供 API 内部使用。

封面图片

 CoverImage(
  const CoverImage & copy_from
)

创建现有 CoverImage 的副本。

封面图片

 CoverImage(
  CoverImage && move_from
)

移动现有的 CoverImage

数据

const std::vector< uint8_t > & Data() const 

要设为封面的图片数据。

该字节矢量的格式由封面图片的 MimeType() 定义。

身高

int Height() const 

图片的高度,以像素为单位。

MimeType

const std::string & MimeType() const 

要设为封面图片的图片文件的 MIME 类型。

示例:“image/png”。

宽度

int Width() const 

图片的宽度,以像素为单位。

运算符=

CoverImage & operator=(
  const CoverImage & copy_from
)

通过将另一个CoverImage移入其中来分配此对象。

运算符=

CoverImage & operator=(
  CoverImage && move_from
)

用于从另一个 CoverImage 指定此 CoverImage 值的赋值运算符。

r-value-reference 版本。

~封面图片

 ~CoverImage()