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.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 CORE_FPDFDOC_CPVT_WORDINFO_H_
8#define CORE_FPDFDOC_CPVT_WORDINFO_H_
9
10#include <stdint.h>
11
12#include "core/fxcrt/fx_codepage_forward.h"
13
16 CPVT_WordInfo(uint16_t word, FX_Charset charset, int32_t fontIndex);
17 CPVT_WordInfo(const CPVT_WordInfo& word);
19
21
22 uint16_t Word;
24 float fWordX;
25 float fWordY;
26 float fWordTail;
27 int32_t nFontIndex;
28};
29
30#endif // CORE_FPDFDOC_CPVT_WORDINFO_H_
float Width() const
CPVT_FloatRect(float other_left, float other_top, float other_right, float other_bottom)
float Height() const
CPVT_FloatRect()=default
CPVT_WordPlace GetEndWordPlace() const
Line(const CPVT_LineInfo &lineinfo)
CPVT_WordPlace GetBeginWordPlace() const
CPVT_WordPlace GetNextWordPlace(const CPVT_WordPlace &place) const
CPVT_LineInfo m_LineInfo
CPVT_WordPlace m_LinePlace
CPVT_WordPlace GetPrevWordPlace(const CPVT_WordPlace &place) const
int32_t GetWordArraySize() const
void ClearWord(const CPVT_WordPlace &place)
void EraseWordsFrom(int32_t index)
CPVT_Section(CPVT_VariableText *pVT)
CPVT_FloatRect Rearrange()
CPVT_WordPlace GetEndWordPlace() const
CPVT_WordPlace SearchWordPlace(float fx, const CPVT_WordRange &range) const
const Line * GetLineFromArray(int32_t index) const
void SetRect(const CPVT_FloatRect &rect)
CFX_SizeF GetSectionSize(float fFontSize)
void UpdateWordPlace(CPVT_WordPlace &place) const
CPVT_WordPlace SearchWordPlace(float fx, const CPVT_WordPlace &lineplace) const
void ClearWords(const CPVT_WordRange &PlaceRange)
const CPVT_FloatRect & GetRect() const
CPVT_WordPlace GetBeginWordPlace() const
void SetPlace(const CPVT_WordPlace &place)
void SetPlaceIndex(int32_t index)
void ResetLinePlace()
CPVT_WordPlace SearchWordPlace(const CFX_PointF &point) const
CPVT_WordPlace GetPrevWordPlace(const CPVT_WordPlace &place) const
const CPVT_WordInfo * GetWordFromArray(int32_t index) const
CPVT_WordPlace AddWord(const CPVT_WordPlace &place, const CPVT_WordInfo &wordinfo)
CPVT_WordPlace GetNextWordPlace(const CPVT_WordPlace &place) const
int32_t GetLineArraySize() const
CPVT_WordPlace AddLine(const CPVT_LineInfo &lineinfo)
FX_Charset
Definition fx_codepage.h:70
#define FXSYS_IsFloatBigger(fa, fb)
Definition fx_system.h:36
#define FXSYS_IsFloatSmaller(fa, fb)
Definition fx_system.h:38
int32_t nBeginWordIndex
int32_t nEndWordIndex
int32_t nTotalWord
int32_t nFontIndex
CPVT_WordInfo & operator=(const CPVT_WordInfo &word)
FX_Charset nCharset
CPVT_WordInfo(uint16_t word, FX_Charset charset, int32_t fontIndex)
CPVT_WordInfo(const CPVT_WordInfo &word)
bool operator<=(const CPVT_WordPlace &wp) const
CPVT_WordPlace(int32_t other_nSecIndex, int32_t other_nLineIndex, int32_t other_nWordIndex)
bool operator>=(const CPVT_WordPlace &wp) const
CPVT_WordRange(const CPVT_WordPlace &begin, const CPVT_WordPlace &end)
CPVT_WordPlace BeginPos
CPVT_WordPlace EndPos