kumarashishg | 826308d | 2023-06-23 13:21:22 +0000 | [diff] [blame] | 1 | // Copyright 2016 The PDFium Authors |
Philip P. Moltmann | 4d3acf4 | 2017-03-20 11:05:52 -0700 | [diff] [blame] | 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 | |
kumarashishg | 826308d | 2023-06-23 13:21:22 +0000 | [diff] [blame] | 10 | #include <stdint.h> |
| 11 | |
Philip P. Moltmann | 4d3acf4 | 2017-03-20 11:05:52 -0700 | [diff] [blame] | 12 | #include "xfa/fwl/cfwl_event.h" |
| 13 | |
Haibo Huang | 49cc930 | 2020-04-27 16:14:24 -0700 | [diff] [blame] | 14 | class CFWL_EventSelectChanged final : public CFWL_Event { |
Philip P. Moltmann | 4d3acf4 | 2017-03-20 11:05:52 -0700 | [diff] [blame] | 15 | public: |
kumarashishg | 826308d | 2023-06-23 13:21:22 +0000 | [diff] [blame] | 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); |
Philip P. Moltmann | 4d3acf4 | 2017-03-20 11:05:52 -0700 | [diff] [blame] | 21 | ~CFWL_EventSelectChanged() override; |
| 22 | |
kumarashishg | 826308d | 2023-06-23 13:21:22 +0000 | [diff] [blame] | 23 | bool GetLButtonUp() const { return m_bLButtonUp; } |
| 24 | int32_t GetYear() const { return m_iYear; } |
| 25 | int32_t GetMonth() const { return m_iMonth; } |
| 26 | int32_t GetDay() const { return m_iDay; } |
| 27 | |
| 28 | protected: |
Philip P. Moltmann | 4d3acf4 | 2017-03-20 11:05:52 -0700 | [diff] [blame] | 29 | // Used by ComboBox. |
kumarashishg | 826308d | 2023-06-23 13:21:22 +0000 | [diff] [blame] | 30 | const bool m_bLButtonUp; |
Philip P. Moltmann | 4d3acf4 | 2017-03-20 11:05:52 -0700 | [diff] [blame] | 31 | |
| 32 | // Used by DateTimePIcker |
kumarashishg | 826308d | 2023-06-23 13:21:22 +0000 | [diff] [blame] | 33 | const int32_t m_iYear; |
| 34 | const int32_t m_iMonth; |
| 35 | const int32_t m_iDay; |
Philip P. Moltmann | 4d3acf4 | 2017-03-20 11:05:52 -0700 | [diff] [blame] | 36 | }; |
| 37 | |
| 38 | #endif // XFA_FWL_CFWL_EVENTSELECTCHANGED_H_ |