xref: /aosp_15_r20/external/pdfium/fpdfsdk/pwl/cpwl_cbbutton.h (revision 3ac0a46f773bac49fa9476ec2b1cf3f8da5ec3a4)
1 // Copyright 2020 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 #ifndef FPDFSDK_PWL_CPWL_CBBUTTON_H_
8 #define FPDFSDK_PWL_CPWL_CBBUTTON_H_
9 
10 #include <memory>
11 
12 #include "fpdfsdk/pwl/cpwl_wnd.h"
13 #include "fpdfsdk/pwl/ipwl_fillernotify.h"
14 
15 class CPWL_CBButton final : public CPWL_Wnd {
16  public:
17   CPWL_CBButton(
18       const CreateParams& cp,
19       std::unique_ptr<IPWL_FillerNotify::PerWindowData> pAttachedData);
20   ~CPWL_CBButton() override;
21 
22   // CPWL_Wnd:
23   void DrawThisAppearance(CFX_RenderDevice* pDevice,
24                           const CFX_Matrix& mtUser2Device) override;
25   bool OnLButtonDown(Mask<FWL_EVENTFLAG> nFlag,
26                      const CFX_PointF& point) override;
27   bool OnLButtonUp(Mask<FWL_EVENTFLAG> nFlag, const CFX_PointF& point) override;
28 };
29 
30 #endif  // FPDFSDK_PWL_CPWL_CBBUTTON_H_
31