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
cpwl_button.cpp
Go to the documentation of this file.
1
// Copyright 2014 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
"fpdfsdk/pwl/cpwl_button.h"
8
9
#
include
<
utility
>
10
11
CPWL_Button
::
CPWL_Button
(
12
const
CreateParams
& cp,
13
std::unique_ptr<IPWL_FillerNotify::PerWindowData> pAttachedData)
14
:
CPWL_Wnd
(cp,
std
::move(pAttachedData)) {
15
GetCreationParams
()->eCursorType =
IPWL_FillerNotify
::
CursorStyle
::
kHand
;
16
}
17
18
CPWL_Button
::~
CPWL_Button
() =
default
;
19
20
bool
CPWL_Button
::
OnLButtonDown
(
Mask
<FWL_EVENTFLAG> nFlag,
21
const
CFX_PointF
& point) {
22
CPWL_Wnd
::
OnLButtonDown
(
nFlag
,
point
)
;
23
m_bMouseDown
=
true
;
24
SetCapture
();
25
return
true
;
26
}
27
28
bool
CPWL_Button
::
OnLButtonUp
(
Mask
<FWL_EVENTFLAG> nFlag,
29
const
CFX_PointF
& point) {
30
CPWL_Wnd
::
OnLButtonUp
(
nFlag
,
point
)
;
31
ReleaseCapture
();
32
m_bMouseDown
=
false
;
33
return
true
;
34
}
CPWL_Button
Definition
cpwl_button.h:15
CPWL_Button::CPWL_Button
CPWL_Button(const CreateParams &cp, std::unique_ptr< IPWL_FillerNotify::PerWindowData > pAttachedData)
Definition
cpwl_button.cpp:11
CPWL_Button::~CPWL_Button
~CPWL_Button() override
CPWL_Button::OnLButtonUp
bool OnLButtonUp(Mask< FWL_EVENTFLAG > nFlag, const CFX_PointF &point) override
Definition
cpwl_button.cpp:28
CPWL_Button::OnLButtonDown
bool OnLButtonDown(Mask< FWL_EVENTFLAG > nFlag, const CFX_PointF &point) override
Definition
cpwl_button.cpp:20
CPWL_Button::m_bMouseDown
bool m_bMouseDown
Definition
cpwl_button.h:27
CPWL_Wnd::CreateParams
Definition
cpwl_wnd.h:96
CPWL_Wnd
Definition
cpwl_wnd.h:77
CPWL_Wnd::SetCapture
void SetCapture()
Definition
cpwl_wnd.cpp:519
CPWL_Wnd::ReleaseCapture
void ReleaseCapture()
Definition
cpwl_wnd.cpp:525
CPWL_Wnd::OnLButtonUp
virtual bool OnLButtonUp(Mask< FWL_EVENTFLAG > nFlag, const CFX_PointF &point)
CPWL_Wnd::GetCreationParams
CreateParams * GetCreationParams()
Definition
cpwl_wnd.h:238
CPWL_Wnd::OnLButtonDown
virtual bool OnLButtonDown(Mask< FWL_EVENTFLAG > nFlag, const CFX_PointF &point)
IPWL_FillerNotify
Definition
ipwl_fillernotify.h:19
IPWL_FillerNotify::CursorStyle
CursorStyle
Definition
ipwl_fillernotify.h:22
IPWL_FillerNotify::kHand
@ kHand
Definition
ipwl_fillernotify.h:28
fxcrt::Mask
Definition
mask.h:15
CFX_PointF
CFX_PTemplate< float > CFX_PointF
Definition
fx_coordinates.h:51
std
[33]
Definition
src_corelib_tools_qhash.cpp:421
qtwebengine
src
3rdparty
chromium
third_party
pdfium
fpdfsdk
pwl
cpwl_button.cpp
Generated on
for Qt by
1.18.0