Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
cfx_cssdata.h
Go to the documentation of this file.
1
// Copyright 2018 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_CSSDATA_H_
8
#
define
CORE_FXCRT_CSS_CFX_CSSDATA_H_
9
10
#
include
"core/fxcrt/css/cfx_css.h"
11
#
include
"core/fxcrt/css/cfx_cssnumbervalue.h"
12
#
include
"core/fxcrt/css/cfx_cssvalue.h"
13
#
include
"core/fxcrt/widestring.h"
14
#
include
"core/fxge/dib/fx_dib.h"
15
16
class
CFX_CSSData
{
17
public
:
18
struct
Property
{
19
CFX_CSSProperty
eName
;
20
uint32_t
dwHash
;
// Hashed as wide string.
21
CFX_CSSValueTypeMask
dwTypes
;
22
};
23
24
struct
PropertyValue
{
25
CFX_CSSPropertyValue
eName
;
26
uint32_t
dwHash
;
// Hashed as wide string.
27
};
28
29
struct
LengthUnit
{
30
const
char
*
value
;
// Raw, POD struct.
31
CFX_CSSNumber
::
Unit
type
;
32
};
33
34
struct
Color
{
35
const
char
*
name
;
// Raw, POD struct.
36
FX_ARGB
value
;
37
};
38
39
static
const
Property
*
GetPropertyByName
(
WideStringView
name);
40
static
const
Property
*
GetPropertyByEnum
(
CFX_CSSProperty
property);
41
static
const
PropertyValue
*
GetPropertyValueByName
(
WideStringView
wsName);
42
static
const
LengthUnit
*
GetLengthUnitByName
(
WideStringView
wsName);
43
static
const
Color
*
GetColorByName
(
WideStringView
wsName);
44
};
45
46
#
endif
// CORE_FXCRT_CSS_CFX_CSSDATA_H_
CFX_CSSPropertyValue
CFX_CSSPropertyValue
Definition
cfx_css.h:35
CFX_CSSProperty
CFX_CSSProperty
Definition
cfx_css.h:28
CHECK_LT
#define CHECK_LT(x, y)
Definition
check_op.h:12
CFX_CSSData
Definition
cfx_cssdata.h:16
CFX_CSSData::GetPropertyByEnum
static const Property * GetPropertyByEnum(CFX_CSSProperty property)
Definition
cfx_cssdata.cpp:76
CFX_CSSData::GetColorByName
static const Color * GetColorByName(WideStringView wsName)
Definition
cfx_cssdata.cpp:115
CFX_CSSData::GetLengthUnitByName
static const LengthUnit * GetLengthUnitByName(WideStringView wsName)
Definition
cfx_cssdata.cpp:102
CFX_CSSData::GetPropertyByName
static const Property * GetPropertyByName(WideStringView name)
Definition
cfx_cssdata.cpp:58
CFX_CSSData::GetPropertyValueByName
static const PropertyValue * GetPropertyValueByName(WideStringView wsName)
Definition
cfx_cssdata.cpp:84
UNSAFE_BUFFERS
#define UNSAFE_BUFFERS(...)
Definition
compiler_specific.h:95
FX_ARGB
uint32_t FX_ARGB
Definition
fx_dib.h:36
std
[33]
Definition
src_corelib_tools_qhash.cpp:421
WideStringView
fxcrt::WideStringView WideStringView
Definition
string_view_template.h:326
CFX_CSSData::Color
Definition
cfx_cssdata.h:34
CFX_CSSData::Color::value
FX_ARGB value
Definition
cfx_cssdata.h:36
CFX_CSSData::Color::name
const char * name
Definition
cfx_cssdata.h:35
CFX_CSSData::LengthUnit
Definition
cfx_cssdata.h:29
CFX_CSSData::LengthUnit::type
CFX_CSSNumber::Unit type
Definition
cfx_cssdata.h:31
CFX_CSSData::LengthUnit::value
const char * value
Definition
cfx_cssdata.h:30
CFX_CSSData::PropertyValue
Definition
cfx_cssdata.h:24
CFX_CSSData::PropertyValue::dwHash
uint32_t dwHash
Definition
cfx_cssdata.h:26
CFX_CSSData::PropertyValue::eName
CFX_CSSPropertyValue eName
Definition
cfx_cssdata.h:25
CFX_CSSData::Property
Definition
cfx_cssdata.h:18
CFX_CSSData::Property::dwTypes
CFX_CSSValueTypeMask dwTypes
Definition
cfx_cssdata.h:21
CFX_CSSData::Property::eName
CFX_CSSProperty eName
Definition
cfx_cssdata.h:19
CFX_CSSData::Property::dwHash
uint32_t dwHash
Definition
cfx_cssdata.h:20
CFX_CSSNumber
Definition
cfx_cssnumbervalue.h:12
CFX_CSSNumber::Unit
Unit
Definition
cfx_cssnumbervalue.h:13
CFX_CSSNumber::Unit::kEMS
@ kEMS
Definition
cfx_cssnumbervalue.h:16
CFX_CSSNumber::Unit::kMilliMeters
@ kMilliMeters
Definition
cfx_cssnumbervalue.h:20
CFX_CSSNumber::Unit::kEXS
@ kEXS
Definition
cfx_cssnumbervalue.h:17
CFX_CSSNumber::Unit::kPoints
@ kPoints
Definition
cfx_cssnumbervalue.h:22
CFX_CSSNumber::Unit::kCentiMeters
@ kCentiMeters
Definition
cfx_cssnumbervalue.h:19
CFX_CSSNumber::Unit::kPixels
@ kPixels
Definition
cfx_cssnumbervalue.h:18
CFX_CSSNumber::Unit::kPicas
@ kPicas
Definition
cfx_cssnumbervalue.h:23
CFX_CSSNumber::Unit::kInches
@ kInches
Definition
cfx_cssnumbervalue.h:21
qtwebengine
src
3rdparty
chromium
third_party
pdfium
core
fxcrt
css
cfx_cssdata.h
Generated on
for Qt by
1.18.0