X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/792064e93f052115705de2f17c9ac0fe5de4bdb3..5143c96b4ffec3cabbec7cbaab759e61bede04db:/contrib/include/wx/xml/xmlres.h diff --git a/contrib/include/wx/xml/xmlres.h b/contrib/include/wx/xml/xmlres.h index 34df9e7538..e3338a605b 100644 --- a/contrib/include/wx/xml/xmlres.h +++ b/contrib/include/wx/xml/xmlres.h @@ -225,6 +225,9 @@ class WXDLLEXPORT wxXmlResourceHandler : public wxObject // Add style flag (e.g. wxMB_DOCKABLE) to list of flags // understood by this handler void AddStyle(const wxString& name, int value); + + // Add styles common to all wxWindow-derived classes + void AddWindowStyles(); // Gets style flags from text in form "flag | flag2| flag3 |..." // Only understads flags added with AddStyle @@ -249,9 +252,12 @@ class WXDLLEXPORT wxXmlResourceHandler : public wxObject // Get colour in HTML syntax (#RRGGBB) wxColour GetColour(const wxString& param); - // Get size/position: + // Get size/position (may be in dlg units): wxSize GetSize(const wxString& param = _T("size")); wxPoint GetPosition(const wxString& param = _T("pos")); + + // Get dimension (may be in dlg units): + wxCoord GetDimension(const wxString& param, wxCoord defaultv = 0); // Get bitmap: wxBitmap GetBitmap(const wxString& param = _T("bitmap"), wxSize size = wxDefaultSize);