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
cpvt_wordinfo.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
#
include
"core/fpdfdoc/cpvt_wordinfo.h"
8
9
#
include
"core/fxcrt/fx_codepage.h"
10
11
CPVT_WordInfo
::
CPVT_WordInfo
()
12
:
Word
(0),
13
nCharset
(
FX_Charset
::
kANSI
),
14
fWordX
(0.0f),
15
fWordY
(0.0f),
16
fWordTail
(0.0f),
17
nFontIndex
(-1) {}
18
19
CPVT_WordInfo
::
CPVT_WordInfo
(uint16_t word,
20
FX_Charset
charset,
21
int32_t fontIndex)
22
:
Word
(word),
23
nCharset
(charset),
24
fWordX
(0.0f),
25
fWordY
(0.0f),
26
fWordTail
(0.0f),
27
nFontIndex
(fontIndex) {}
28
29
CPVT_WordInfo
::
CPVT_WordInfo
(
const
CPVT_WordInfo
& word)
30
:
Word
(0),
31
nCharset
(
FX_Charset
::
kANSI
),
32
fWordX
(0.0f),
33
fWordY
(0.0f),
34
fWordTail
(0.0f),
35
nFontIndex
(-1) {
36
operator
=
(
word
)
;
37
}
38
39
CPVT_WordInfo
::~
CPVT_WordInfo
() =
default
;
40
41
CPVT_WordInfo
&
CPVT_WordInfo
::
operator
=(
const
CPVT_WordInfo
& word) {
42
if
(
this
== &word)
43
return
*
this
;
44
45
Word
= word
.
Word
;
46
nCharset
= word
.
nCharset
;
47
nFontIndex
= word
.
nFontIndex
;
48
fWordX
= word
.
fWordX
;
49
fWordY
= word
.
fWordY
;
50
fWordTail
= word
.
fWordTail
;
51
return
*
this
;
52
}
FX_Charset
FX_Charset
Definition
fx_codepage.h:70
FX_Charset::kANSI
@ kANSI
CPVT_WordInfo
Definition
cpvt_wordinfo.h:14
CPVT_WordInfo::nFontIndex
int32_t nFontIndex
Definition
cpvt_wordinfo.h:27
CPVT_WordInfo::~CPVT_WordInfo
~CPVT_WordInfo()
CPVT_WordInfo::operator=
CPVT_WordInfo & operator=(const CPVT_WordInfo &word)
Definition
cpvt_wordinfo.cpp:41
CPVT_WordInfo::CPVT_WordInfo
CPVT_WordInfo()
Definition
cpvt_wordinfo.cpp:11
CPVT_WordInfo::nCharset
FX_Charset nCharset
Definition
cpvt_wordinfo.h:23
CPVT_WordInfo::CPVT_WordInfo
CPVT_WordInfo(uint16_t word, FX_Charset charset, int32_t fontIndex)
Definition
cpvt_wordinfo.cpp:19
CPVT_WordInfo::CPVT_WordInfo
CPVT_WordInfo(const CPVT_WordInfo &word)
Definition
cpvt_wordinfo.cpp:29
CPVT_WordInfo::fWordTail
float fWordTail
Definition
cpvt_wordinfo.h:26
CPVT_WordInfo::fWordY
float fWordY
Definition
cpvt_wordinfo.h:25
CPVT_WordInfo::Word
uint16_t Word
Definition
cpvt_wordinfo.h:22
CPVT_WordInfo::fWordX
float fWordX
Definition
cpvt_wordinfo.h:24
qtwebengine
src
3rdparty
chromium
third_party
pdfium
core
fpdfdoc
cpvt_wordinfo.cpp
Generated on Thu Nov 14 2024 00:57:33 for Qt by
1.12.0