Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
CBC_QRCodeWriter Class Referencefinal

#include <BC_QRCodeWriter.h>

+ Inheritance diagram for CBC_QRCodeWriter:
+ Collaboration diagram for CBC_QRCodeWriter:

Public Member Functions

 CBC_QRCodeWriter ()
 
 ~CBC_QRCodeWriter () override
 
DataVector< uint8_t > Encode (WideStringView contents, int32_t ecLevel, int32_t *pOutWidth, int32_t *pOutHeight)
 
bool SetErrorCorrectionLevel (int32_t level) override
 
- Public Member Functions inherited from CBC_TwoDimWriter
 CBC_TwoDimWriter (bool bFixedSize)
 
 ~CBC_TwoDimWriter () override
 
bool RenderResult (pdfium::span< const uint8_t > code, int32_t codeWidth, int32_t codeHeight)
 
void RenderDeviceResult (CFX_RenderDevice *device, const CFX_Matrix &matrix)
 
int32_t error_correction_level () const
 
- Public Member Functions inherited from CBC_Writer
 CBC_Writer ()
 
virtual ~CBC_Writer ()
 
void SetCharEncoding (BC_CHAR_ENCODING encoding)
 
bool SetModuleHeight (int32_t moduleHeight)
 
bool SetModuleWidth (int32_t moduleWidth)
 
void SetHeight (int32_t height)
 
void SetWidth (int32_t width)
 
virtual void SetTextLocation (BC_TEXT_LOC location)
 
virtual bool SetWideNarrowRatio (int8_t ratio)
 
virtual bool SetStartChar (char start)
 
virtual bool SetEndChar (char end)
 

Additional Inherited Members

- Protected Member Functions inherited from CBC_TwoDimWriter
void set_error_correction_level (int32_t level)
 
- Protected Attributes inherited from CBC_Writer
int32_t m_ModuleHeight = 1
 
int32_t m_ModuleWidth = 1
 
int32_t m_Height = 320
 
int32_t m_Width = 640
 
FXDIB_Format m_colorSpace = FXDIB_Format::kArgb
 
BC_CHAR_ENCODING m_CharEncoding = BC_CHAR_ENCODING::kUTF8
 
- Static Protected Attributes inherited from CBC_Writer
static const FX_ARGB kBarColor = 0xff000000
 
static const FX_ARGB kBackgroundColor = 0xffffffff
 

Detailed Description

Definition at line 16 of file BC_QRCodeWriter.h.

Constructor & Destructor Documentation

◆ CBC_QRCodeWriter()

CBC_QRCodeWriter::CBC_QRCodeWriter ( )

Definition at line 38 of file BC_QRCodeWriter.cpp.

References CBC_TwoDimWriter::CBC_TwoDimWriter().

+ Here is the call graph for this function:

◆ ~CBC_QRCodeWriter()

CBC_QRCodeWriter::~CBC_QRCodeWriter ( )
overridedefault

Member Function Documentation

◆ Encode()

DataVector< uint8_t > CBC_QRCodeWriter::Encode ( WideStringView contents,
int32_t ecLevel,
int32_t * pOutWidth,
int32_t * pOutHeight )

Definition at line 50 of file BC_QRCodeWriter.cpp.

References CBC_QRCoderEncoder::Encode(), CBC_QRCoder::GetMatrixWidth(), CBC_QRCoderErrorCorrectionLevel::H, CBC_QRCoderErrorCorrectionLevel::L, CBC_QRCoderErrorCorrectionLevel::M, and CBC_QRCoderErrorCorrectionLevel::Q.

+ Here is the call graph for this function:

◆ SetErrorCorrectionLevel()

bool CBC_QRCodeWriter::SetErrorCorrectionLevel ( int32_t level)
overridevirtual

Reimplemented from CBC_Writer.

Definition at line 42 of file BC_QRCodeWriter.cpp.

References CBC_TwoDimWriter::set_error_correction_level().

+ Here is the call graph for this function:

The documentation for this class was generated from the following files: