X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/94aff5ff86189e39b7a95fc62e886374c060a2cf..8f4745feeb2850f3bebb3af45407e164550d541a:/src/common/btncmn.cpp diff --git a/src/common/btncmn.cpp b/src/common/btncmn.cpp index 92e8103586..670dceacdf 100644 --- a/src/common/btncmn.cpp +++ b/src/common/btncmn.cpp @@ -23,6 +23,8 @@ #pragma hdrstop #endif +#if wxUSE_BUTTON + #ifndef WX_PRECOMP #include "wx/button.h" #include "wx/toplevel.h" @@ -42,3 +44,16 @@ wxWindow *wxButtonBase::SetDefault() return tlw->SetDefaultItem(this); } +void wxButtonBase::SetBitmapPosition(wxDirection dir) +{ + wxASSERT_MSG( !(dir & ~wxDIRECTION_MASK), "non-direction flag used" ); + wxASSERT_MSG( !!(dir & wxLEFT) + + !!(dir & wxRIGHT) + + !!(dir & wxTOP) + + !!(dir & wxBOTTOM) == 1, + "exactly one direction flag must be set" ); + + DoSetBitmapPosition(dir); + +} +#endif // wxUSE_BUTTON