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
cfwl_themepart.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/fwl/cfwl_themepart.h"
8
9
namespace
pdfium
{
10
11
CFWL_ThemePart
::
CFWL_ThemePart
(
Part
iPart,
CFWL_Widget
* pWidget)
12
: m_iPart(iPart),
m_pWidget
(
pWidget
) {}
13
14
CFWL_ThemePart
::~
CFWL_ThemePart
() =
default
;
15
16
FWLTHEME_STATE
CFWL_ThemePart
::
GetThemeState
()
const
{
17
if
(m_dwStates & CFWL_PartState::kDisabled)
18
return
FWLTHEME_STATE
::
kDisable
;
19
if
(m_dwStates & CFWL_PartState::kPressed)
20
return
FWLTHEME_STATE
::
kPressed
;
21
if
(m_dwStates & CFWL_PartState::kHovered)
22
return
FWLTHEME_STATE
::
kHover
;
23
return
FWLTHEME_STATE
::
kNormal
;
24
}
25
26
}
// namespace pdfium
pdfium::CFDETextOutLargeBitmapTest
Definition
cfde_textout_unittest.cpp:117
pdfium::CFWL_ThemePart
Definition
cfwl_themepart.h:39
pdfium::CFWL_ThemePart::~CFWL_ThemePart
~CFWL_ThemePart()
pdfium::CFWL_ThemePart::CFWL_ThemePart
CFWL_ThemePart(Part iPart, CFWL_Widget *pWidget)
Definition
cfwl_themepart.cpp:11
pdfium::CFWL_ThemePart::Part
Part
Definition
cfwl_themepart.h:41
pdfium::CFWL_ThemePart::GetThemeState
FWLTHEME_STATE GetThemeState() const
Definition
cfwl_themepart.cpp:16
pdfium::CFWL_Widget
Definition
cfwl_widget.h:70
pdfium::FWLTHEME_STATE
FWLTHEME_STATE
Definition
cfwl_utils.h:17
pdfium::FWLTHEME_STATE::kNormal
@ kNormal
Definition
cfwl_utils.h:17
pdfium::FWLTHEME_STATE::kDisable
@ kDisable
Definition
cfwl_utils.h:17
pdfium::FWLTHEME_STATE::kHover
@ kHover
Definition
cfwl_utils.h:17
pdfium::FWLTHEME_STATE::kPressed
@ kPressed
Definition
cfwl_utils.h:17
qtwebengine
src
3rdparty
chromium
third_party
pdfium
xfa
fwl
cfwl_themepart.cpp
Generated on
for Qt by
1.14.0