Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
cbc_onecode.cpp
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
* Copyright 2011 ZXing authors
8
*
9
* Licensed under the Apache License, Version 2.0 (the "License");
10
* you may not use this file except in compliance with the License.
11
* You may obtain a copy of the License at
12
*
13
* http://www.apache.org/licenses/LICENSE-2.0
14
*
15
* Unless required by applicable law or agreed to in writing, software
16
* distributed under the License is distributed on an "AS IS" BASIS,
17
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18
* See the License for the specific language governing permissions and
19
* limitations under the License.
20
*/
21
22
#
include
"fxbarcode/cbc_onecode.h"
23
24
#
include
<
utility
>
25
26
#
include
"fxbarcode/oned/BC_OneDimWriter.h"
27
28
CBC_OneCode
::
CBC_OneCode
(std::unique_ptr<CBC_Writer> pWriter)
29
:
CBC_CodeBase
(
std
::move(pWriter)) {}
30
31
CBC_OneCode
::~
CBC_OneCode
() =
default
;
32
33
void
CBC_OneCode
::
SetPrintChecksum
(
bool
checksum) {
34
GetOneDimWriter()
->
SetPrintChecksum
(
checksum
)
;
35
}
36
37
void
CBC_OneCode
::
SetDataLength
(int32_t length) {
38
GetOneDimWriter()
->
SetDataLength
(
length
)
;
39
}
40
41
void
CBC_OneCode
::
SetCalChecksum
(
bool
calc) {
42
GetOneDimWriter()
->
SetCalcChecksum
(
calc
)
;
43
}
44
45
bool
CBC_OneCode
::
SetFont
(
CFX_Font
* cFont) {
46
return
GetOneDimWriter()
->
SetFont
(
cFont
)
;
47
}
48
49
void
CBC_OneCode
::
SetFontSize
(
float
size) {
50
GetOneDimWriter()
->
SetFontSize
(
size
)
;
51
}
52
53
void
CBC_OneCode
::
SetFontStyle
(int32_t style) {
54
GetOneDimWriter()
->
SetFontStyle
(
style
)
;
55
}
56
57
void
CBC_OneCode
::
SetFontColor
(
FX_ARGB
color) {
58
GetOneDimWriter()
->
SetFontColor
(
color
)
;
59
}
60
61
CBC_OneDimWriter
*
CBC_OneCode
::GetOneDimWriter() {
62
return
static_cast
<CBC_OneDimWriter*>(m_pBCWriter.get());
63
}
CBC_CodeBase
Definition
cbc_codebase.h:22
CBC_OneCode
Definition
cbc_onecode.h:20
CBC_OneCode::SetCalChecksum
void SetCalChecksum(bool calc)
Definition
cbc_onecode.cpp:41
CBC_OneCode::SetFontStyle
void SetFontStyle(int32_t style)
Definition
cbc_onecode.cpp:53
CBC_OneCode::SetPrintChecksum
void SetPrintChecksum(bool checksum)
Definition
cbc_onecode.cpp:33
CBC_OneCode::~CBC_OneCode
~CBC_OneCode() override
CBC_OneCode::CBC_OneCode
CBC_OneCode(std::unique_ptr< CBC_Writer > pWriter)
Definition
cbc_onecode.cpp:28
CBC_OneCode::SetFontColor
void SetFontColor(FX_ARGB color)
Definition
cbc_onecode.cpp:57
CBC_OneCode::SetDataLength
void SetDataLength(int32_t length)
Definition
cbc_onecode.cpp:37
CBC_OneCode::SetFontSize
void SetFontSize(float size)
Definition
cbc_onecode.cpp:49
CBC_OneCode::SetFont
bool SetFont(CFX_Font *cFont)
Definition
cbc_onecode.cpp:45
CBC_OneDimWriter
Definition
BC_OneDimWriter.h:29
CBC_OneDimWriter::SetFontSize
void SetFontSize(float size)
Definition
BC_OneDimWriter.cpp:76
CBC_OneDimWriter::SetFontColor
void SetFontColor(FX_ARGB color)
Definition
BC_OneDimWriter.cpp:84
CBC_OneDimWriter::SetFontStyle
void SetFontStyle(int32_t style)
Definition
BC_OneDimWriter.cpp:80
CBC_OneDimWriter::SetDataLength
virtual void SetDataLength(int32_t length)
Definition
BC_OneDimWriter.cpp:60
CBC_OneDimWriter::SetCalcChecksum
void SetCalcChecksum(bool state)
Definition
BC_OneDimWriter.cpp:64
CBC_OneDimWriter::SetPrintChecksum
void SetPrintChecksum(bool checksum)
Definition
BC_OneDimWriter.cpp:56
CBC_OneDimWriter::SetFont
bool SetFont(CFX_Font *cFont)
Definition
BC_OneDimWriter.cpp:68
CFX_Font
Definition
cfx_font.h:38
FX_ARGB
uint32_t FX_ARGB
Definition
fx_dib.h:36
std
[33]
Definition
src_corelib_tools_qhash.cpp:421
qtwebengine
src
3rdparty
chromium
third_party
pdfium
fxbarcode
cbc_onecode.cpp
Generated on
for Qt by
1.18.0