dateevt.h 974 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: dateevt.h
  3. // Purpose: interface of wxDateEvent
  4. // Author: wxWidgets team
  5. // Licence: wxWindows licence
  6. /////////////////////////////////////////////////////////////////////////////
  7. /**
  8. @class wxDateEvent
  9. This event class holds information about a date change and is used together
  10. with wxDatePickerCtrl. It also serves as a base class
  11. for wxCalendarEvent.
  12. @library{wxadv}
  13. @category{events}
  14. */
  15. class wxDateEvent : public wxCommandEvent
  16. {
  17. public:
  18. wxDateEvent();
  19. wxDateEvent(wxWindow *win, const wxDateTime& dt, wxEventType type);
  20. /**
  21. Returns the date.
  22. */
  23. const wxDateTime& GetDate() const;
  24. /**
  25. Sets the date carried by the event, normally only used by the library
  26. internally.
  27. */
  28. void SetDate(const wxDateTime& date);
  29. };
  30. wxEventType wxEVT_DATE_CHANGED;
  31. wxEventType wxEVT_TIME_CHANGED;