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_cssenumvalue.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_CSSENUMVALUE_H_
8#define CORE_FXCRT_CSS_CFX_CSSENUMVALUE_H_
9
10#include "core/fxcrt/css/cfx_cssvalue.h"
11
12class CFX_CSSEnumValue final : public CFX_CSSValue {
13 public:
15 ~CFX_CSSEnumValue() override;
16
17 CFX_CSSPropertyValue Value() const { return value_; }
18
19 private:
21};
22
23#endif // CORE_FXCRT_CSS_CFX_CSSENUMVALUE_H_
CFX_CSSVALUETYPE
Definition cfx_css.h:14
@ CFX_CSSVALUETYPE_Shorthand
Definition cfx_css.h:17
@ CFX_CSSVALUETYPE_Primitive
Definition cfx_css.h:15
@ CFX_CSSVALUETYPE_MaybeEnum
Definition cfx_css.h:20
@ CFX_CSSVALUETYPE_MaybeString
Definition cfx_css.h:21
@ CFX_CSSVALUETYPE_MaybeColor
Definition cfx_css.h:22
@ CFX_CSSVALUETYPE_MaybeNumber
Definition cfx_css.h:19
CFX_CSSPropertyValue
Definition cfx_css.h:35
CFX_CSSProperty
Definition cfx_css.h:28
static const Color * GetColorByName(WideStringView wsName)
static const LengthUnit * GetLengthUnitByName(WideStringView wsName)
static const PropertyValue * GetPropertyValueByName(WideStringView wsName)
static bool ParseCSSString(const wchar_t *pszValue, size_t nValueLen, size_t *nOffset, size_t *nLength)
FX_ARGB ParseColorForTest(const wchar_t *pszValue, size_t nValueLen, FX_ARGB *dwColor) const
const_prop_iterator end() const
void AddProperty(const CFX_CSSData::Property *property, WideStringView value)
const_prop_iterator begin() const
void AddProperty(const WideString &prop, const WideString &value)
size_t PropertyCountForTesting() const
const_custom_iterator custom_begin() const
const_custom_iterator custom_end() const
RetainPtr< CFX_CSSValue > GetProperty(CFX_CSSProperty eProperty, bool *bImportant) const
static bool ParseCSSColor(const wchar_t *pszValue, size_t nValueLen, FX_ARGB *dwColor)
CFX_CSSPropertyValue Value() const
~CFX_CSSEnumValue() override
CFX_CSSEnumValue(CFX_CSSPropertyValue value)
constexpr FX_ARGB ArgbEncode(uint32_t a, uint32_t r, uint32_t g, uint32_t b)
Definition fx_dib.h:118
int FXSYS_HexCharToInt(char c)
int FXSYS_roundf(float f)
Definition fx_system.cpp:92
CFX_CSSNumberValue::Unit type
Definition cfx_cssdata.h:31
CFX_CSSPropertyValue eName
Definition cfx_cssdata.h:25
CFX_CSSProperty eName
Definition cfx_cssdata.h:19