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
BC_Writer.cpp
Go to the documentation of this file.
1// Copyright 2014 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#include "fxbarcode/BC_Writer.h"
8
9CBC_Writer::CBC_Writer() = default;
10
11CBC_Writer::~CBC_Writer() = default;
12
14 m_CharEncoding = encoding;
15}
16
17bool CBC_Writer::SetModuleHeight(int32_t moduleHeight) {
18 if (moduleHeight > 10 || moduleHeight < 1)
19 return false;
20
21 m_ModuleHeight = moduleHeight;
22 return true;
23}
24
25bool CBC_Writer::SetModuleWidth(int32_t moduleWidth) {
26 if (moduleWidth > 10 || moduleWidth < 1)
27 return false;
28
29 m_ModuleWidth = moduleWidth;
30 return true;
31}
32
33void CBC_Writer::SetHeight(int32_t height) {
34 m_Height = height;
35}
36
37void CBC_Writer::SetWidth(int32_t width) {
38 m_Width = width;
39}
40
42
43bool CBC_Writer::SetWideNarrowRatio(int8_t ratio) {
44 return false;
45}
46
47bool CBC_Writer::SetStartChar(char start) {
48 return false;
49}
50
51bool CBC_Writer::SetEndChar(char end) {
52 return false;
53}
54
55bool CBC_Writer::SetErrorCorrectionLevel(int32_t level) {
56 return false;
57}
BC_TEXT_LOC
Definition BC_Library.h:12
BC_CHAR_ENCODING
Definition BC_Library.h:20
int32_t m_Width
Definition BC_Writer.h:37
void SetCharEncoding(BC_CHAR_ENCODING encoding)
Definition BC_Writer.cpp:13
void SetWidth(int32_t width)
Definition BC_Writer.cpp:37
bool SetModuleWidth(int32_t moduleWidth)
Definition BC_Writer.cpp:25
virtual bool SetErrorCorrectionLevel(int32_t level)
Definition BC_Writer.cpp:55
int32_t m_Height
Definition BC_Writer.h:36
virtual bool SetEndChar(char end)
Definition BC_Writer.cpp:51
virtual bool SetStartChar(char start)
Definition BC_Writer.cpp:47
bool SetModuleHeight(int32_t moduleHeight)
Definition BC_Writer.cpp:17
int32_t m_ModuleHeight
Definition BC_Writer.h:34
virtual ~CBC_Writer()
virtual bool SetWideNarrowRatio(int8_t ratio)
Definition BC_Writer.cpp:43
BC_CHAR_ENCODING m_CharEncoding
Definition BC_Writer.h:39
void SetHeight(int32_t height)
Definition BC_Writer.cpp:33
int32_t m_ModuleWidth
Definition BC_Writer.h:35
virtual void SetTextLocation(BC_TEXT_LOC location)
Definition BC_Writer.cpp:41