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
cfx_cssnumbervalue.h
Go to the documentation of this file.
1// Copyright 2017 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_FXCRT_CSS_CFX_CSSNUMBERVALUE_H_
8#define CORE_FXCRT_CSS_CFX_CSSNUMBERVALUE_H_
9
10#include "core/fxcrt/css/cfx_cssvalue.h"
11
29
30class CFX_CSSNumberValue final : public CFX_CSSValue {
31 public:
32 explicit CFX_CSSNumberValue(CFX_CSSNumber number);
33 ~CFX_CSSNumberValue() override;
34
35 CFX_CSSNumber::Unit unit() const { return number_.unit; }
36 float value() const { return number_.value; }
37 float Apply(float percentBase) const;
38
39 private:
40 CFX_CSSNumber number_;
41};
42
43#endif // CORE_FXCRT_CSS_CFX_CSSNUMBERVALUE_H_
CFX_CSSPropertyValue
Definition cfx_css.h:35
CFX_CSSProperty
Definition cfx_css.h:28
#define CHECK_LT(x, y)
Definition check_op.h:12
static const Property * GetPropertyByEnum(CFX_CSSProperty property)
static const Color * GetColorByName(WideStringView wsName)
static const LengthUnit * GetLengthUnitByName(WideStringView wsName)
static const Property * GetPropertyByName(WideStringView name)
static const PropertyValue * GetPropertyValueByName(WideStringView wsName)
CFX_CSSNumber::Unit unit() const
CFX_CSSNumberValue(CFX_CSSNumber number)
float Apply(float percentBase) const
~CFX_CSSNumberValue() override
#define UNSAFE_BUFFERS(...)
uint32_t FX_ARGB
Definition fx_dib.h:36
fxcrt::WideStringView WideStringView
const char * name
Definition cfx_cssdata.h:35
CFX_CSSNumber::Unit type
Definition cfx_cssdata.h:31
CFX_CSSPropertyValue eName
Definition cfx_cssdata.h:25
CFX_CSSValueTypeMask dwTypes
Definition cfx_cssdata.h:21
CFX_CSSProperty eName
Definition cfx_cssdata.h:19