fep/aknfep/UiPlugins/AknFepUiInterface/AvkonImpl/inc/aknfepuictrleepcontrol.inl
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 06 Jul 2010 14:38:41 +0300
changeset 31 f1bdd6b078d1
parent 0 eb1f2e154e89
permissions -rw-r--r--
Revision: 201025 Kit: 2010127

/*
* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). 
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0""
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:           
 *      Provides the CAknFepUICtrlPinyinEEP definition 
 *
*/












// ---------------------------------------------------------
// C++ constructor.
// ---------------------------------------------------------
//
inline CAknFepUICtrlEEPControl::TSegment::TSegment( TInt aBeg, TInt aEnd,
    TDspStyle aStyle )
    {
    iBegin = aBeg;
    iEnd = aEnd;
    iStyle = aStyle;
    }

// ---------------------------------------------------------
// Compare the Index.
// ---------------------------------------------------------
//
inline TInt CAknFepUICtrlEEPControl::TSegment::CompareByBegIndex(
    const TSegment& s1, const TSegment& s2 )
    {
    if ( s1.iBegin == s2.iBegin )
        return 0;
    else
        return s1.iBegin > s2.iBegin ? 1 : -1;
    }