RectFromAttribs() recalculates the control's rectangle from the attributes. This can only be called after ParseAttributes() has loaded the images.
Reimplemented in CATControlWnd, CATKnob, CATSkin, and CATWindow.
Definition at line 225 of file CATGuiObj.cpp.
References CATRECT::bottom, CAT_ERR_SKIN_XPIN_MISUSE, CAT_ERR_SKIN_YPIN_MISUSE, CAT_SUCCESS, CATRESULTDESC, CATRect::CenterX(), CATRect::CenterY(), CATString::Compare(), fImage, fMaxHeight, fMaxWidth, fMinHeight, fMinWidth, CATXMLObject::fParent, fRect, CATXMLObject::GetAttribute(), CATXMLObject::GetChild(), GetName(), CATXMLObject::GetNumChildren(), GetPrimaryMonitorRect(), CATRect::Height(), CATImage::Height(), CATString::IsEmpty(), CATRECT::left, CATString::Length(), RectFromAttribs(), CATRECT::right, CATString::Right(), CATRECT::top, CATImage::Width(), CATRect::Width(), and CATRect::ZeroOrigin().
Referenced by CATWindow::OnSize(), CATWindow::RectFromAttribs(), RectFromAttribs(), CATControlWnd::RectFromAttribs(), and CATProgress::SetImages().