Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <BC_OneDimWriter.h>
Static Public Member Functions | |
static constexpr CFX_TextRenderOptions | GetTextRenderOptions () |
static bool | HasValidContentSize (WideStringView contents) |
Protected Member Functions | |
virtual bool | ShowChars (WideStringView contents, CFX_RenderDevice *device, const CFX_Matrix &matrix, int32_t barWidth) |
void | ShowDeviceChars (CFX_RenderDevice *device, const CFX_Matrix &matrix, const ByteString str, float geWidth, TextCharPos *pCharPos, float locX, float locY, int32_t barWidth) |
void | CalcTextInfo (const ByteString &text, TextCharPos *charPos, CFX_Font *cFont, float geWidth, int32_t fontSize, float &charsLen) |
pdfium::span< uint8_t > | AppendPattern (pdfium::span< uint8_t > target, pdfium::span< const uint8_t > pattern, bool startColor) |
Protected Attributes | |
bool | m_bPrintChecksum = true |
bool | m_bCalcChecksum = false |
bool | m_bLeftPadding = false |
bool | m_bRightPadding = false |
UnownedPtr< CFX_Font > | m_pFont |
float | m_fFontSize = 10.0f |
int32_t | m_iFontStyle = 0 |
uint32_t | m_fontColor = 0xff000000 |
BC_TEXT_LOC | m_locTextLoc = BC_TEXT_LOC::kBelowEmbed |
int32_t | m_iDataLenth = 0 |
size_t | m_iContentLen = 0 |
std::vector< CFX_Path > | m_output |
int32_t | m_barWidth |
float | m_outputHScale |
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 |
Additional Inherited Members | |
Static Protected Attributes inherited from CBC_Writer | |
static const FX_ARGB | kBarColor = 0xff000000 |
static const FX_ARGB | kBackgroundColor = 0xffffffff |
Definition at line 29 of file BC_OneDimWriter.h.
|
default |
|
overridedefault |
|
protected |
Definition at line 88 of file BC_OneDimWriter.cpp.
Referenced by CBC_OnedCode39Writer::Encode(), CBC_OnedEAN13Writer::Encode(), and CBC_OnedEAN8Writer::Encode().
|
protected |
Definition at line 104 of file BC_OneDimWriter.cpp.
References CFX_Font::GetDescent(), CFX_Font::GetGlyphWidth(), TextCharPos::m_FontCharWidth, and TextCharPos::m_GlyphIndex.
|
pure virtual |
Implemented in CBC_OnedCodaBarWriter, CBC_OnedCode128Writer, CBC_OnedCode39Writer, CBC_OnedEAN13Writer, CBC_OnedEAN8Writer, and CBC_OnedUPCAWriter.
Referenced by CBC_EANCode::Encode().
|
pure virtual |
Implemented in CBC_OnedCodaBarWriter, CBC_OnedCode128Writer, CBC_OnedCode39Writer, CBC_OnedEAN13Writer, CBC_OnedEAN8Writer, and CBC_OnedUPCAWriter.
|
pure virtual |
Implemented in CBC_OnedCodaBarWriter, CBC_OnedCode128Writer, CBC_OnedCode39Writer, CBC_OnedEAN13Writer, CBC_OnedEAN8Writer, and CBC_OnedUPCAWriter.
Referenced by CBC_EANCode::Preprocess().
|
inlinestaticconstexpr |
Definition at line 31 of file BC_OneDimWriter.h.
References CFX_TextRenderOptions::CFX_TextRenderOptions(), and CFX_TextRenderOptions::kLcd.
|
static |
Definition at line 43 of file BC_OneDimWriter.cpp.
Referenced by CBC_OnedCodaBarWriter::CheckContentValidity(), CBC_OnedCode128Writer::CheckContentValidity(), CBC_OnedCode39Writer::CheckContentValidity(), CBC_OnedEAN13Writer::CheckContentValidity(), CBC_OnedEAN8Writer::CheckContentValidity(), and CBC_OnedUPCAWriter::CheckContentValidity().
bool CBC_OneDimWriter::RenderDeviceResult | ( | CFX_RenderDevice * | device, |
const CFX_Matrix & | matrix, | ||
WideStringView | contents ) |
Definition at line 229 of file BC_OneDimWriter.cpp.
References CFX_Matrix::CFX_Matrix(), CFX_Path::AppendRect(), CFX_Matrix::Concat(), CFX_RenderDevice::DrawPath(), CFX_FillRenderOptions::EvenOddOptions(), CBC_Writer::kBackgroundColor, kNone, m_barWidth, CBC_Writer::m_Height, m_locTextLoc, m_outputHScale, CBC_Writer::m_Width, and ShowChars().
Referenced by CBC_Codabar::RenderDevice(), and CBC_Code39::RenderDevice().
|
virtual |
Reimplemented in CBC_OnedCodaBarWriter, and CBC_OnedCode39Writer.
Definition at line 254 of file BC_OneDimWriter.cpp.
References m_barWidth, m_bLeftPadding, m_bRightPadding, CBC_Writer::m_ModuleHeight, m_outputHScale, and CBC_Writer::m_Width.
Referenced by CBC_OnedCodaBarWriter::RenderResult(), and CBC_OnedCode39Writer::RenderResult().
void CBC_OneDimWriter::SetCalcChecksum | ( | bool | state | ) |
Definition at line 64 of file BC_OneDimWriter.cpp.
References m_bCalcChecksum.
Referenced by CBC_OneCode::SetCalChecksum().
|
virtual |
Reimplemented in CBC_OnedCodaBarWriter, and CBC_OnedEAN8Writer.
Definition at line 60 of file BC_OneDimWriter.cpp.
References m_iDataLenth.
Referenced by CBC_OneCode::SetDataLength().
bool CBC_OneDimWriter::SetFont | ( | CFX_Font * | cFont | ) |
Definition at line 68 of file BC_OneDimWriter.cpp.
Referenced by CBC_OneCode::SetFont().
Definition at line 84 of file BC_OneDimWriter.cpp.
References m_fontColor.
Referenced by CBC_OneCode::SetFontColor().
void CBC_OneDimWriter::SetFontSize | ( | float | size | ) |
Definition at line 76 of file BC_OneDimWriter.cpp.
References m_fFontSize.
Referenced by CBC_OneCode::SetFontSize().
void CBC_OneDimWriter::SetFontStyle | ( | int32_t | style | ) |
Definition at line 80 of file BC_OneDimWriter.cpp.
References m_iFontStyle.
Referenced by CBC_OneCode::SetFontStyle().
void CBC_OneDimWriter::SetPrintChecksum | ( | bool | checksum | ) |
Definition at line 56 of file BC_OneDimWriter.cpp.
References m_bPrintChecksum.
Referenced by CBC_OneCode::SetPrintChecksum().
|
protectedvirtual |
Reimplemented in CBC_OnedEAN13Writer, CBC_OnedEAN8Writer, and CBC_OnedUPCAWriter.
Definition at line 175 of file BC_OneDimWriter.cpp.
References kAbove, kAboveEmbed, kBelow, kBelowEmbed, m_fFontSize, CBC_Writer::m_Height, m_locTextLoc, and ShowDeviceChars().
Referenced by RenderDeviceResult().
|
protected |
Definition at line 150 of file BC_OneDimWriter.cpp.
References CFX_FloatRect::CFX_FloatRect(), CFX_Matrix::CFX_Matrix(), CFX_Matrix::Concat(), CFX_RenderDevice::FillRect(), CFX_FloatRect::GetOuterRect(), CBC_Writer::kBackgroundColor, m_fFontSize, CBC_Writer::m_Width, CFX_FloatRect::right, and CFX_Matrix::TransformRect().
Referenced by ShowChars().
|
protected |
Definition at line 95 of file BC_OneDimWriter.h.
Referenced by RenderDeviceResult(), and RenderResult().
|
protected |
Definition at line 81 of file BC_OneDimWriter.h.
Referenced by CBC_OnedCode39Writer::Encode(), CBC_OnedCode39Writer::encodedContents(), and SetCalcChecksum().
|
protected |
Definition at line 82 of file BC_OneDimWriter.h.
Referenced by CBC_OnedEAN13Writer::CBC_OnedEAN13Writer(), CBC_OnedUPCAWriter::CBC_OnedUPCAWriter(), and RenderResult().
|
protected |
Definition at line 80 of file BC_OneDimWriter.h.
Referenced by CBC_OnedCode39Writer::encodedContents(), and SetPrintChecksum().
|
protected |
Definition at line 83 of file BC_OneDimWriter.h.
Referenced by CBC_OnedUPCAWriter::CBC_OnedUPCAWriter(), and RenderResult().
|
protected |
Definition at line 86 of file BC_OneDimWriter.h.
Referenced by SetFontSize(), CBC_OnedEAN13Writer::ShowChars(), CBC_OnedEAN8Writer::ShowChars(), ShowChars(), CBC_OnedUPCAWriter::ShowChars(), and ShowDeviceChars().
|
protected |
Definition at line 88 of file BC_OneDimWriter.h.
Referenced by SetFontColor().
|
protected |
Definition at line 92 of file BC_OneDimWriter.h.
|
protected |
Definition at line 91 of file BC_OneDimWriter.h.
Referenced by CBC_OnedEAN8Writer::CBC_OnedEAN8Writer(), CBC_OnedEAN13Writer::Encode(), CBC_OnedUPCAWriter::Encode(), CBC_OnedCodaBarWriter::SetDataLength(), CBC_OnedEAN8Writer::SetDataLength(), and SetDataLength().
|
protected |
Definition at line 87 of file BC_OneDimWriter.h.
Referenced by SetFontStyle().
|
protected |
Definition at line 89 of file BC_OneDimWriter.h.
Referenced by RenderDeviceResult(), CBC_OnedCodaBarWriter::SetTextLocation(), CBC_OnedCode128Writer::SetTextLocation(), CBC_OnedCode39Writer::SetTextLocation(), CBC_OnedEAN8Writer::SetTextLocation(), and ShowChars().
|
protected |
Definition at line 94 of file BC_OneDimWriter.h.
|
protected |
Definition at line 96 of file BC_OneDimWriter.h.
Referenced by RenderDeviceResult(), RenderResult(), CBC_OnedEAN13Writer::ShowChars(), CBC_OnedEAN8Writer::ShowChars(), and CBC_OnedUPCAWriter::ShowChars().
|
protected |
Definition at line 85 of file BC_OneDimWriter.h.