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_OnedCodaBarWriter Class Referencefinal

#include <BC_OnedCodaBarWriter.h>

+ Inheritance diagram for CBC_OnedCodaBarWriter:
+ Collaboration diagram for CBC_OnedCodaBarWriter:

Public Member Functions

 CBC_OnedCodaBarWriter ()
 
 ~CBC_OnedCodaBarWriter () override
 
DataVector< uint8_t > Encode (const ByteString &contents) override
 
bool RenderResult (WideStringView contents, pdfium::span< const uint8_t > code) override
 
bool CheckContentValidity (WideStringView contents) override
 
WideString FilterContents (WideStringView contents) override
 
void SetDataLength (int32_t length) override
 
void SetTextLocation (BC_TEXT_LOC location) override
 
bool SetWideNarrowRatio (int8_t ratio) override
 
bool SetStartChar (char start) override
 
bool SetEndChar (char end) override
 
WideString encodedContents (WideStringView contents)
 
- Public Member Functions inherited from CBC_OneDimWriter
 CBC_OneDimWriter ()
 
 ~CBC_OneDimWriter () override
 
void SetPrintChecksum (bool checksum)
 
void SetCalcChecksum (bool state)
 
void SetFontSize (float size)
 
void SetFontStyle (int32_t style)
 
void SetFontColor (FX_ARGB color)
 
bool RenderDeviceResult (CFX_RenderDevice *device, const CFX_Matrix &matrix, WideStringView contents)
 
bool SetFont (CFX_Font *cFont)
 
- 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 bool SetErrorCorrectionLevel (int32_t level)
 

Additional Inherited Members

- Static Public Member Functions inherited from CBC_OneDimWriter
static constexpr CFX_TextRenderOptions GetTextRenderOptions ()
 
static bool HasValidContentSize (WideStringView contents)
 
- Protected Member Functions inherited from CBC_OneDimWriter
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 inherited from CBC_OneDimWriter
bool m_bPrintChecksum = true
 
bool m_bCalcChecksum = false
 
bool m_bLeftPadding = false
 
bool m_bRightPadding = false
 
UnownedPtr< CFX_Fontm_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_Pathm_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
 
- 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_OnedCodaBarWriter.h.

Constructor & Destructor Documentation

◆ CBC_OnedCodaBarWriter()

CBC_OnedCodaBarWriter::CBC_OnedCodaBarWriter ( )
default

◆ ~CBC_OnedCodaBarWriter()

CBC_OnedCodaBarWriter::~CBC_OnedCodaBarWriter ( )
overridedefault

Member Function Documentation

◆ CheckContentValidity()

bool CBC_OnedCodaBarWriter::CheckContentValidity ( WideStringView contents)
overridevirtual

Implements CBC_OneDimWriter.

Definition at line 100 of file BC_OnedCodaBarWriter.cpp.

References CBC_OneDimWriter::HasValidContentSize().

Referenced by CBC_Codabar::Encode().

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

◆ Encode()

DataVector< uint8_t > CBC_OnedCodaBarWriter::Encode ( const ByteString & contents)
overridevirtual

Implements CBC_OneDimWriter.

Definition at line 123 of file BC_OnedCodaBarWriter.cpp.

References fxcrt::operator+(), and fxcrt::operator+().

+ Here is the call graph for this function:

◆ encodedContents()

WideString CBC_OnedCodaBarWriter::encodedContents ( WideStringView contents)

Definition at line 178 of file BC_OnedCodaBarWriter.cpp.

References fxcrt::WideString::WideString().

Referenced by RenderResult().

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

◆ FilterContents()

WideString CBC_OnedCodaBarWriter::FilterContents ( WideStringView contents)
overridevirtual

Implements CBC_OneDimWriter.

Definition at line 106 of file BC_OnedCodaBarWriter.cpp.

References fxcrt::WideString::operator+=().

+ Here is the call graph for this function:

◆ RenderResult()

bool CBC_OnedCodaBarWriter::RenderResult ( WideStringView contents,
pdfium::span< const uint8_t > code )
overridevirtual

Reimplemented from CBC_OneDimWriter.

Definition at line 184 of file BC_OnedCodaBarWriter.cpp.

References encodedContents(), and CBC_OneDimWriter::RenderResult().

+ Here is the call graph for this function:

◆ SetDataLength()

void CBC_OnedCodaBarWriter::SetDataLength ( int32_t length)
overridevirtual

Reimplemented from CBC_OneDimWriter.

Definition at line 84 of file BC_OnedCodaBarWriter.cpp.

References CBC_OneDimWriter::m_iDataLenth.

◆ SetEndChar()

bool CBC_OnedCodaBarWriter::SetEndChar ( char end)
overridevirtual

Reimplemented from CBC_Writer.

Definition at line 76 of file BC_OnedCodaBarWriter.cpp.

◆ SetStartChar()

bool CBC_OnedCodaBarWriter::SetStartChar ( char start)
overridevirtual

Reimplemented from CBC_Writer.

Definition at line 68 of file BC_OnedCodaBarWriter.cpp.

◆ SetTextLocation()

void CBC_OnedCodaBarWriter::SetTextLocation ( BC_TEXT_LOC location)
overridevirtual

Reimplemented from CBC_Writer.

Definition at line 88 of file BC_OnedCodaBarWriter.cpp.

References CBC_OneDimWriter::m_locTextLoc.

◆ SetWideNarrowRatio()

bool CBC_OnedCodaBarWriter::SetWideNarrowRatio ( int8_t ratio)
overridevirtual

Reimplemented from CBC_Writer.

Definition at line 92 of file BC_OnedCodaBarWriter.cpp.


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