OpenSiv3D  v0.6.5
C++20 framework for creative coding
s3d::QRContent Struct Reference

QR コードのスキャン結果 More...

#include <QRContent.hpp>

Public Member Functions

bool isValid () const noexcept
 スキャン結果が有効なデータであるかを返します。 More...
 
 operator bool () const noexcept
 スキャン結果が有効なデータであるかを返します。 More...
 
void clear ()
 スキャン結果をクリアします。 More...
 

Public Attributes

Quad quad = Quad{ {0, 0}, {0, 0}, {0, 0}, {0, 0} }
 画像中の QR コードの領域 More...
 
String text
 テキスト More...
 
Blob binary
 バイナリ More...
 
int32 version = 0
 QR コードのサイズ(バージョン) More...
 
QRMode mode = QRMode::Invalid
 QR コードのデータの種類 More...
 
QRErrorCorrection ec = QRErrorCorrection::Low
 QR コードの誤り訂正レベル More...
 

Detailed Description

QR コードのスキャン結果

Member Function Documentation

◆ clear()

void s3d::QRContent::clear ( )

スキャン結果をクリアします。

◆ isValid()

bool s3d::QRContent::isValid ( ) const
noexcept

スキャン結果が有効なデータであるかを返します。

Returns
有効なデータの場合 true, それ以外の場合は false

◆ operator bool()

s3d::QRContent::operator bool ( ) const
explicitnoexcept

スキャン結果が有効なデータであるかを返します。

Remarks
isValid() と同じです。
Returns
有効なデータの場合 true, それ以外の場合は false

Member Data Documentation

◆ binary

Blob s3d::QRContent::binary

バイナリ

◆ ec

QR コードの誤り訂正レベル

◆ mode

QRMode s3d::QRContent::mode = QRMode::Invalid

QR コードのデータの種類

◆ quad

Quad s3d::QRContent::quad = Quad{ {0, 0}, {0, 0}, {0, 0}, {0, 0} }

画像中の QR コードの領域

◆ text

String s3d::QRContent::text

テキスト

◆ version

int32 s3d::QRContent::version = 0

QR コードのサイズ(バージョン)


The documentation for this struct was generated from the following file: