gpg::SnapshotMetadataChange::CoverImage

#include <snapshot_metadata_change_cover_image.h>

Belirli bir kapak resminin durumuyla ilgili verilere erişmenize olanak tanıyan tek bir veri yapısı.

Özet

Oluşturucular ve Yıkıcılar

CoverImage(std::shared_ptr< const SnapshotMetadataChangeCoverImageImpl > impl)
shared_ptr değerinden CoverImageImpl değerine bir CoverImage oluşturur.
CoverImage(const CoverImage & copy_from)
Mevcut bir CoverImage dosyasının bir kopyasını oluşturur.
CoverImage(CoverImage && move_from)
Mevcut bir CoverImage öğesini taşır.
~CoverImage()

Kamu işlevleri

Data() const
const std::vector< uint8_t > &
Kapak resmi olarak ayarlanacak resim verileri.
Height() const
int
Resmin piksel cinsinden yüksekliği.
MimeType() const
const std::string &
Kapak resmi olarak ayarlanacak resim dosyasının MIME türü.
Width() const
int
Resmin piksel cinsinden genişliği.
operator=(const CoverImage & copy_from)
Bu CoverImage için başka bir öğe taşıyarak CoverImage değerini atar.
operator=(CoverImage && move_from)
Bu CoverImage değerini başka bir CoverImage'dan atamak için atama operatörü.

Kamu işlevleri

CoverImage

 CoverImage(
  std::shared_ptr< const SnapshotMetadataChangeCoverImageImpl > impl
)

shared_ptr değerinden CoverImageImpl değerine bir CoverImage oluşturur.

API tarafından dahili kullanıma yöneliktir.

CoverImage

 CoverImage(
  const CoverImage & copy_from
)

Mevcut bir CoverImage dosyasının bir kopyasını oluşturur.

CoverImage

 CoverImage(
  CoverImage && move_from
)

Mevcut bir CoverImage öğesini taşır.

Veriler

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

Kapak resmi olarak ayarlanacak resim verileri.

Bu bayt vektörünün biçimi, kapak resminin MimeType() yöntemi ile tanımlanır.

Boy

int Height() const 

Resmin piksel cinsinden yüksekliği.

MimeType

const std::string & MimeType() const 

Kapak resmi olarak ayarlanacak resim dosyasının MIME türü.

Örnek "resim/png".

Genişlik

int Width() const 

Resmin piksel cinsinden genişliği.

operatör=

CoverImage & operator=(
  const CoverImage & copy_from
)

Bu CoverImage için başka bir öğe taşıyarak CoverImage değerini atar.

operatör=

CoverImage & operator=(
  CoverImage && move_from
)

Bu CoverImage değerini başka bir CoverImage'dan atamak için atama operatörü.

r değeri referans sürümünü kullanır.

~Kapak Resmi

 ~CoverImage()