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
CFWL_ThemePart
::
CFWL_ThemePart
(
Part
iPart,
CFWL_Widget
* pWidget)
10
: m_iPart(iPart),
m_pWidget
(
pWidget
) {}
11
12
CFWL_ThemePart
::~
CFWL_ThemePart
() =
default
;
13
14
FWLTHEME_STATE
CFWL_ThemePart
::
GetThemeState
()
const
{
15
if
(m_dwStates & CFWL_PartState::kDisabled)
16
return
FWLTHEME_STATE
::
kDisable
;
17
if
(m_dwStates & CFWL_PartState::kPressed)
18
return
FWLTHEME_STATE
::
kPressed
;
19
if
(m_dwStates & CFWL_PartState::kHovered)
20
return
FWLTHEME_STATE
::
kHover
;
21
return
FWLTHEME_STATE
::
kNormal
;
22
}
FWLTHEME_STATE
FWLTHEME_STATE
Definition
cfwl_utils.h:15
FWLTHEME_STATE::kNormal
@ kNormal
FWLTHEME_STATE::kDisable
@ kDisable
FWLTHEME_STATE::kHover
@ kHover
FWLTHEME_STATE::kPressed
@ kPressed
CFWL_ThemePart
Definition
cfwl_themepart.h:37
CFWL_ThemePart::Part
Part
Definition
cfwl_themepart.h:39
CFWL_ThemePart::CFWL_ThemePart
CFWL_ThemePart(Part iPart, CFWL_Widget *pWidget)
Definition
cfwl_themepart.cpp:9
CFWL_ThemePart::GetThemeState
FWLTHEME_STATE GetThemeState() const
Definition
cfwl_themepart.cpp:14
CFWL_ThemePart::~CFWL_ThemePart
~CFWL_ThemePart()
CFWL_Widget
Definition
cfwl_widget.h:68
qtwebengine
src
3rdparty
chromium
third_party
pdfium
xfa
fwl
cfwl_themepart.cpp
Generated on Sat Sep 21 2024 01:00:55 for Qt by
1.12.0