initial commit
Signed-off-by: Peter Siegmund <mars3142@noreply.mars3142.dev>
This commit is contained in:
35
libs/wxWidgets-3.3.1/include/wx/private/log.h
Normal file
35
libs/wxWidgets-3.3.1/include/wx/private/log.h
Normal file
@@ -0,0 +1,35 @@
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// Name: wx/private/log.h
|
||||
// Purpose: Private wxLog-related declarations.
|
||||
// Author: Vadim Zeitlin
|
||||
// Created: 2025-01-19 (extracted from log.cpp)
|
||||
// Copyright: (c) 2025 Vadim Zeitlin <vadim@wxwidgets.org>
|
||||
// Licence: wxWindows licence
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _WX_PRIVATE_LOG_H_
|
||||
#define _WX_PRIVATE_LOG_H_
|
||||
|
||||
#include "wx/log.h"
|
||||
#include "wx/msgout.h"
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxLogOutputBest: wxLog wrapper around wxMessageOutputBest
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
class wxLogOutputBest : public wxLog
|
||||
{
|
||||
public:
|
||||
wxLogOutputBest() = default;
|
||||
|
||||
protected:
|
||||
virtual void DoLogText(const wxString& msg) override
|
||||
{
|
||||
wxMessageOutputBest().Output(msg);
|
||||
}
|
||||
|
||||
private:
|
||||
wxDECLARE_NO_COPY_CLASS(wxLogOutputBest);
|
||||
};
|
||||
|
||||
#endif // _WX_PRIVATE_LOG_H_
|
||||
Reference in New Issue
Block a user