mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-10-26 03:10:40 -05:00
Import r67258 of the wxWidgets trunk, which I expect will before
long become wxWidgets 2.9.2, which in turn is expected to be the last 2.9 release before the 3.0 stable release. Since the full wxWidgets distribution is rather large, I have imported only the parts that we use, on a subdirectory basis: art include/wx/*.* include/wx/aui include/wx/cocoa include/wx/generic include/wx/gtk include/wx/meta include/wx/msw include/wx/osx include/wx/persist include/wx/private include/wx/protocol include/wx/unix src/aui src/common src/generic src/gtk src/msw src/osx src/unix git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7380 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
69
Externals/wxWidgets3/src/common/fontdata.cpp
vendored
Normal file
69
Externals/wxWidgets3/src/common/fontdata.cpp
vendored
Normal file
@@ -0,0 +1,69 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: src/common/fontdata.cpp
|
||||
// Author: Julian Smart
|
||||
// RCS-ID: $Id: fontdata.cpp 66615 2011-01-07 05:26:57Z PC $
|
||||
// Copyright: (c) Julian Smart
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#if wxUSE_FONTDLG || wxUSE_FONTPICKERCTRL
|
||||
|
||||
#include "wx/fontdata.h"
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxFontData, wxObject)
|
||||
|
||||
wxFontData::wxFontData()
|
||||
{
|
||||
m_showHelp = false;
|
||||
m_allowSymbols = true;
|
||||
m_enableEffects = true;
|
||||
m_minSize = 0;
|
||||
m_maxSize = 0;
|
||||
|
||||
m_encoding = wxFONTENCODING_SYSTEM;
|
||||
}
|
||||
|
||||
wxFontData::~wxFontData()
|
||||
{
|
||||
}
|
||||
|
||||
wxFontData::wxFontData(const wxFontData& data)
|
||||
: wxObject(),
|
||||
m_fontColour(data.m_fontColour),
|
||||
m_showHelp(data.m_showHelp),
|
||||
m_allowSymbols(data.m_allowSymbols),
|
||||
m_enableEffects(data.m_enableEffects),
|
||||
m_initialFont(data.m_initialFont),
|
||||
m_chosenFont(data.m_chosenFont),
|
||||
m_minSize(data.m_minSize),
|
||||
m_maxSize(data.m_maxSize),
|
||||
m_encoding(data.m_encoding),
|
||||
m_encodingInfo(data.m_encodingInfo)
|
||||
{
|
||||
}
|
||||
|
||||
wxFontData& wxFontData::operator=(const wxFontData& data)
|
||||
{
|
||||
if (&data != this)
|
||||
{
|
||||
wxObject::operator=(data);
|
||||
m_fontColour = data.m_fontColour;
|
||||
m_showHelp = data.m_showHelp;
|
||||
m_allowSymbols = data.m_allowSymbols;
|
||||
m_enableEffects = data.m_enableEffects;
|
||||
m_initialFont = data.m_initialFont;
|
||||
m_chosenFont = data.m_chosenFont;
|
||||
m_minSize = data.m_minSize;
|
||||
m_maxSize = data.m_maxSize;
|
||||
m_encoding = data.m_encoding;
|
||||
m_encodingInfo = data.m_encodingInfo;
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
#endif // wxUSE_FONTDLG || wxUSE_FONTPICKERCTRL
|
||||
Reference in New Issue
Block a user