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
cfgas_gecolor.cpp
Go to the documentation of this file.
1
// Copyright 2016 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
#
include
"xfa/fgas/graphics/cfgas_gecolor.h"
8
9
CFGAS_GEColor
::
CFGAS_GEColor
(
FX_ARGB
argb) : m_type(
Solid
), m_argb(argb) {}
10
11
CFGAS_GEColor
::
CFGAS_GEColor
(CFGAS_GEPattern* pattern,
FX_ARGB
argb)
12
: m_type(
Pattern
), m_argb(argb),
m_pPattern
(
pattern
) {}
13
14
CFGAS_GEColor
::
CFGAS_GEColor
(CFGAS_GEShading* shading)
15
: m_type(
Shading
),
m_pShading
(
shading
) {}
16
17
CFGAS_GEColor
::
CFGAS_GEColor
(
const
CFGAS_GEColor
& that) =
default
;
18
19
CFGAS_GEColor
::~
CFGAS_GEColor
() =
default
;
20
21
CFGAS_GEColor
&
CFGAS_GEColor
::
operator
=(
const
CFGAS_GEColor
& that) =
default
;
22
23
// static
24
ByteString
CFGAS_GEColor
::
ColorToString
(
FX_ARGB
argb) {
25
FX_BGR_STRUCT
<uint8_t> bgr = ArgbToBGRStruct(argb);
26
return
ByteString
::
Format
(
"%d,%d,%d"
,
bgr.red
,
bgr.green
,
bgr.blue
)
;
27
}
ByteString
fxcrt::ByteString ByteString
Definition
bytestring.h:180
CFGAS_GEColor
Definition
cfgas_gecolor.h:19
CFGAS_GEColor::operator=
CFGAS_GEColor & operator=(const CFGAS_GEColor &that)
CFGAS_GEColor::CFGAS_GEColor
CFGAS_GEColor(const CFGAS_GEColor &that)
CFGAS_GEColor::ColorToString
static ByteString ColorToString(FX_ARGB argb)
Definition
cfgas_gecolor.cpp:24
CFGAS_GEColor::~CFGAS_GEColor
~CFGAS_GEColor()
CFGAS_GEColor::CFGAS_GEColor
CFGAS_GEColor(FX_ARGB argb)
Definition
cfgas_gecolor.cpp:9
CFGAS_GEColor::CFGAS_GEColor
CFGAS_GEColor(CFGAS_GEPattern *pattern, FX_ARGB argb)
Definition
cfgas_gecolor.cpp:11
CFGAS_GEColor::CFGAS_GEColor
CFGAS_GEColor(CFGAS_GEShading *shading)
Definition
cfgas_gecolor.cpp:14
CFGAS_GEColor::Solid
@ Solid
Definition
cfgas_gecolor.h:21
CFGAS_GEColor::Shading
@ Shading
Definition
cfgas_gecolor.h:21
CFGAS_GEColor::Pattern
@ Pattern
Definition
cfgas_gecolor.h:21
fxcrt::ByteString::Format
static ByteString Format(const char *pFormat,...)
Definition
bytestring.cpp:79
FX_ARGB
uint32_t FX_ARGB
Definition
fx_dib.h:36
FX_BGR_STRUCT
Definition
fx_dib.h:53
qtwebengine
src
3rdparty
chromium
third_party
pdfium
xfa
fgas
graphics
cfgas_gecolor.cpp
Generated on
for Qt by
1.18.0