blob: 268aa99c39bc69d3a200998faf255d2060d9106d [file] [log] [blame]
// Copyright 2017 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc.
#include <stdint.h>
#include "core/fxcrt/fx_unicode.h"
enum class CFX_BreakType { None = 0, Piece, Line, Paragraph, Page };
class CFX_Char {
CFX_Char(uint16_t wCharCode, uint32_t dwCharProps);
CFX_Char(uint16_t wCharCode,
uint32_t dwCharProps,
int32_t iHorizontalScale,
int32_t iVerticalScale);
CFX_Char(const CFX_Char& other);
FX_CHARTYPE GetCharType() const;
uint16_t char_code() const { return m_wCharCode; }
uint32_t char_props() const { return m_dwCharProps; }
int16_t horizonal_scale() const { return m_iHorizontalScale; }
int16_t vertical_scale() const { return m_iVerticalScale; }
CFX_BreakType m_dwStatus;
uint8_t m_nBreakType;
uint32_t m_dwCharStyles;
int32_t m_iCharWidth;
int16_t m_iBidiClass;
uint16_t m_iBidiLevel;
uint16_t m_iBidiPos;
uint16_t m_iBidiOrder;
int32_t m_iFontSize;
uint32_t m_dwIdentity;
RetainPtr<Retainable> m_pUserData;
uint16_t m_wCharCode;
uint32_t m_dwCharProps;
int32_t m_iHorizontalScale;
int32_t m_iVerticalScale;