X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a89abd7f0c87793ec57ee793d2b38c4eba22ba4b..bddd7a8d8953cf4c09e56c13e1bfcc594ba0267e:/include/wx/gdicmn.h diff --git a/include/wx/gdicmn.h b/include/wx/gdicmn.h index fbbe12fa96..e8c1c9e186 100644 --- a/include/wx/gdicmn.h +++ b/include/wx/gdicmn.h @@ -365,18 +365,6 @@ public: // return TRUE if the rectangles have a non empty intersection bool Intersects(const wxRect& rect) const; - // align in another rectangle according to WX alignment flags. - void AlignIn(const wxRect& rect, int align) - { - if (align & wxALIGN_CENTER_HORIZONTAL) x = rect.x + (rect.width-width)/2; - else if (align & wxALIGN_RIGHT) x = rect.x+rect.width - width; - else x = rect.x; - - if (align & wxALIGN_CENTER_VERTICAL) y = rect.y + (rect.height-height)/2; - else if (align & wxALIGN_BOTTOM) y = rect.y+rect.height - height; - else y = rect.y; - } - public: int x, y, width, height; }; @@ -413,8 +401,6 @@ public: wxBrush *FindOrCreateBrush(const wxColour& colour, int style); }; -WXDLLEXPORT_DATA(extern const wxChar*) wxEmptyString; - class WXDLLEXPORT wxFontList : public wxList { DECLARE_DYNAMIC_CLASS(wxFontList)