fontsandtextmetricscontainer.h

来自「最新官方例子,图形,描述副,基本控件,通讯协议,等等,」· C头文件 代码 · 共 35 行

H
35
字号
#ifndef FONTSANDTEXTMETRICSCONTAINER_H
#define FONTSANDTEXTMETRICSCONTAINER_H

// INCLUDES
#include <coecntrl.h>	// CCoeControl

// CLASS DECLARATION

/**
 * @class	CFontsAndTextMetricsContainer FontsAndTextMetricsContainer.h 
 * @brief	This is a container class for the Metrics view of the Fonts & Text example 
 * application. This class prints a string of text centered on the device screen by employing
 * some of the font metrics attributes to align the text properly.
 *
 * Copyright (c) EMCC Software Ltd 2003
 * @version	1.0
 */
class CFontsAndTextMetricsContainer : public CCoeControl
	{
public:	// Construction and destruction
	static CFontsAndTextMetricsContainer* NewL(const TRect& aRect);
	static CFontsAndTextMetricsContainer* NewLC(const TRect& aRect);
	~CFontsAndTextMetricsContainer();

private: // Functions from CCoeControl        
	void Draw(const TRect& aRect) const;
	
private:	// Construction	
	void ConstructL(const TRect& aRect); 
	};

#endif	// FONTSANDTEXTMETRICSCONTAINER_H

// End of File

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?