uiacceltk/hitchcock/coretoolkit/src/huifontspecification.cpp
changeset 0 15bf7259bb7c
equal deleted inserted replaced
-1:000000000000 0:15bf7259bb7c
       
     1 /*
       
     2 * Copyright (c) 2007 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:   Implementation of THuiFontSpecification.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #include <uiacceltk/huifontspecification.h>
       
    21 
       
    22 // ======== MEMBER FUNCTIONS ========
       
    23 
       
    24 // ---------------------------------------------------------------------------
       
    25 // Creates the THuiFontSpecification. Sets the specification parameters to default values.
       
    26 // ---------------------------------------------------------------------------
       
    27 //
       
    28 THuiFontSpecification::THuiFontSpecification()
       
    29 	{
       
    30 	}
       
    31 
       
    32 // ---------------------------------------------------------------------------
       
    33 // Destroys the THuiFontSpecification. Makes sure all allocated resources are freed.
       
    34 // ---------------------------------------------------------------------------
       
    35 //
       
    36 THuiFontSpecification::~THuiFontSpecification()
       
    37 	{
       
    38 	}
       
    39 
       
    40 // ---------------------------------------------------------------------------
       
    41 // Returns the typeface family description
       
    42 // ---------------------------------------------------------------------------
       
    43 //
       
    44 const TDesC& THuiFontSpecification::TypefaceFamily() const
       
    45 	{
       
    46     return iFontFamily;
       
    47 	}
       
    48 
       
    49 // ---------------------------------------------------------------------------
       
    50 // Sets the typeface family
       
    51 // ---------------------------------------------------------------------------
       
    52 //
       
    53 void THuiFontSpecification::SetTypefaceFamily(const TDesC& aName)
       
    54 	{
       
    55 	iFontFamily.Copy(aName);
       
    56 	}