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_onecode.h
Go to the documentation of this file.
1// Copyright 2016 The PDFium Authors
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7#ifndef FXBARCODE_CBC_ONECODE_H_
8#define FXBARCODE_CBC_ONECODE_H_
9
10#include <stdint.h>
11
12#include <memory>
13
14#include "core/fxge/dib/fx_dib.h"
15#include "fxbarcode/cbc_codebase.h"
16
18class CFX_Font;
19
20class CBC_OneCode : public CBC_CodeBase {
21 public:
22 explicit CBC_OneCode(std::unique_ptr<CBC_Writer> pWriter);
23 ~CBC_OneCode() override;
24
25 void SetPrintChecksum(bool checksum);
26 void SetDataLength(int32_t length);
27 void SetCalChecksum(bool calc);
28 bool SetFont(CFX_Font* cFont);
29 void SetFontSize(float size);
30 void SetFontStyle(int32_t style);
31 void SetFontColor(FX_ARGB color);
32
33 private:
34 CBC_OneDimWriter* GetOneDimWriter();
35};
36
37#endif // FXBARCODE_CBC_ONECODE_H_
BC_TYPE
Definition BC_Library.h:25
BC_TYPE GetType() override
~CBC_Codabar() override
bool RenderDevice(CFX_RenderDevice *device, const CFX_Matrix &matrix) override
bool Encode(WideStringView contents) override
void SetCalChecksum(bool calc)
void SetFontStyle(int32_t style)
void SetPrintChecksum(bool checksum)
~CBC_OneCode() override
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