Why is wxFontInfo incomplete ?
Posted: Thu Dec 01, 2016 5:42 pm
Why are the "m_pointSize" and "m_pixelSize" fields of wxFontInfo made inaccessible by being declared private and then not giving a public access function to set them? I am porting a windows program to Linux and wish to use wxFontInfo in place of the Windows LOGFONT structure. Both these classes are just storing information for creating fonts so why not allow alteration of point size after creation of the wxFontInfo class? The program I am porting stores LOGFONT structures in a database and updates the size of the font just before the structure is used to create the font to be used for drawing on the Device Context. Is there a reason for not allowing access to "m_pointSize" and "m_pixelSize" or is this just an oversight? Also "AllFlags" will set the flags register "m_flags" but there is no simple way of "Getting" the flags register. I am using version 3.02 of wxWidgets.