epoc32/include/mw/eikcapca.h
branchSymbian3
changeset 4 837f303aceeb
parent 2 2fe1408b6811
equal deleted inserted replaced
3:e1b950c65cb4 4:837f303aceeb
     1 /*
     1 /*
     2 * Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 *
     8 *
     9 * Initial Contributors:
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    10 * Nokia Corporation - initial contribution.
    11 *
    11 *
    12 * Contributors:
    12 * Contributors:
   120 	TInt YPosToLine(const TRect &aRect, TInt aTop, TInt aMiddle, TInt aBottom, TInt aYCoord);
   120 	TInt YPosToLine(const TRect &aRect, TInt aTop, TInt aMiddle, TInt aBottom, TInt aYCoord);
   121 	void CreateExtensionL();
   121 	void CreateExtensionL();
   122 	CEikCapCArrayExtension *ExtensionOrNull() const;
   122 	CEikCapCArrayExtension *ExtensionOrNull() const;
   123 	
   123 	
   124 	/**
   124 	/**
   125 	* Scrolls each item by aDelta pixels in y direction.
   125      * Scrolls each item by aDelta pixels in y direction.
   126 	*/
   126      */
   127 	TInt ScrollByPixels( TInt aDelta );
   127 	TInt ScrollByPixels( TInt aDelta );
   128 	
   128 	
   129 	/**
   129 	/**
   130 	* Return the index of the line at aYPos.
   130      * Return the index of the line at aYPos.
   131 	*/
   131      */
   132 	TInt YPositionToLineIndex( TInt aYPos ) const;
   132 	TInt YPositionToLineIndex( TInt aYPos ) const;
   133 	
   133 	
   134 	/**
   134 	/**
   135 	* Returns line's top y coordinate.
   135      * Returns line's top y coordinate.
   136 	*/
   136      */
   137 	TInt LineIndexToYPosition( TInt aLine, TInt aTopY ) const;
   137 	TInt LineIndexToYPosition( TInt aLine, TInt aTopY ) const;
   138 	
   138 	
   139 	/**
   139 	/**
   140 	* Moves aLine to the visible screen area or out of it.
   140      * Moves aLine to the visible screen area or out of it.
   141 	*/
   141      */
   142 	void MoveLineToScreen( TInt aLine, TInt aTopY, TBool aVisible );
   142 	void MoveLineToScreen( TInt aLine, TInt aTopY, TBool aVisible );
       
   143 	
       
   144     /**
       
   145      * Calculates the line that should be focused when a navigation key is
       
   146      * pressed while in form view mode.
       
   147      *
       
   148      * @since S60 5.2
       
   149      * @param aCurrentLine Current line's index.
       
   150      * @param aTopY View's top y coordinate.
       
   151      * @return Line that should be focused.
       
   152      */
       
   153     TInt FocusableLine( TInt aCurrentLine, TInt aTopY );
   143 	
   154 	
   144 private:
   155 private:
   145     /**
   156     /**
   146     * Positions controls in real locations.
   157     * Positions controls in real locations.
   147     */
   158     */