Convert this structure to a rectangle This is only valid when IsRect() returns ETrue. It is intended that this is used when the caller knows that the LAF line encoded in this structure is written with l, t, W and H specified, as is the case with many LAF lines.
THIS METHOD IS DEPRECATED, PLEASE DO NOT USE IT! USE OF THIS METHOD MAY RETURN UNEXPECTED VALUES IN SCALABLE UI.
Here's CORRECT WAY to do the same thing: TRect parent = iAvkonAppUi->ClientRect(); // pick parent rectangle from existing control hierarchy. TAknLayoutRect rect; rect.LayoutRect(parent, AknLayout::xxxx() ); // TAknWindowLineLayout should go directly to LayoutRect/LayoutControl etc. methods ... use rect.Rect().... // This one is VALID rectangle, calculated based on parent rectangle.
NOTE, the parent comes from _existing control hierarchy_ CCoeControl::Rect() or from TAknLayoutRect::Rect() method.
BUT PLEASE, DO NOT USE TAknWindowLineLayout::Rect(), because it assumes invalid things about our layout data. (the parent rectangle _needs_ to be provided to get a valid rectangle!)
THIS METHOD IS DEPRECATED, PLEASE DO NOT USE IT! USE OF THIS METHOD MAY RETURN UNEXPECTED VALUES IN SCALABLE UI.