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_TwoDimWriter Class Reference

#include <BC_TwoDimWriter.h>

+ Inheritance diagram for CBC_TwoDimWriter:
+ Collaboration diagram for CBC_TwoDimWriter:

Public Member Functions

 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)
 
virtual bool SetErrorCorrectionLevel (int32_t level)
 

Protected Member Functions

void set_error_correction_level (int32_t level)
 

Additional Inherited Members

- 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 19 of file BC_TwoDimWriter.h.

Constructor & Destructor Documentation

◆ CBC_TwoDimWriter()

CBC_TwoDimWriter::CBC_TwoDimWriter ( bool bFixedSize)
explicit

Definition at line 20 of file BC_TwoDimWriter.cpp.

Referenced by CBC_DataMatrixWriter::CBC_DataMatrixWriter(), CBC_PDF417Writer::CBC_PDF417Writer(), and CBC_QRCodeWriter::CBC_QRCodeWriter().

+ Here is the caller graph for this function:

◆ ~CBC_TwoDimWriter()

CBC_TwoDimWriter::~CBC_TwoDimWriter ( )
overridedefault

Member Function Documentation

◆ error_correction_level()

int32_t CBC_TwoDimWriter::error_correction_level ( ) const
inline

Definition at line 29 of file BC_TwoDimWriter.h.

Referenced by CBC_PDF417Writer::Encode().

+ Here is the caller graph for this function:

◆ RenderDeviceResult()

void CBC_TwoDimWriter::RenderDeviceResult ( CFX_RenderDevice * device,
const CFX_Matrix & matrix )

Definition at line 84 of file BC_TwoDimWriter.cpp.

References CFX_Matrix::CFX_Matrix(), CFX_Path::AppendRect(), CFX_Matrix::Concat(), CFX_RenderDevice::DrawPath(), CFX_FillRenderOptions::EvenOddOptions(), CBC_Writer::kBackgroundColor, CBC_Writer::kBarColor, CBC_Writer::m_Height, CBC_Writer::m_Width, CFX_Matrix::operator=(), and CFX_FillRenderOptions::WindingOptions().

Referenced by CBC_DataMatrix::RenderDevice(), CBC_PDF417I::RenderDevice(), and CBC_QRCode::RenderDevice().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RenderResult()

bool CBC_TwoDimWriter::RenderResult ( pdfium::span< const uint8_t > code,
int32_t codeWidth,
int32_t codeHeight )

Definition at line 25 of file BC_TwoDimWriter.cpp.

References CBC_Writer::m_Height, CBC_Writer::m_ModuleHeight, CBC_Writer::m_ModuleWidth, and CBC_Writer::m_Width.

Referenced by CBC_DataMatrix::Encode(), CBC_PDF417I::Encode(), and CBC_QRCode::Encode().

+ Here is the caller graph for this function:

◆ set_error_correction_level()

void CBC_TwoDimWriter::set_error_correction_level ( int32_t level)
inlineprotected

Definition at line 32 of file BC_TwoDimWriter.h.

Referenced by CBC_DataMatrixWriter::SetErrorCorrectionLevel(), CBC_PDF417Writer::SetErrorCorrectionLevel(), and CBC_QRCodeWriter::SetErrorCorrectionLevel().

+ Here is the caller graph for this function:

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