]>
git.saurik.com Git - wxWidgets.git/blob - src/common/fontdata.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/common/fontdata.cpp
3 // Author: Julian Smart
5 // Copyright: (c) Julian Smart
6 // Licence: wxWindows licence
7 /////////////////////////////////////////////////////////////////////////////
15 #if wxUSE_FONTDLG || wxUSE_FONTPICKERCTRL
17 #include "wx/fontdata.h"
19 IMPLEMENT_DYNAMIC_CLASS(wxFontData
, wxObject
)
21 wxFontData::wxFontData()
24 m_allowSymbols
= true;
25 m_enableEffects
= true;
29 m_encoding
= wxFONTENCODING_SYSTEM
;
32 wxFontData::~wxFontData()
36 wxFontData::wxFontData(const wxFontData
& data
)
38 m_fontColour(data
.m_fontColour
),
39 m_showHelp(data
.m_showHelp
),
40 m_allowSymbols(data
.m_allowSymbols
),
41 m_enableEffects(data
.m_enableEffects
),
42 m_initialFont(data
.m_initialFont
),
43 m_chosenFont(data
.m_chosenFont
),
44 m_minSize(data
.m_minSize
),
45 m_maxSize(data
.m_maxSize
),
46 m_encoding(data
.m_encoding
),
47 m_encodingInfo(data
.m_encodingInfo
)
51 wxFontData
& wxFontData::operator=(const wxFontData
& data
)
55 wxObject::operator=(data
);
56 m_fontColour
= data
.m_fontColour
;
57 m_showHelp
= data
.m_showHelp
;
58 m_allowSymbols
= data
.m_allowSymbols
;
59 m_enableEffects
= data
.m_enableEffects
;
60 m_initialFont
= data
.m_initialFont
;
61 m_chosenFont
= data
.m_chosenFont
;
62 m_minSize
= data
.m_minSize
;
63 m_maxSize
= data
.m_maxSize
;
64 m_encoding
= data
.m_encoding
;
65 m_encodingInfo
= data
.m_encodingInfo
;
69 #endif // wxUSE_FONTDLG || wxUSE_FONTPICKERCTRL