⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 eb_painter.h

📁 这是法国Kaleido公司提供了一个手机mmi设计平台
💻 H
字号:
/***************************************************************************
EB_Painter.h  -
-------------------
begin                : Tue Mar 3 2004
copyright            : (C) 2004 by DigitalAirways
email                : info@digitalairways.com
***************************************************************************/

/*
* Copyright (c) 2000-2004 DigitalAirways, sarl. All Rights Reserved.
*
* This software is the confidential and proprietary information of
* DigitalAirways, sarl. ("Confidential Information").  You shall not
* disclose such Confidential Information and shall use it only in
* accordance with the terms of the license agreement you entered into
* with DigitalAirways.
* A copy of this license is included in the licence.txt file included
* in this software package.
*/

/*
**************************************************************
* TODO
**************************************************************

-



**************************************************************
* HISTORY
**************************************************************

-
*/

#ifndef __EB_PAINTER__
#define __EB_PAINTER__

#include "EB_Defs.h"
#include "KR_Resources.h"
#include "EB_GContext.h"
#include "KR_Plugin.h"


class KREBDLIBS_API Painter : public Plugin {
private:
	GContext* gContext ;
public:
	DEFINE_NEW(Painter);
	DEFINE_DELETE(Painter);

#ifdef DEV_CONSISTENCY
	virtual char *getInfo(int itemType, int itemIdx)
	{
		return defaultGetInfo(itemType, itemIdx);
	}
#endif // def DEV_CONSISTENCY

	INSTANCIATOR(Painter) ;

	static Painter* makeInstance(GContext* newGContext, char* theclass, char* param) ;

	Painter(GContext* newGContext) : Plugin(newGContext)
	{
		gContext = newGContext ;
	}

	virtual ~Painter()
	{ }

	//In the C version, the caller does not transfer the ownership of the string
	virtual void init(char* /*param*/)
	{ }

	virtual GContext* getContext() { return gContext; }

	/**
	* paint the screen
	* @param browser the browser service to paint
	* @param actionFrom BACK or ACCEPT
	*/
	virtual int paint(int /*actionFrom*/)
	{ return 0;}

	/*
	* Request the runtime to repaint me at least in ms ms.
	* If a repaint is already scheduled in a shorter delay, it is kept
	* and this one is canceled.
	* If fullScreen==true, all the screen will ne repainted.
	* Otherwise, only this JitMapper will be repainted.
	*/
	void repaintBefore(KALEIDO_TIME_TYPE ms, boolean fullScreen=true);

} ;

typedef Painter* pPainter ;
typedef pPainter (*painterInstanciator)(GContext* newGContext) ;

#endif // ndef __EB_PAINTER__

⌨️ 快捷键说明

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