TAknWindowLineLayout Class Reference

class TAknWindowLineLayout

A window line structure from layout.

Constructor & Destructor Documentation

TAknWindowLineLayout()

TAknWindowLineLayout()[inline]

TAknWindowLineLayout(TInt)

TAknWindowLineLayout(TInt)[inline]

Parameters

TInt

TAknWindowLineLayout(const TAknWindowComponentLayout &)

IMPORT_CTAknWindowLineLayout(const TAknWindowComponentLayout &aLine)

Parameters

const TAknWindowComponentLayout & aLine

Member Functions Documentation

CombineLines(TAknWindowLineLayout, TAknWindowLineLayout)

IMPORT_C TAknWindowLineLayoutCombineLines(TAknWindowLineLayoutaLine,
TAknWindowLineLayoutaLine2
)[static]

IsRect()

TBool IsRect()const [inline]

Can this structure be used directly as a rectangle? ETrue when all of l,t,W,H are specified

Rect()

TRect Rect()const [inline]

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. a rectangle made from l, t, W and H

operator=(const TAknWindowComponentLayout &)

IMPORT_C TAknWindowLineLayoutoperator=(const TAknWindowComponentLayout &aLine)

Parameters

const TAknWindowComponentLayout & aLine

Member Data Documentation

TInt16 iC

TInt16 iC

TInt16 iH

TInt16 iH

TInt16 iW

TInt16 iW

TInt16 ib

TInt16 ib

TInt16 il

TInt16 il

TInt16 ir

TInt16 ir

TInt16 it

TInt16 it