menu changed, many uninitialized variables are now initialized - thanks Purify

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2725 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
1999-06-09 11:36:45 +00:00
parent 3a5ffa81c1
commit 8236a88ae2
4 changed files with 80 additions and 44 deletions

View File

@@ -904,7 +904,6 @@ public:
inline void SetFontColour(wxColour *fg, wxColour *bg = NULL)
{ SetFont(-1,-1,-1,-1,-1,fg,bg); }
/**
Returns a pointer to the default settings.
This is only valid temporarily and should not be stored
@@ -913,6 +912,27 @@ public:
*/
wxLayoutStyleInfo &GetDefaultStyleInfo(void) { return m_DefaultStyleInfo ; }
wxLayoutStyleInfo &GetStyleInfo(void) { return m_CurrentStyleInfo ; }
const wxLayoutStyleInfo &GetStyleInfo(void) const { return m_CurrentStyleInfo ; }
/// is the current font underlined?
bool IsFontUnderlined() const { return GetStyleInfo().underline != 0; }
/// is the current font bold?
bool IsFontBold() const { return GetStyleInfo().weight == wxBOLD; }
/// is the current font italic?
bool IsFontItalic() const { return GetStyleInfo().style == wxITALIC; }
/// set underline if it was off, turn it off if it was on
void ToggleFontUnderline()
{ SetFontUnderline(!IsFontUnderlined()); }
/// make font bold if it was normal or make it normal if it was bold
void ToggleFontWeight()
{ SetFontWeight(IsFontBold() ? wxNORMAL : wxBOLD); }
/// make font italic if it was normal or make it normal if it was italic
void ToggleFontItalics()
{ SetFontStyle(IsFontItalic() ? wxNORMAL : wxITALIC); }
//@}
/**@name Drawing */