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
cxfa_color.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 XFA_FXFA_PARSER_CXFA_COLOR_H_
8#define XFA_FXFA_PARSER_CXFA_COLOR_H_
9
10#include "core/fxcrt/widestring.h"
11#include "xfa/fxfa/parser/cxfa_node.h"
12
13class CXFA_Color final : public CXFA_Node {
14 public:
15 static constexpr FX_ARGB kBlackColor = 0xFF000000;
17
19 ~CXFA_Color() override;
20
21 FX_ARGB GetValue() const;
22 FX_ARGB GetValueOrDefault(FX_ARGB defaultValue) const;
23 void SetValue(FX_ARGB color);
24
25 private:
26 CXFA_Color(CXFA_Document* doc, XFA_PacketType packet);
27};
28
29#endif // XFA_FXFA_PARSER_CXFA_COLOR_H_
static ByteString ColorToString(FX_ARGB argb)
FX_ARGB GetValueOrDefault(FX_ARGB defaultValue) const
~CXFA_Color() override
FX_ARGB GetValue() const
static FX_ARGB StringToFXARGB(WideStringView view)
void SetValue(FX_ARGB color)
static constexpr FX_ARGB kBlackColor
Definition cxfa_color.h:15
static WideString FromASCII(ByteStringView str)
uint32_t FX_ARGB
Definition fx_dib.h:36
constexpr FX_ARGB ArgbEncode(uint32_t a, uint32_t r, uint32_t g, uint32_t b)
Definition fx_dib.h:188
XFA_AttributeType
Definition fxfa_basic.h:83
XFA_Attribute
Definition fxfa_basic.h:67
XFA_Element
Definition fxfa_basic.h:75
XFA_PacketType
Definition fxfa_basic.h:44
#define CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED
Definition heap.h:32
fxcrt::WideStringView WideStringView
fxcrt::WideString WideString
Definition widestring.h:207