blob: 8f79fe39cc4de3492d060fcb5da6264fad34c44a [file] [log] [blame]
kumarashishg826308d2023-06-23 13:21:22 +00001// Copyright 2016 The PDFium Authors
Philip P. Moltmann4d3acf42017-03-20 11:05:52 -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 XFA_FWL_CFWL_EVENTSELECTCHANGED_H_
8#define XFA_FWL_CFWL_EVENTSELECTCHANGED_H_
9
kumarashishg826308d2023-06-23 13:21:22 +000010#include <stdint.h>
11
Philip P. Moltmann4d3acf42017-03-20 11:05:52 -070012#include "xfa/fwl/cfwl_event.h"
13
Haibo Huang49cc9302020-04-27 16:14:24 -070014class CFWL_EventSelectChanged final : public CFWL_Event {
Philip P. Moltmann4d3acf42017-03-20 11:05:52 -070015 public:
kumarashishg826308d2023-06-23 13:21:22 +000016 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. Moltmann4d3acf42017-03-20 11:05:52 -070021 ~CFWL_EventSelectChanged() override;
22
kumarashishg826308d2023-06-23 13:21:22 +000023 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. Moltmann4d3acf42017-03-20 11:05:52 -070029 // Used by ComboBox.
kumarashishg826308d2023-06-23 13:21:22 +000030 const bool m_bLButtonUp;
Philip P. Moltmann4d3acf42017-03-20 11:05:52 -070031
32 // Used by DateTimePIcker
kumarashishg826308d2023-06-23 13:21:22 +000033 const int32_t m_iYear;
34 const int32_t m_iMonth;
35 const int32_t m_iDay;
Philip P. Moltmann4d3acf42017-03-20 11:05:52 -070036};
37
38#endif // XFA_FWL_CFWL_EVENTSELECTCHANGED_H_