added and documented trivial wxDC::GetBackgroundMode(), documented several other missing wxDC functions

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7531 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2000-06-05 10:24:55 +00:00
parent 62e6b49c33
commit 7e446e11e0
2 changed files with 23 additions and 0 deletions

View File

@@ -386,12 +386,26 @@ and using a style:
\func{wxBrush\&}{GetBackground}{\void} \func{wxBrush\&}{GetBackground}{\void}
\constfunc{const wxBrush\&}{GetBackground}{\void}
Gets the brush used for painting the background (see \helpref{wxDC::SetBackground}{wxdcsetbackground}). Gets the brush used for painting the background (see \helpref{wxDC::SetBackground}{wxdcsetbackground}).
\membersection{wxDC::GetBackgroundMode}\label{wxdcgetbackgroundmode}
\constfunc{int}{GetBackgroundMode}{\void}
Returns the current background mode: {\tt wxSOLID} or {\tt wxTRANSPARENT}.
\wxheading{See also}
\helpref{SetBackgroundMode}{wxdcsetbackgroundmode}
\membersection{wxDC::GetBrush}\label{wxdcgetbrush} \membersection{wxDC::GetBrush}\label{wxdcgetbrush}
\func{wxBrush\&}{GetBrush}{\void} \func{wxBrush\&}{GetBrush}{\void}
\constfunc{const wxBrush\&}{GetBrush}{\void}
Gets the current brush (see \helpref{wxDC::SetBrush}{wxdcsetbrush}). Gets the current brush (see \helpref{wxDC::SetBrush}{wxdcsetbrush}).
\membersection{wxDC::GetCharHeight}\label{wxdcgetcharheight} \membersection{wxDC::GetCharHeight}\label{wxdcgetcharheight}
@@ -419,6 +433,8 @@ rectangle are returned as a tuple.}
\func{wxFont\&}{GetFont}{\void} \func{wxFont\&}{GetFont}{\void}
\constfunc{const wxFont\&}{GetFont}{\void}
Gets the current font (see \helpref{wxDC::SetFont}{wxdcsetfont}). Gets the current font (see \helpref{wxDC::SetFont}{wxdcsetfont}).
\membersection{wxDC::GetLogicalFunction}\label{wxdcgetlogicalfunction} \membersection{wxDC::GetLogicalFunction}\label{wxdcgetlogicalfunction}
@@ -444,6 +460,8 @@ See \helpref{wxDC::SetOptimization}{wxsetoptimization} for details.
\func{wxPen\&}{GetPen}{\void} \func{wxPen\&}{GetPen}{\void}
\constfunc{const wxPen\&}{GetPen}{\void}
Gets the current pen (see \helpref{wxDC::SetPen}{wxdcsetpen}). Gets the current pen (see \helpref{wxDC::SetPen}{wxdcsetpen}).
\membersection{wxDC::GetPixel}\label{wxdcgetpixel} \membersection{wxDC::GetPixel}\label{wxdcgetpixel}
@@ -490,6 +508,8 @@ implements the following methods:\par
\func{wxColour\&}{GetTextBackground}{\void} \func{wxColour\&}{GetTextBackground}{\void}
\constfunc{const wxColour\&}{GetTextBackground}{\void}
Gets the current text background colour (see \helpref{wxDC::SetTextBackground}{wxdcsettextbackground}). Gets the current text background colour (see \helpref{wxDC::SetTextBackground}{wxdcsettextbackground}).
\membersection{wxDC::GetTextExtent}\label{wxdcgettextextent} \membersection{wxDC::GetTextExtent}\label{wxdcgettextextent}
@@ -523,6 +543,8 @@ See also \helpref{wxFont}{wxfont}, \helpref{wxDC::SetFont}{wxdcsetfont}.
\func{wxColour\&}{GetTextForeground}{\void} \func{wxColour\&}{GetTextForeground}{\void}
\constfunc{const wxColour\&}{GetTextForeground}{\void}
Gets the current text foreground colour (see \helpref{wxDC::SetTextForeground}{wxdcsettextforeground}). Gets the current text foreground colour (see \helpref{wxDC::SetTextForeground}{wxdcsettextforeground}).

View File

@@ -330,6 +330,7 @@ public:
// --------- // ---------
// const... // const...
int GetBackgroundMode() const { return m_backgroundMode; }
const wxBrush& GetBackground() const { return m_backgroundBrush; } const wxBrush& GetBackground() const { return m_backgroundBrush; }
const wxBrush& GetBrush() const { return m_brush; } const wxBrush& GetBrush() const { return m_brush; }
const wxFont& GetFont() const { return m_font; } const wxFont& GetFont() const { return m_font; }