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

#include <BC_Writer.h>

+ Inheritance diagram for CBC_Writer:
+ Collaboration diagram for CBC_Writer:

Public Member Functions

 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 Attributes

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

static const FX_ARGB kBarColor = 0xff000000
 
static const FX_ARGB kBackgroundColor = 0xffffffff
 

Detailed Description

Definition at line 13 of file BC_Writer.h.

Constructor & Destructor Documentation

◆ CBC_Writer()

CBC_Writer::CBC_Writer ( )
default

◆ ~CBC_Writer()

CBC_Writer::~CBC_Writer ( )
virtualdefault

Member Function Documentation

◆ SetCharEncoding()

void CBC_Writer::SetCharEncoding ( BC_CHAR_ENCODING encoding)

Definition at line 13 of file BC_Writer.cpp.

References m_CharEncoding.

◆ SetEndChar()

bool CBC_Writer::SetEndChar ( char end)
virtual

Reimplemented in CBC_OnedCodaBarWriter.

Definition at line 51 of file BC_Writer.cpp.

◆ SetErrorCorrectionLevel()

bool CBC_Writer::SetErrorCorrectionLevel ( int32_t level)
virtual

Reimplemented in CBC_DataMatrixWriter, CBC_PDF417Writer, and CBC_QRCodeWriter.

Definition at line 55 of file BC_Writer.cpp.

◆ SetHeight()

void CBC_Writer::SetHeight ( int32_t height)

Definition at line 33 of file BC_Writer.cpp.

References m_Height.

◆ SetModuleHeight()

bool CBC_Writer::SetModuleHeight ( int32_t moduleHeight)

Definition at line 17 of file BC_Writer.cpp.

References m_ModuleHeight.

◆ SetModuleWidth()

bool CBC_Writer::SetModuleWidth ( int32_t moduleWidth)

Definition at line 25 of file BC_Writer.cpp.

References m_ModuleWidth.

◆ SetStartChar()

bool CBC_Writer::SetStartChar ( char start)
virtual

Reimplemented in CBC_OnedCodaBarWriter.

Definition at line 47 of file BC_Writer.cpp.

◆ SetTextLocation()

void CBC_Writer::SetTextLocation ( BC_TEXT_LOC location)
virtual

◆ SetWideNarrowRatio()

bool CBC_Writer::SetWideNarrowRatio ( int8_t ratio)
virtual

Reimplemented in CBC_OnedCodaBarWriter, and CBC_OnedCode39Writer.

Definition at line 43 of file BC_Writer.cpp.

◆ SetWidth()

void CBC_Writer::SetWidth ( int32_t width)

Definition at line 37 of file BC_Writer.cpp.

References m_Width.

Member Data Documentation

◆ kBackgroundColor

◆ kBarColor

const FX_ARGB CBC_Writer::kBarColor = 0xff000000
staticprotected

Definition at line 31 of file BC_Writer.h.

Referenced by CBC_TwoDimWriter::RenderDeviceResult().

◆ m_CharEncoding

BC_CHAR_ENCODING CBC_Writer::m_CharEncoding = BC_CHAR_ENCODING::kUTF8
protected

Definition at line 39 of file BC_Writer.h.

Referenced by SetCharEncoding().

◆ m_colorSpace

FXDIB_Format CBC_Writer::m_colorSpace = FXDIB_Format::kArgb
protected

Definition at line 38 of file BC_Writer.h.

◆ m_Height

◆ m_ModuleHeight

int32_t CBC_Writer::m_ModuleHeight = 1
protected

◆ m_ModuleWidth

int32_t CBC_Writer::m_ModuleWidth = 1
protected

◆ m_Width


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