fontsandtextdevicefontscontainer.h

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

H
60
字号
#ifndef FONTSANDTEXTDEVICEFONTSCONTAINER_H
#define FONTSANDTEXTDEVICEFONTSCONTAINER_H

// INCLUDES
#include <coecntrl.h>	// CCoeControl
#include <eiksbobs.h>	// MEikScrollBarObserver
#include <eikscrlb.h>	// TEikScrollBarModel

// FORWARD DECLARATIONS

class CEikScrollBarFrame;

// CLASS DECLARATION

/**
 *
 * @class	CFontsAndTextDeviceFontsContainer FontsAndTextDeviceFontsContainer.h 
 * @brief	This is a container class for the Device Fonts view of the Fonts & Text
 * example application. Displays the available fonts on the system and prints their names
 *
 * Copyright (c) EMCC Software Ltd 2003
 * @version	1.0
 * 
 */
class CFontsAndTextDeviceFontsContainer : public CCoeControl, public MEikScrollBarObserver
	{
public:	// Construction and destruction
	static CFontsAndTextDeviceFontsContainer* NewL(MObjectProvider& aMop, const TRect& aRect);
	static CFontsAndTextDeviceFontsContainer* NewLC(MObjectProvider& aMop, const TRect& aRect);
	~CFontsAndTextDeviceFontsContainer();        

private:	// From MEikScrollBarObserver
	void HandleScrollEventL(CEikScrollBar* aScrollBar, TEikScrollEvent aEventType);				

private:	// From CCoeControl		
	TInt CountComponentControls() const;
	CCoeControl* ComponentControl(TInt aIndex) const;
	void Draw(const TRect& aRect) const;        
	TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType);

private:	// Construction
	CFontsAndTextDeviceFontsContainer();
	void ConstructL(MObjectProvider& aMop, const TRect& aRect);

private:	// Member data 
	MGraphicsDeviceMap* iDeviceMap;	// Not owned by this class
	TTypefaceSupport* iTypefaceSupport;

	// Scroll handling
	CEikScrollBarFrame* iSBFrame;
	TEikScrollBarModel iHorizModel;
	TEikScrollBarModel iVertModel;
	TInt iCurrentScrollNum;
	TInt iNumTypefaces;        
	};

#endif	// FONTSANDTEXTDEVICEFONTSCONTAINER_H

// End of File

⌨️ 快捷键说明

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