7#ifndef FXBARCODE_CBC_CODEBASE_H_
8#define FXBARCODE_CBC_CODEBASE_H_
14#include "core/fxcrt/widestring.h"
15#include "core/fxge/dib/fx_dib.h"
16#include "fxbarcode/BC_Library.h"
24 explicit CBC_CodeBase(std::unique_ptr<CBC_Writer> pWriter);
28 virtual bool Encode(WideStringView contents) = 0;
BC_TYPE GetType() override
bool RenderDevice(CFX_RenderDevice *device, const CFX_Matrix &matrix) override
bool Encode(WideStringView contents) override
virtual bool Encode(WideStringView contents)=0
void SetTextLocation(BC_TEXT_LOC location)
void SetWidth(int32_t width)
bool SetModuleWidth(int32_t moduleWidth)
virtual bool RenderDevice(CFX_RenderDevice *device, const CFX_Matrix &matrix)=0
void SetCharEncoding(BC_CHAR_ENCODING encoding)
CBC_CodeBase(std::unique_ptr< CBC_Writer > pWriter)
bool SetModuleHeight(int32_t moduleHeight)
bool SetStartChar(char start)
std::unique_ptr< CBC_Writer > m_pBCWriter
bool SetErrorCorrectionLevel(int32_t level)
bool SetWideNarrowRatio(int8_t ratio)
void SetHeight(int32_t height)
virtual BC_TYPE GetType()=0
bool SetEndChar(char end)
void SetCalChecksum(bool calc)
void SetFontStyle(int32_t style)
void SetPrintChecksum(bool checksum)
CBC_OneCode(std::unique_ptr< CBC_Writer > pWriter)
void SetFontColor(FX_ARGB color)
void SetDataLength(int32_t length)
void SetFontSize(float size)
bool SetFont(CFX_Font *cFont)
bool RenderDeviceResult(CFX_RenderDevice *device, const CFX_Matrix &matrix, WideStringView contents)
bool CheckContentValidity(WideStringView contents) override