msg_plat/smil_engine_api/inc/smilfocusinterface.h
branchRCL_3
changeset 60 7fdbb852d323
parent 0 72b543305e3a
equal deleted inserted replaced
57:ebe688cedc25 60:7fdbb852d323
       
     1 /*
       
     2 * Copyright (c) 2003 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: smilfocusinterface  declaration
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef SMILMEDIAFOCUSINTERFACE_H
       
    22 #define SMILMEDIAFOCUSINTERFACE_H
       
    23 
       
    24 #include <e32std.h>
       
    25 
       
    26 /**
       
    27  * Interface representing user focusable area on the screen.
       
    28  */
       
    29 
       
    30 class MSmilFocus
       
    31 	{
       
    32 public:
       
    33 	
       
    34 	enum TShape
       
    35 		{
       
    36 		ERect,
       
    37 		ECircle,
       
    38 		EPoly,
       
    39 		ENone
       
    40 		};
       
    41 
       
    42 public:
       
    43 	/**
       
    44 	* Shape of the focused area
       
    45 	*/
       
    46 	virtual TShape Shape() const = 0;
       
    47 
       
    48 	/**
       
    49 	* Bounding box of the focused area if Shape()==ERect or ECircle
       
    50 	*/
       
    51 	virtual TRect Rect() const = 0;
       
    52 
       
    53 	/**
       
    54 	* Corners of the polygon (non-zero only if Shape()==EPoly);
       
    55 	*/
       
    56 	virtual const CArrayFixFlat<TPoint>* PolyPoints() const = 0;
       
    57 
       
    58 	/**
       
    59 	* True if this area is focused AND selected for keypad focus
       
    60 	*/
       
    61 	virtual TBool IsSelected() const = 0;
       
    62 
       
    63 	};
       
    64 
       
    65 #endif