preparation work for implementing images support in wxButton: move wxBitmapButton methods to the base class (enhancing/completing them in the process); there are no functionality changes yet (hopefully)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61051 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1119,6 +1119,29 @@ template <typename T> wxDELETEA(T*& array);
|
||||
*/
|
||||
#define wxDEPRECATED_INLINE(func, body)
|
||||
|
||||
/**
|
||||
A helper macro allowing to easily define a simple deprecated accessor.
|
||||
|
||||
Compared to wxDEPRECATED_INLINE() it saves a @c return statement and,
|
||||
especially, a strangely looking semicolon inside a macro.
|
||||
|
||||
Example of use
|
||||
@code
|
||||
class wxFoo
|
||||
{
|
||||
public:
|
||||
int GetValue() const { return m_value; }
|
||||
|
||||
// this one is deprecated because it was erroneously non-const
|
||||
wxDEPRECATED_ACCESSOR( int GetValue(), m_value )
|
||||
|
||||
private:
|
||||
int m_value;
|
||||
};
|
||||
@endcode
|
||||
*/
|
||||
#define wxDEPRECATED_ACCESSOR(func, what)
|
||||
|
||||
/**
|
||||
Combination of wxDEPRECATED_BUT_USED_INTERNALLY() and wxDEPRECATED_INLINE().
|
||||
|
||||
|
Reference in New Issue
Block a user