lafagnosticuifoundation/cone/inc/COEFONT.H
changeset 0 2f259fa3e83a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/lafagnosticuifoundation/cone/inc/COEFONT.H	Tue Feb 02 01:00:49 2010 +0200
@@ -0,0 +1,83 @@
+// Copyright (c) 1997-2009 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:
+//
+
+#ifndef __COEFONT_H__
+#define __COEFONT_H__
+
+#include <e32def.h>
+#include <gdi.h>
+
+/** A class to simplify font usage
+
+@publishedAll
+@released
+*/
+class TCoeFont 
+	{ 
+public: 
+	enum TFlags 
+		{ 
+		ENoFlags = 0x00, 
+		ENonZooming = 0x01 
+		}; 
+
+	enum TLogicalSize 
+		{ 
+		EExtraSmall = 0, 
+		ESmall, 
+		EMedium, 
+		ELarge, 
+		EExtraLarge,
+		EUndefinedSize = -1
+		};         
+
+	enum TStyle 
+		{ 
+		EPlain = 0x00, 
+		EItalic = 0x01, 
+		EBold = 0x02, 
+		ESuper = 0x04, 
+		ESub = 0x08 
+		}; 
+
+public:
+	IMPORT_C TCoeFont(TLogicalSize aSize, TInt aStyle, TInt aFlags = ENoFlags); 
+	IMPORT_C TCoeFont(TInt aHeightInPixels, TInt aStyle, TInt aFlags = ENoFlags); 
+	IMPORT_C TCoeFont(const TCoeFont& aFont);
+	IMPORT_C TCoeFont(); 
+	IMPORT_C static TCoeFont NormalFont(TInt aFlags = ENoFlags);	// Medium, Plain 
+	IMPORT_C static TCoeFont LegendFont(TInt aFlags = ENoFlags);	// Medium, Bold 
+	IMPORT_C static TCoeFont AnnotationFont(TInt aFlags = ENoFlags);// Small, Plain 
+	IMPORT_C static TCoeFont TitleFont(TInt aFlags = ENoFlags);		// Large, Bold 
+public: // properties         
+	IMPORT_C TLogicalSize LogicalSize() const; 
+	IMPORT_C TInt HeightInPixels() const; 
+	IMPORT_C TFontStyle Style() const; 
+	IMPORT_C TBool IsNonZooming() const; 
+public:         
+	static TInt Compare(const TCoeFont& aFirst, const TCoeFont& aSecond); 
+private: 
+	TLogicalSize iLogicalSize; 
+	TInt8 iHeightInPixels; 
+	TInt8 iStyle; 
+	TInt8 iFlags; 
+	TTypeface iTypeface;	// Member unused at the moment but included for possible future extension
+private:         
+	TInt iSpare; 
+	}; 
+
+#endif	// __COEFONT_H__
+
+