xref: /aosp_15_r20/external/pdfium/xfa/fwl/cfwl_eventselectchanged.h (revision 3ac0a46f773bac49fa9476ec2b1cf3f8da5ec3a4)
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 #ifndef XFA_FWL_CFWL_EVENTSELECTCHANGED_H_
8 #define XFA_FWL_CFWL_EVENTSELECTCHANGED_H_
9 
10 #include <stdint.h>
11 
12 #include "xfa/fwl/cfwl_event.h"
13 
14 class CFWL_EventSelectChanged final : public CFWL_Event {
15  public:
16   CFWL_EventSelectChanged(CFWL_Widget* pSrcTarget, bool bLButtonUp);
17   CFWL_EventSelectChanged(CFWL_Widget* pSrcTarget,
18                           int32_t iYear,
19                           int32_t iMonth,
20                           int32_t iDay);
21   ~CFWL_EventSelectChanged() override;
22 
GetLButtonUp()23   bool GetLButtonUp() const { return m_bLButtonUp; }
GetYear()24   int32_t GetYear() const { return m_iYear; }
GetMonth()25   int32_t GetMonth() const { return m_iMonth; }
GetDay()26   int32_t GetDay() const { return m_iDay; }
27 
28  protected:
29   // Used by ComboBox.
30   const bool m_bLButtonUp;
31 
32   // Used by DateTimePIcker
33   const int32_t m_iYear;
34   const int32_t m_iMonth;
35   const int32_t m_iDay;
36 };
37 
38 #endif  // XFA_FWL_CFWL_EVENTSELECTCHANGED_H_
39