blob: 56dbe6c361f6727a00f5df6cccb36502ede57253 [file] [log] [blame]
kumarashishg826308d2023-06-23 13:21:22 +00001// Copyright 2014 The PDFium Authors
Philip P. Moltmannd904c1e2018-03-19 09:26:45 -07002// 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 FPDFSDK_PWL_CPWL_BUTTON_H_
8#define FPDFSDK_PWL_CPWL_BUTTON_H_
9
Haibo Huang49cc9302020-04-27 16:14:24 -070010#include <memory>
11
Philip P. Moltmannd904c1e2018-03-19 09:26:45 -070012#include "fpdfsdk/pwl/cpwl_wnd.h"
kumarashishg826308d2023-06-23 13:21:22 +000013#include "fpdfsdk/pwl/ipwl_fillernotify.h"
Philip P. Moltmannd904c1e2018-03-19 09:26:45 -070014
15class CPWL_Button : public CPWL_Wnd {
16 public:
Haibo Huang49cc9302020-04-27 16:14:24 -070017 CPWL_Button(const CreateParams& cp,
kumarashishg826308d2023-06-23 13:21:22 +000018 std::unique_ptr<IPWL_FillerNotify::PerWindowData> pAttachedData);
Philip P. Moltmannd904c1e2018-03-19 09:26:45 -070019 ~CPWL_Button() override;
20
21 // CPWL_Wnd
kumarashishg826308d2023-06-23 13:21:22 +000022 bool OnLButtonDown(Mask<FWL_EVENTFLAG> nFlag,
23 const CFX_PointF& point) override;
24 bool OnLButtonUp(Mask<FWL_EVENTFLAG> nFlag, const CFX_PointF& point) override;
Philip P. Moltmannd904c1e2018-03-19 09:26:45 -070025
26 protected:
Haibo Huang49cc9302020-04-27 16:14:24 -070027 bool m_bMouseDown = false;
Philip P. Moltmannd904c1e2018-03-19 09:26:45 -070028};
29
30#endif // FPDFSDK_PWL_CPWL_BUTTON_H_