added wxDEPRECATED_INLINE, use it for wxPixelData<wxBitmap>::UseAlpha() to fix Sun CC compilation

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48866 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-09-21 12:34:32 +00:00
parent f7e81ed1c2
commit 3694bb76c1
3 changed files with 24 additions and 7 deletions

View File

@@ -76,6 +76,7 @@ the corresponding topic.
\helpref{WXDEBUG\_NEW}{debugnew}\\
\helpref{wxDEPRECATED}{wxdeprecated}\\
\helpref{wxDEPRECATED\_BUT\_USED\_INTERNALLY}{wxdeprecatedbutusedinternally}\\
\helpref{wxDEPRECATED\_INLINE}{wxdeprecatedinline}\\
\helpref{wxDirExists}{functionwxdirexists}\\
\helpref{wxDirSelector}{wxdirselector}\\
\helpref{wxDisplayDepth}{wxdisplaydepth}\\
@@ -3008,6 +3009,25 @@ used from the user code or, in case of Visual C++, even when it is simply
overridden.
\membersection{wxDEPRECATED\_INLINE}\label{wxdeprecatedinline}
\func{}{wxDEPRECATED\_INLINE}{\param{}{func}, \param{}{body}}
This macro is similar to \helpref{wxDEPRECATED}{wxdeprecated} but can be used
to not only declare the function \arg{func} as deprecated but to also provide
its (inline) implementation \arg{body}.
It can be used as following:
\begin{verbatim}
class wxFoo
{
public:
// OldMethod() is deprecated, use NewMethod() instead
void NewMethod();
wxDEPRECATED_INLINE( void OldMethod(), NewMethod() );
};
\end{verbatim}
\membersection{wxEXPLICIT}\label{wxexplicit}
{\tt wxEXPLICIT} is a macro which expands to the C++ {\tt explicit} keyword if