wxWidgets/samples/font
Vadim Zeitlin b960795ea8 Add wxFontInfo class to allow using named parameters for wxFont creation.
This helper class allows to create wxFonts using shorter and more readable
code, e.g.

	wxFont font(12, wxFONTFLAG_DEFAULT,
		    wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, true,
		    "DejaVu Sans");

can now be written simply as

	wxFont font(wxFontInfo(12).FaceName("DejaVu Sans").Underlined());

Remove the ctor from font flags added in r70445 as it's not needed any longer
now that we have this one and adding it resulted in compilation errors in the
existing code which compiled with 2.8 because of ambiguities between that ctor
and wxFont(int size, int family, int style, int weight. bool underlined, ...)
one, e.g.

	wxFont(12, wxFONTFAMILY_SWISS, wxNORMAL, wxNORMAL)

didn't compile any more but it does compile again now.

See #9907.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73885 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-04-30 10:27:38 +00:00
..
descrip.mms Committing in . 2001-11-07 09:26:33 +00:00
font_vc7.vcproj Don't include wxUniversal configurations in MSVC project files. 2013-01-21 16:37:01 +00:00
font_vc8.vcproj Don't include wxUniversal configurations in MSVC project files. 2013-01-21 16:37:01 +00:00
font_vc9.vcproj Don't include wxUniversal configurations in MSVC project files. 2013-01-21 16:37:01 +00:00
font.bkl Remove unnecessary mondrian.{ico,xpm} files from samples directory. 2010-06-20 17:42:33 +00:00
font.cpp Add wxFontInfo class to allow using named parameters for wxFont creation. 2013-04-30 10:27:38 +00:00
font.dsp Don't include wxUniversal configurations in MSVC project files. 2013-01-21 16:37:01 +00:00
makefile.bcc Don't include wxUniversal configurations in MSVC project files. 2013-01-21 16:37:01 +00:00
makefile.gcc Don't include wxUniversal configurations in MSVC project files. 2013-01-21 16:37:01 +00:00
Makefile.in Don't include wxUniversal configurations in MSVC project files. 2013-01-21 16:37:01 +00:00
makefile.unx Remove wxMGL port. 2012-01-15 14:46:41 +00:00
makefile.vc Don't include wxUniversal configurations in MSVC project files. 2013-01-21 16:37:01 +00:00
makefile.wat Don't include wxUniversal configurations in MSVC project files. 2013-01-21 16:37:01 +00:00