CFsLayoutManager Class Reference

class CFsLayoutManager : public CBase

This class knows the specification's coordinate data format and ensures that different types of controls are positioned and setup correctly. Methods in this class are designed to be called from your control's SizeChanged() method!

   TRect parentRect;
   TRect layoutRect;
   // Request screen size from layout manager.
   // When requesting screen size parentRect is only needed by the
   // interface.
   CFsLayoutManager::LayoutMetricsRect( parentRect,
       CFsLayoutManager::EFsLmScreen, layoutRect );
   // Set parentRect to be the requested screen rect.
   parentRect = layoutRect;
   // Request position and size of application window.
   CFsLayoutManager::LayoutMetricsRect( parentRect,
       CFsLayoutManager::EFsLmApplicationWindow, layoutRect );
   // Corresponding value need to be set in parentRect when requesting it's
   // child pane.
   parentRect = layoutRect;
   // Request area top pane layout data.
   // Assume that landscape mode is in use. Check the variety values from
   // layout documents.
   CFsLayoutManager::LayoutMetricsRect( parentRect,
       CFsLayoutManager::EFsLmAreaTopPane, layoutRect, 1 );
?library
Since
S60 ?S60_version *** for example, S60 v3.0

Inherits from

Nested Classes and Structures

Public Member Functions
CFsLayoutManager()
IMPORT_C TBoolIsMirrored()
IMPORT_C TBoolLayoutMetricsPosition(const TRect &, TFsLayoutMetrics, TPoint &, TInt, TInt, TInt)
IMPORT_C TBoolLayoutMetricsRect(const TRect &, TFsLayoutMetrics, TRect &, TInt, TInt, TInt)
IMPORT_C TBoolLayoutMetricsSize(const TRect &, TFsLayoutMetrics, TSize &, TInt, TInt, TInt)
IMPORT_C TBoolLayoutMetricsText(const TRect &, TFsLayoutMetrics, TFsText &, TInt, TInt)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Public Member Enumerations
enumTFsLayoutMetrics {
EFsLmApplicationWindow, EFsLmAreaTopPane, EFsLmBgSpFsCtrlbarPane, EFsLmFolderListMediumLineG1, EFsLmFolderListMediumLineT1, EFsLmListMediumLineG1, EFsLmListMediumLineG2G1, EFsLmListMediumLineG2G2, EFsLmListMediumLineG2T1, EFsLmListMediumLineG3G1, EFsLmListMediumLineG3G2, EFsLmListMediumLineG3G3, EFsLmListMediumLineG3T1, EFsLmListMediumLinePlainT1, EFsLmListMediumLinePlainT2T1, EFsLmListMediumLinePlainT2T2, EFsLmListMediumLinePlainT3T1, EFsLmListMediumLinePlainT3T2, EFsLmListMediumLinePlainT3T3, EFsLmListMediumLineRightIconG1, EFsLmListMediumLineRightIconT1, EFsLmListMediumLineRightIconx2G1, EFsLmListMediumLineRightIconx2G2, EFsLmListMediumLineRightIconx2T1, EFsLmListMediumLineT1, EFsLmListMediumLineT2G1, EFsLmListMediumLineT2G2G1, EFsLmListMediumLineT2G2G2, EFsLmListMediumLineT2G2T1, EFsLmListMediumLineT2G2T2, EFsLmListMediumLineT2G3G1, EFsLmListMediumLineT2G3G2, EFsLmListMediumLineT2G3G3, EFsLmListMediumLineT2G3T1, EFsLmListMediumLineT2G3T2, EFsLmListMediumLineT2RightIconG1, EFsLmListMediumLineT2RightIconT1, EFsLmListMediumLineT2RightIconT2, EFsLmListMediumLineT2RightIconx2G1, EFsLmListMediumLineT2RightIconx2G2, EFsLmListMediumLineT2RightIconx2T1, EFsLmListMediumLineT2RightIconx2T2, EFsLmListMediumLineT2T1, EFsLmListMediumLineT2T2, EFsLmListMediumLineT32RightIconT2, EFsLmListMediumLineT3G1, EFsLmListMediumLineT3G2G1, EFsLmListMediumLineT3G2G2, EFsLmListMediumLineT3G2T1, EFsLmListMediumLineT3G2T2, EFsLmListMediumLineT3G2T3, EFsLmListMediumLineT3G3G1, EFsLmListMediumLineT3G3G2, EFsLmListMediumLineT3G3G3, EFsLmListMediumLineT3G3T1, EFsLmListMediumLineT3G3T2, EFsLmListMediumLineT3G3T3, EFsLmListMediumLineT3RightIconG1, EFsLmListMediumLineT3RightIconT1, EFsLmListMediumLineT3RightIconT2, EFsLmListMediumLineT3RightIconx2G1, EFsLmListMediumLineT3RightIconx2G2, EFsLmListMediumLineT3RightIconx2T1, EFsLmListMediumLineT3RightIconx2T2, EFsLmListMediumLineT3RightIconx2T3, EFsLmListMediumLineT3T1, EFsLmListMediumLineT3T2, EFsLmListMediumLineT3T3, EFsLmListMediumLineT4G4T3, EFsLmListMediumLineX2, EFsLmListMediumLineX2G1, EFsLmListMediumLineX2T2G2T1, EFsLmListMediumLineX2T2G3T1, EFsLmListMediumLineX2T2G4T1, EFsLmListMediumLineX2T3G2T1, EFsLmListMediumLineX2T3G2T2, EFsLmListMediumLineX2T3G3G1, EFsLmListMediumLineX2T3G3G2, EFsLmListMediumLineX2T3G3G3, EFsLmListMediumLineX2T3G3T1, EFsLmListMediumLineX2T3G3T2, EFsLmListMediumLineX2T3G4G1, EFsLmListMediumLineX2T3G4G2, EFsLmListMediumLineX2T3G4G3, EFsLmListMediumLineX2T3G4T1, EFsLmListMediumLineX2T3G4T2, EFsLmListMediumLineX2T3G4T3, EFsLmListMediumLineX2T3T3, EFsLmListMediumLineX2T4G4G4, EFsLmListMediumLineX3, EFsLmListMediumLineX3T4G4G4, EFsLmListMediumLineX3T4G4T2, EFsLmListMediumLineX3T4G4T3, EFsLmListMediumLineX3T4G4T4, EFsLmListSingleDycRowPane, EFsLmListSingleDycRowPaneG1, EFsLmListSingleDycRowPaneG2, EFsLmListSingleDycRowPaneG3, EFsLmListSingleDycRowPaneG4, EFsLmListSingleDycRowTextPane, EFsLmListSingleDycRowTextPaneT1, EFsLmListSingleDycRowTextPaneT2, EFsLmListSingleDycRowTextPaneT3, EFsLmListSingleFsDycPane, EFsLmMainPane, EFsLmMainSpFsCtrlbarButtonPaneCp01, EFsLmMainSpFsCtrlbarDdmenuPane, EFsLmMainSpFsCtrlbarDdmenuPaneG1, EFsLmMainSpFsCtrlbarDdmenuPaneG2, EFsLmMainSpFsCtrlbarDdmenuPaneT1, EFsLmMainSpFsCtrlbarPane, EFsLmMainSpFsCtrlbarPaneG1, EFsLmMainSpFsCtrlbarPaneG2, EFsLmMainSpFsListPane, EFsLmMainSpFsListscrollPaneTe, EFsLmPopupSpFsActionMenuPane, EFsLmScreen, EFsLmSpFsScrollPane, EFsLmSpFsActionMenuListGenePaneG1, EFsLmSpFsActionMenuListGenePaneT1, ECmailDdmenuBtn01Pane, ECmailDdmenuBtn01PaneG1, ECmailDdmenuBtn01PaneT1, ECmailDdmenuBtn01PaneG2, ECmailDdmenuBtn01PaneCP, ECmailDdmenuBtn02Pane, ECmailDdmenuBtn02PaneG1, ECmailDdmenuBtn02PaneG2, ECmailDdmenuBtn02PaneT1, ECmailDdmenuBtn02PaneT2, ECmailDdmenuBtn02PaneCP, ECmailDdmenuBtn03Pane, ECmailDdmenuBtn03PaneG1, ECmailDdmenuBtn03PaneT1, ECmailDdmenuBtn03PaneCP
}

Constructor & Destructor Documentation

CFsLayoutManager()

IMPORT_CCFsLayoutManager()

Member Functions Documentation

IsMirrored()

IMPORT_C TBoolIsMirrored()[static]

Determine if the mirroring is in use.

LayoutMetricsPosition(const TRect &, TFsLayoutMetrics, TPoint &, TInt, TInt, TInt)

IMPORT_C TBoolLayoutMetricsPosition(const TRect &aParent,
TFsLayoutMetricsaParan,
TPoint &aPos,
TIntaVariety = 0,
TIntaRow = 0,
TIntaCol = 0
)[static]

This method returns position of top left corner for given layout component. Returns EFalse for status pane descendants if requested layout component is not available in current layout. For other components returns always ETrue (returned position is from layout definition).

Parameters

const TRect & aParentRect of the parent layout.
TFsLayoutMetrics aParan
TPoint & aPosResulting position.
TInt aVariety = 0Defines items variety value. Check this from layout documents.
TInt aRow = 0Possible row value for queried item.
TInt aCol = 0Possible column value for queried item.

LayoutMetricsRect(const TRect &, TFsLayoutMetrics, TRect &, TInt, TInt, TInt)

IMPORT_C TBoolLayoutMetricsRect(const TRect &aParent,
TFsLayoutMetricsaParam,
TRect &aRect,
TIntaVariety = 0,
TIntaRow = 0,
TIntaCol = 0
)[static]

Fills given TRect with rectangle for given layout component. Returns EFalse for status pane descendants if requested layout component is not available in current layout. For other components returns always ETrue (returned rectangle is from layout definition).

Parameters

const TRect & aParentRect of the parent layout.
TFsLayoutMetrics aParamLayout component to be queried.
TRect & aRectResulting rectangle.
TInt aVariety = 0Defines items variety value. Check this from layout documents.
TInt aRow = 0Possible row value for queried item.
TInt aCol = 0Possible column value for queried item.

LayoutMetricsSize(const TRect &, TFsLayoutMetrics, TSize &, TInt, TInt, TInt)

IMPORT_C TBoolLayoutMetricsSize(const TRect &aParent,
TFsLayoutMetricsaParam,
TSize &aSize,
TIntaVariety = 0,
TIntaRow = 0,
TIntaCol = 0
)[static]

This method returns size of rectangle for given layout component. Returns EFalse for status pane descendants if requested layout component is not available in current layout. For other components returns always ETrue (returned size is from layout definition).

Parameters

const TRect & aParentRect of the parent layout.
TFsLayoutMetrics aParamLayout component to be queried.
TSize & aSizeResulting size.
TInt aVariety = 0Defines items variety value. Check this from layout documents.
TInt aRow = 0Possible row value for queried item.
TInt aCol = 0Possible column value for queried item.

LayoutMetricsText(const TRect &, TFsLayoutMetrics, TFsText &, TInt, TInt)

IMPORT_C TBoolLayoutMetricsText(const TRect &aParent,
TFsLayoutMetricsaParam,
TFsText &aText,
TIntaVariety = 0,
TIntaRow = 0
)[static]

This method returns text position and font information of given layout component. Returns EFalse for status pane descendants if requested layout component is not available in current layout. For other components returns always ETrue (returned position is from layout definition).

Parameters

const TRect & aParentRect of the parent layout.
TFsLayoutMetrics aParamLayout component to be queried.
TFsText & aTextResulting text information.
TInt aVariety = 0Defines items variety value. Check this from layout documents.
TInt aRow = 0Possible row value for queried item.

Member Enumerations Documentation

Enum TFsLayoutMetrics

Layout Metrics.

Enumerators

EFsLmApplicationWindow
EFsLmAreaTopPane
EFsLmBgSpFsCtrlbarPane
EFsLmFolderListMediumLineG1
EFsLmFolderListMediumLineT1
EFsLmListMediumLineG1
EFsLmListMediumLineG2G1
EFsLmListMediumLineG2G2
EFsLmListMediumLineG2T1
EFsLmListMediumLineG3G1
EFsLmListMediumLineG3G2
EFsLmListMediumLineG3G3
EFsLmListMediumLineG3T1
EFsLmListMediumLinePlainT1
EFsLmListMediumLinePlainT2T1
EFsLmListMediumLinePlainT2T2
EFsLmListMediumLinePlainT3T1
EFsLmListMediumLinePlainT3T2
EFsLmListMediumLinePlainT3T3
EFsLmListMediumLineRightIconG1
EFsLmListMediumLineRightIconT1
EFsLmListMediumLineRightIconx2G1
EFsLmListMediumLineRightIconx2G2
EFsLmListMediumLineRightIconx2T1
EFsLmListMediumLineT1
EFsLmListMediumLineT2G1
EFsLmListMediumLineT2G2G1
EFsLmListMediumLineT2G2G2
EFsLmListMediumLineT2G2T1
EFsLmListMediumLineT2G2T2
EFsLmListMediumLineT2G3G1
EFsLmListMediumLineT2G3G2
EFsLmListMediumLineT2G3G3
EFsLmListMediumLineT2G3T1
EFsLmListMediumLineT2G3T2
EFsLmListMediumLineT2RightIconG1
EFsLmListMediumLineT2RightIconT1
EFsLmListMediumLineT2RightIconT2
EFsLmListMediumLineT2RightIconx2G1
EFsLmListMediumLineT2RightIconx2G2
EFsLmListMediumLineT2RightIconx2T1
EFsLmListMediumLineT2RightIconx2T2
EFsLmListMediumLineT2T1
EFsLmListMediumLineT2T2
EFsLmListMediumLineT32RightIconT2
EFsLmListMediumLineT3G1
EFsLmListMediumLineT3G2G1
EFsLmListMediumLineT3G2G2
EFsLmListMediumLineT3G2T1
EFsLmListMediumLineT3G2T2
EFsLmListMediumLineT3G2T3
EFsLmListMediumLineT3G3G1
EFsLmListMediumLineT3G3G2
EFsLmListMediumLineT3G3G3
EFsLmListMediumLineT3G3T1
EFsLmListMediumLineT3G3T2
EFsLmListMediumLineT3G3T3
EFsLmListMediumLineT3RightIconG1
EFsLmListMediumLineT3RightIconT1
EFsLmListMediumLineT3RightIconT2
EFsLmListMediumLineT3RightIconx2G1
EFsLmListMediumLineT3RightIconx2G2
EFsLmListMediumLineT3RightIconx2T1
EFsLmListMediumLineT3RightIconx2T2
EFsLmListMediumLineT3RightIconx2T3
EFsLmListMediumLineT3T1
EFsLmListMediumLineT3T2
EFsLmListMediumLineT3T3
EFsLmListMediumLineT4G4T3
EFsLmListMediumLineX2
EFsLmListMediumLineX2G1
EFsLmListMediumLineX2T2G2T1
EFsLmListMediumLineX2T2G3T1
EFsLmListMediumLineX2T2G4T1
EFsLmListMediumLineX2T3G2T1
EFsLmListMediumLineX2T3G2T2
EFsLmListMediumLineX2T3G3G1
EFsLmListMediumLineX2T3G3G2
EFsLmListMediumLineX2T3G3G3
EFsLmListMediumLineX2T3G3T1
EFsLmListMediumLineX2T3G3T2
EFsLmListMediumLineX2T3G4G1
EFsLmListMediumLineX2T3G4G2
EFsLmListMediumLineX2T3G4G3
EFsLmListMediumLineX2T3G4T1
EFsLmListMediumLineX2T3G4T2
EFsLmListMediumLineX2T3G4T3
EFsLmListMediumLineX2T3T3
EFsLmListMediumLineX2T4G4G4
EFsLmListMediumLineX3
EFsLmListMediumLineX3T4G4G4
EFsLmListMediumLineX3T4G4T2
EFsLmListMediumLineX3T4G4T3
EFsLmListMediumLineX3T4G4T4
EFsLmListSingleDycRowPane
EFsLmListSingleDycRowPaneG1
EFsLmListSingleDycRowPaneG2
EFsLmListSingleDycRowPaneG3
EFsLmListSingleDycRowPaneG4
EFsLmListSingleDycRowTextPane
EFsLmListSingleDycRowTextPaneT1
EFsLmListSingleDycRowTextPaneT2
EFsLmListSingleDycRowTextPaneT3
EFsLmListSingleFsDycPane
EFsLmMainPane
EFsLmMainSpFsCtrlbarButtonPaneCp01
EFsLmMainSpFsCtrlbarDdmenuPane
EFsLmMainSpFsCtrlbarDdmenuPaneG1
EFsLmMainSpFsCtrlbarDdmenuPaneG2
EFsLmMainSpFsCtrlbarDdmenuPaneT1
EFsLmMainSpFsCtrlbarPane
EFsLmMainSpFsCtrlbarPaneG1
EFsLmMainSpFsCtrlbarPaneG2
EFsLmMainSpFsListPane
EFsLmMainSpFsListscrollPaneTe
EFsLmPopupSpFsActionMenuPane
EFsLmScreen
EFsLmSpFsScrollPane
EFsLmSpFsActionMenuListGenePaneG1
EFsLmSpFsActionMenuListGenePaneT1
ECmailDdmenuBtn01Pane
ECmailDdmenuBtn01PaneG1
ECmailDdmenuBtn01PaneT1
ECmailDdmenuBtn01PaneG2
ECmailDdmenuBtn01PaneCP
ECmailDdmenuBtn02Pane
ECmailDdmenuBtn02PaneG1
ECmailDdmenuBtn02PaneG2
ECmailDdmenuBtn02PaneT1
ECmailDdmenuBtn02PaneT2
ECmailDdmenuBtn02PaneCP
ECmailDdmenuBtn03Pane
ECmailDdmenuBtn03PaneG1
ECmailDdmenuBtn03PaneT1
ECmailDdmenuBtn03PaneCP