Cemu/src/gui/helpers/wxLogEvent.h
2022-08-22 22:21:23 +02:00

33 lines
665 B
C++

#pragma once
#include <wx/event.h>
class wxLogEvent;
wxDECLARE_EVENT(EVT_LOG, wxLogEvent);
class wxLogEvent : public wxCommandEvent
{
public:
wxLogEvent(const wxString& filter, const wxString& message)
: wxCommandEvent(EVT_LOG), m_filter(filter), m_message(message) { }
wxLogEvent(const wxLogEvent& event)
: wxCommandEvent(event), m_filter(event.m_filter), m_message(event.m_message) { }
wxEvent* Clone() const { return new wxLogEvent(*this); }
[[nodiscard]] const wxString& GetFilter() const
{
return m_filter;
}
[[nodiscard]] const wxString& GetMessage() const
{
return m_message;
}
private:
wxString m_filter;
wxString m_message;
};