7#ifndef FXBARCODE_CFX_BARCODE_H_
8#define FXBARCODE_CFX_BARCODE_H_
14#include "core/fxcrt/widestring.h"
15#include "core/fxge/dib/fx_dib.h"
16#include "fxbarcode/BC_Library.h"
29 bool Encode(WideStringView contents);
56 std::unique_ptr<CBC_CodeBase> m_pBCEngine;
bool SetEndChar(char end)
bool SetModuleWidth(int32_t moduleWidth)
bool SetStartChar(char start)
bool SetPrintChecksum(bool checksum)
void SetTextLocation(BC_TEXT_LOC location)
void SetHeight(int32_t height)
static std::unique_ptr< CFX_Barcode > Create(BC_TYPE type)
bool SetErrorCorrectionLevel(int32_t level)
bool SetModuleHeight(int32_t moduleHeight)
bool SetCalChecksum(bool state)
bool SetDataLength(int32_t length)
bool SetFont(CFX_Font *pFont)
void SetCharEncoding(BC_CHAR_ENCODING encoding)
bool Encode(WideStringView contents)
bool SetFontSize(float size)
void SetWidth(int32_t width)
bool SetFontColor(FX_ARGB color)
bool RenderDevice(CFX_RenderDevice *device, const CFX_Matrix &matrix)
bool SetWideNarrowRatio(int8_t ratio)