class TAknWindowComponentLayout |
A window component structure from scalable layout.
The data members of this class have the following invariants which must be preserved in any methods of this class.
il + iW + ir = parentRect.Width() it + iH + ib = parentRect.Height()
The data format of the data members are as follows: (AknLayoutUtils knows this) any of il,iW,ir, it,iH,ib may be one of the following 1) coordinate value 2) ELayoutEmpty 3) ELayoutP - value
Private Member Functions | |
---|---|
IMPORT_C TInt16 | C () |
TAknTextComponentLayout | CombineAttrs ( TAknWindowComponentLayout , const TAknTextComponentLayoutAttrs &) |
TAknWindowComponentLayout | ExtractWindow ( TAknTextComponentLayout ) |
TTriplet | FromRangeToTriplet (const TRangeTriplet &) |
IMPORT_C TInt16 | H () |
TAknWindowComponentLayout | Multiply ( TAknWindowComponentLayout , const TTriplet &) |
TInt16 | MultiplyValue ( TInt16 , TScaledInt , TScaledInt ) |
TAknWindowComponentLayout | RemoveLayoutEmptys ( TAknWindowComponentLayout ) |
IMPORT_C void | SetC ( TInt16 ) |
IMPORT_C void | SetH ( TInt16 ) |
IMPORT_C void | SetW ( TInt16 ) |
IMPORT_C void | Setb ( TInt16 ) |
IMPORT_C void | Setl ( TInt16 ) |
IMPORT_C void | Setr ( TInt16 ) |
IMPORT_C void | Sett ( TInt16 ) |
IMPORT_C TInt16 | W () |
IMPORT_C TInt16 | b () |
IMPORT_C TInt16 | l () |
IMPORT_C TInt16 | r () |
IMPORT_C TInt16 | t () |
IMPORT_C | TAknWindowComponentLayout | ( | TAknWindowLineLayout | aLine | ) |
TAknWindowLineLayout aLine |
IMPORT_C TAknWindowComponentLayout | Anim | ( | TAknWindowComponentLayout | aLine, |
TAknWindowComponentLayout | aLine2, | |||
const TRangeTriplet & | aTriplet | |||
) | [static] |
TAknWindowComponentLayout aLine | |
TAknWindowComponentLayout aLine2 | |
const TRangeTriplet & aTriplet |
TAknTextComponentLayout | CombineAttrs | ( | TAknWindowComponentLayout | aLine1, |
const TAknTextComponentLayoutAttrs & | aAttrs | |||
) | [private, static] |
TAknWindowComponentLayout aLine1 | |
const TAknTextComponentLayoutAttrs & aAttrs |
IMPORT_C TAknWindowComponentLayout | Compose | ( | TAknWindowComponentLayout | aLine1, |
TAknWindowComponentLayout | aLine2 | |||
) | [static] |
TAknWindowComponentLayout aLine1 | |
TAknWindowComponentLayout aLine2 |
IMPORT_C TAknTextComponentLayout | ComposeText | ( | TAknWindowComponentLayout | aLine1, |
TAknTextComponentLayout | aLine2 | |||
) | [static] |
TAknWindowComponentLayout aLine1 | |
TAknTextComponentLayout aLine2 |
TAknWindowComponentLayout | ExtractWindow | ( | TAknTextComponentLayout | aText | ) | [private, static] |
TAknTextComponentLayout aText |
void | FormFieldHack | ( | TAknWindowComponentLayout & | aLayout | ) | [static, inline] |
TAknWindowComponentLayout & aLayout |
TTriplet | FromRangeToTriplet | ( | const TRangeTriplet & | aRange | ) | [private, static] |
const TRangeTriplet & aRange |
IMPORT_C TAknWindowComponentLayout | Intersect | ( | TAknWindowComponentLayout | aLine, |
TAknWindowComponentLayout | aLine2 | |||
) | [static] |
TAknWindowComponentLayout aLine | |
TAknWindowComponentLayout aLine2 |
void | ListGenPaneHack | ( | TAknWindowComponentLayout & | aLayout | ) | [static, inline] |
TAknWindowComponentLayout & aLayout |
TAknWindowComponentLayout | ListPaneHack | ( | const TAknWindowComponentLayout & | aLayout, |
const TAknWindowComponentLayout | aListGenPane | |||
) | [static, inline] |
const TAknWindowComponentLayout & aLayout | |
const TAknWindowComponentLayout aListGenPane |
IMPORT_C TAknWindowComponentLayout | Minus | ( | TAknWindowComponentLayout | aLine, |
TAknWindowComponentLayout | aParentDiff | |||
) | [static] |
subtract two layout lines relative to the same parent rectangle
Minus combines two layout lines in such way that a) the result is aLine with it's parent rectangle changed b) aLine and aParentDiff's parent rectangles becomes the same; and result's parent rectangle is calculated to be aParentDiff's child rectangle.
TAknWindowComponentLayout aLine | the inner rect |
TAknWindowComponentLayout aParentDiff | the difference between the parent and the inner rect |
IMPORT_C TAknWindowComponentLayout | MultiLineGrid | ( | TAknWindowComponentLayout | aFirst, |
TInt | aColumnIndex, | |||
TInt | aRowIndex, | |||
TInt | aGapBetweenColumns, | |||
TInt | aGapBetweenRows | |||
) | [static] |
This method calculates a grid item position in based on first cell.
TAknWindowComponentLayout aFirst | |
TInt aColumnIndex | |
TInt aRowIndex | |
TInt aGapBetweenColumns | |
TInt aGapBetweenRows |
IMPORT_C TAknWindowComponentLayout | MultiLineX | ( | TAknWindowComponentLayout | aFirst, |
TInt | aColumnIndex, | |||
TInt | aGapBetweenColumns | |||
) | [static] |
This method calculates a grid item position in X-dimension based on first cell.
TAknWindowComponentLayout aFirst | |
TInt aColumnIndex | |
TInt aGapBetweenColumns |
IMPORT_C TAknWindowComponentLayout | MultiLineY | ( | TAknWindowComponentLayout | aFirst, |
TInt | aItemIndex, | |||
TInt | aGapBetweenItems | |||
) | [static] |
This method calculates a list item position based on first item. This can be used to calculate either list item positions or grid cell Y-positions.
TAknWindowComponentLayout aFirst | |
TInt aItemIndex | |
TInt aGapBetweenItems |
TAknWindowComponentLayout | Multiply | ( | TAknWindowComponentLayout | aLine1, |
const TTriplet & | aTriplet | |||
) | [private, static] |
TAknWindowComponentLayout aLine1 | |
const TTriplet & aTriplet |
TInt16 | MultiplyValue | ( | TInt16 | aValue, |
TScaledInt | aMultiplier, | |||
TScaledInt | aPMultiplier | |||
) | [private, static] |
TInt16 aValue | |
TScaledInt aMultiplier | |
TScaledInt aPMultiplier |
TAknWindowComponentLayout | RemoveLayoutEmptys | ( | TAknWindowComponentLayout | aLine1 | ) | [private, static] |
TAknWindowComponentLayout aLine1 |
void | ScrollIndicatorHack | ( | const TAknWindowComponentLayout & | aWidthHeightLayout, |
TAknWindowComponentLayout & | aParent, | |||
TAknWindowComponentLayout & | aLayout, | |||
TInt | aDirection | |||
) | [static, inline] |
const TAknWindowComponentLayout & aWidthHeightLayout | |
TAknWindowComponentLayout & aParent | |
TAknWindowComponentLayout & aLayout | |
TInt aDirection |
IMPORT_C void | SetZeroSized | ( | ) |
Makes the window zero-sized, positioned in the top left corner.
IMPORT_C TAknWindowComponentLayout | SiblingAsChild | ( | TAknWindowComponentLayout | aSiblingTreatedAsParent, |
TAknWindowComponentLayout | aSiblingTreatedAsChild | |||
) | [static] |
Treat two layout lines as if one is a child of the other. The two layouts must have the same parent. They must also have the same pattern of absolute, ElayoutEmptys and Parent relative measurements, both vertically and horizontally.
TAknWindowComponentLayout aSiblingTreatedAsParent | |
TAknWindowComponentLayout aSiblingTreatedAsChild |
IMPORT_C TAknWindowComponentLayout | Split | ( | TAknWindowComponentLayout | aLine, |
TInt | aValue | |||
) | [static] |
This method splits parent rectangle to one of the 9 pieces based on aLine.
aValue is one of the numbers: 0 1 2 3 4 5 6 7 8 This is highly related to "frames" in skins. This allows us to generate a skin frame definition from a single TAknWindowComponentLayout .
TAknWindowComponentLayout aLine | |
TInt aValue |
IMPORT_C TAknWindowComponentLayout | operator= | ( | TAknWindowLineLayout | aLine | ) |
TAknWindowLineLayout aLine |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.