uiaccelerator_plat/alf_core_toolkit_api/inc/uiacceltk/huifontspecification.h
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:   Font specification is a platform-independent way of describing
       
    15 *                font properties supported by Hitchcock UI Toolkit.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef HUIFONTSPECIFICATION_H
       
    22 #define HUIFONTSPECIFICATION_H
       
    23 
       
    24 #include <e32std.h>
       
    25 #include <gdi.h>
       
    26 
       
    27 /**
       
    28  * THuiFontSpecification allows user to specify required font parameters for
       
    29  * a created font or the Hitchcock UI Toolkit to describe the parameters of
       
    30  * any given supported system font. This specification class can be used in
       
    31  * conjunction with THuiFontManager to create platform-supported fonts and query them.
       
    32  * @see THuiFontManager
       
    33  */
       
    34 NONSHARABLE_CLASS(THuiFontSpecification)
       
    35 {
       
    36 public:
       
    37 	
       
    38 	/**
       
    39 	 * Default constructor of font specification. Will assign default values to
       
    40 	 * the specification parameters.
       
    41 	 */
       
    42 	THuiFontSpecification();
       
    43 	
       
    44 	/**
       
    45 	 * Default destructor.
       
    46 	 */
       
    47 	virtual ~THuiFontSpecification();
       
    48 	
       
    49     /** @beginAPI */
       
    50 	
       
    51 	/**
       
    52 	 * Returns the typeface family name this font specification represents. E.g. "Helvetica".
       
    53 	 */
       
    54 	const TDesC& TypefaceFamily() const;
       
    55 	
       
    56 	/**
       
    57 	 * Sets the typeface family name
       
    58 	 * 
       
    59 	 * @param aName The typeface family name used by the system or required by the user.
       
    60 	 */
       
    61 	void SetTypefaceFamily(const TDesC& aName);
       
    62 	
       
    63     /** @endAPI */
       
    64 	
       
    65 private:
       
    66 
       
    67 	/** Font typeface family */
       
    68 	TBuf<KMaxTypefaceNameLength> iFontFamily;
       
    69 
       
    70 };
       
    71 
       
    72 #endif // HUIFONTSPECIFICATION_H