亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? eb_pfwgraphics.h

?? 這是法國Kaleido公司提供了一個手機mmi設計平臺
?? H
字號:
/***************************************************************************
                          EB_PFWGraphics.h  -  
                          -------------------
    begin                : Tue Nov 08 2005
    copyright            : (C) 2005 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
 * on this software package.
 *
 * $Id: EB_PFWGraphics.h,v 1.11 2007-04-16 08:39:26 franck.lefevre Exp $
 *
 */

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

- todo : add comments to some undocumented methods
- todo : check warning virtual void drawRectangle(int x,int y,int width,int height,int mode ,int i=0) 

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

- This is the GENTARGET's EB_PFWGraphics.

*/


#ifndef __EB_PFWGRAPHICS__
#define __EB_PFWGRAPHICS__

#include "EB_Graphics.h"
#define PIXFORMAT_DYNAMIC_FORMAT PIXFORMAT_RGB565


class PFWImage ;
class Font ;
class GContext ;


#define IMAGE_TYPE_SCREEN 1
#define IMAGE_TYPE_RAW 2 
#define IMAGE_TYPE_DAG 3


struct base_image_struct
{
	char sImageType;
	int sWidth;  	//the size of the current bitmap
	int sHeight;
	DEFINE_NEW(base_image_struct);
	DEFINE_DELETE(base_image_struct) ;
};


class KREBDLIBS_API PFWGraphics : public Graphics
	{
	private:
	public:
		base_image_struct* fImageStruct;
	protected: 
		// This method is used to implement drawExtract and drawMask
		void drawFrom(int xT, int yT, Graphics* from, int xF, int yF, int w, int h, boolean useMask, unsigned char tR, unsigned char tG, unsigned char tB) ;
	public:
		DEFINE_NEW(PFWGraphics);
		DEFINE_DELETE(PFWGraphics);

		/*
		 * Creates a new instance, without managing any content for the moment.
		 */
		PFWGraphics(GContext* newGContext);

		/*
		 * Creates a new instance, using a content that is already existing.
		 * Note that the content is not duplicated, a new reference is just 
		 * added on it.
		 */
		PFWGraphics(GContext* newGContext, int handle);

		/*
		 * Creates a new instance and sets as its content an Image whose
		 * src is provided.
		 */
		PFWGraphics(GContext* newGContext, unsigned char* src);

		/*
		 * Creates a new instance and initialize it with an empty surface.
		 * onScreen==TRUE when this graphics is using the screen as its surface.
		 */
		PFWGraphics(GContext* newGContext, int width, int height, int newOnScreen=0);

		/*
		 * This dtor is freeing all its resources. This may be dangerous if it
		 * as been created from existing ones.
		 */
		virtual ~PFWGraphics();

		/* Create the graphics context, and set all fields to Graphics'default values 
		 *
		 */
		virtual void init(GContext* newGContext, int newOnScreen);

		/*
		 * Returns a handle on the current Graphics. The semantics of this
		 * handle depends on the graphic toolkit actually used, but it is 
		 * usually a pointer on the graphic surface's structure.
		 */
		virtual int getHandle();
		/*
		 * Return a pointer on the surface's buffer itself. Note that it may be dangerous to use the returned value 
		 * without knowing its internal structure.
		 */
		virtual void* getSurfaceBuffer() ;


		/*
		 * This methd allows to create a new surface with the new specified size.
		 * If a previous surface was existing, it is destroyed.
		 */
		void createSurface(int newWidth, int newHeight);

		/*
		 * Returns a pointer on the current buffer.
		 */
		short* getBuffer();

		/* Clear the drawing surface
		 *
		 */
		virtual void clear();

		/* load an image an put it on the current surface of the Graphics
		 * 
		 */
		 
		virtual void getImage(unsigned char *data, int dataLen);
		virtual void getImage(unsigned char *szNewImageURL) ;


		/*
		 * Draws a source Graphics on the current one
		 */
		virtual void drawBitmap(int x, int y, Graphics* gSource) ;

		/*
		 * This method must be called when the pending modifications on the
		 * surface must be committed.
		 */
		virtual void update() ;

		/*
		 * Returns the width of the current surface
		 */
		 virtual int getWidth();

		/*
		 * Returns the height of the current surface
		 */
		 virtual int getHeight();
	
		/*
		 * A returns a duplicated version of the current graphics.
		 * The surface is supposed to be fully duplicated.
		 * There is no assigned font.
		 */
		virtual Graphics* duplicate() ;

		/*
		 * Return the RGB value of the dot situated at x/y.
		 * BEWARE: accessing to individual dots may be very inefficient, check
		 * that's really the best way to achieve your work prior to go this way.
		 * This function may also be inlined...
		 */
		virtual void getRGB(int x, int y,  unsigned char* r, unsigned char* g, unsigned char* b) ;
		virtual void getRGBA(int x, int y,  unsigned char* r, unsigned char* g, unsigned char* b, unsigned char* a) ;

		/*
		 * Sets the RGB value of the dot situated at x/y.
		 * BEWARE: accessing to individual dots may be very inefficient, check
		 * that's really the best way to achieve your work prior to go this way.
		 * This function may also be inlined...
		 */
		virtual void putRGB(int x, int y, unsigned char r, unsigned char g, unsigned char b);
		virtual void putRGBA(int x, int y, unsigned char r, unsigned char g, unsigned char b, unsigned char /*a*/);
		void putRGBA(int pixelIndex, unsigned char r, unsigned char g, unsigned char b, unsigned char a);

		/*
		 * Draws an extract of a source Graphics on the current one.
		 * The upper-left corner's coordinates of the extract to draw is(xF, yF).
		 * Its size is (w, h) and the target's upper-left corner's coordinates is (xT, yT).
		 */
		virtual void drawExtract(int xT, int yT, Graphics* gSource, int xF, int yF, int w, int h) ;
		
		/*
		 * Set the region of the current surface that may be affected by the 
		 * drawings to come.
		 */
		virtual void setDrawRegion(int left,int top,int width,int height) ;

		/*
		 * Set a region on the current surface that MUST be affected by the 
		 * drawings to come.
		 */
		virtual void setReservedRegion(int left,int top,int width,int height);

		/*
		 * Draws dots on the current Graphics, using the color (tR, tG, tB)
		 * The concerned dots are defined by a mask that is the non transparent dots of gSource
		 * The mask size is (w, h) and the target's upper-left corner's coordinates is (xT, yT).
		 */
		virtual void drawMask(int xT, int yT, Graphics* gSource, int xF, int yF, int w, int h, unsigned char tR, unsigned char tG, unsigned char tB);

		/*
		 * Sets a global alpha value (0=transparent, 254=opaque) to the 
		 * current surface.
		 */
		virtual void setAlpha(unsigned char newAlpha);

		/*
		 *
		 */
		virtual void setTransparent( unsigned char tR,unsigned char tG,unsigned char tB);
		/*
		 *
		 */
		virtual void getTransparent(unsigned char* tR,unsigned char* tG,unsigned char* tB) ;

		/*
		 * Sets newFont as the current font.
		 * newFont is the name of the requested font. This method is supposed
		 * to manage a cache in order to minimize the impact of frequent
		 * font changes.
		 */			  				  
		virtual void setFont(unsigned char* newFont) ;				  		
		virtual void setFont(int style, int height, unsigned char* newFont) ;
				  				  

		/*
		 * Returns the width of a string when it's displayed using the current
		 * font.
		 */
		virtual int getWidth(unsigned char* s); 

		/*
		 * Returns the height of a string when it's displayed using the current
		 * font.
		 */
		virtual int getHeight(unsigned char* s) ;



		/*
		 * Render the string s on the current surface, using the current mode.
		 * x/y is the upper-left corner of the box where the string must be
		 * rendered into.
		 * In some implementation, the mode may be included in the bitmap
		 * font itself.
		 */
		virtual void drawString(unsigned char* s,int x,int y,int mode=0);
		virtual void drawString(unsigned char* s,int x,int y,  int mode, int maxWidth);
		
		/*
		 * draw a line.
		 */
		virtual void drawLine(int x1,int y1,int x2,int y2,int mode);

		/*
		 * Draws a rectangle on the current surface
		 */
		virtual void drawRectangle(int x,int y,int width,int height,int mode,int i=0);

		/*
		 * Creates a new graphics containing a reduced version of the current
		 * content.
		 * Note: a non-toolkit-dependent version of this version is provided 
		 * here.
		 */
//		virtual Graphics* reduce(int dstWidth, int dstHeight, Graphics* toImg=NULL) ;

		/*
		 * Return the size of the buffers contained in the objet (offscreen buffer, palettes,...)
		 * This method is used by the cache managers to optimize the caching processes.
		 */
		virtual int getBuffersSize(void);

		virtual Graphics* reduce(int dstWidth, int dstHeight, Graphics* toImg);
		virtual Graphics*  enlarge(int dstWidth, int dstHeight, Graphics* toImg) ;

		private :
		virtual Graphics* reduce16(int dstWidth, int dstHeight, Graphics* toImg) ;
		virtual Graphics*  enlarge16(int dstWidth, int dstHeight, Graphics* toImg) ;


	} ;


#endif // ndef __EB_PFWGRAPHICS__

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色婷婷综合五月| 亚洲制服丝袜一区| 亚洲乱码国产乱码精品精的特点 | 久久这里只有精品6| 中文字幕综合网| 精品一区二区影视| 欧美日韩免费观看一区二区三区| 欧美变态tickling挠脚心| 亚洲一区二区三区激情| 国产成人三级在线观看| 日韩一卡二卡三卡国产欧美| 亚洲精品网站在线观看| 国产91清纯白嫩初高中在线观看 | 久久毛片高清国产| 午夜影视日本亚洲欧洲精品| 99在线热播精品免费| 精品免费国产一区二区三区四区| 亚洲成人资源网| 色综合久久中文字幕| 国产色综合一区| 精品一区二区三区在线观看| 欧美一级在线免费| 午夜成人免费电影| 欧美日韩午夜精品| 亚洲成人av一区二区| 在线看不卡av| 一区二区三区在线观看网站| 91麻豆国产在线观看| 国产精品国模大尺度视频| 国产91综合网| 国产欧美日韩精品一区| 国产成人午夜99999| 国产欧美日韩亚州综合| 国产ts人妖一区二区| 久久久综合精品| 国产jizzjizz一区二区| 欧美激情一区二区三区全黄| 国产精品123| 国产精品久久久久一区二区三区 | 中日韩av电影| youjizz久久| 亚洲免费观看高清完整| 欧美在线一二三| 亚洲高清久久久| 日韩欧美国产一区二区三区| 精品午夜久久福利影院| 久久亚洲影视婷婷| 国产成人亚洲精品狼色在线| 亚洲国产精品二十页| 色偷偷成人一区二区三区91| 亚洲一区二区三区视频在线播放| 欧美视频你懂的| 九九视频精品免费| 国产精品久久久久影院亚瑟| 在线观看日韩精品| 久久99久久99| 亚洲视频一二三| 欧美日韩在线播| 国产一区二区精品久久91| 国产精品久久国产精麻豆99网站| 欧美专区亚洲专区| 国产一区二区三区在线观看免费 | 偷拍日韩校园综合在线| 久久综合给合久久狠狠狠97色69| 波多野结衣一区二区三区 | 欧美午夜电影网| 久久99久久久久久久久久久| 国产精品网站在线观看| 欧美亚洲一区二区在线| 国产真实乱对白精彩久久| 一区二区三区在线观看视频| 日韩午夜激情免费电影| 91香蕉国产在线观看软件| 日韩国产在线一| 国产精品国模大尺度视频| 666欧美在线视频| 91最新地址在线播放| 九色|91porny| 天天综合网天天综合色| 国产精品二三区| 精品国产亚洲在线| 欧美视频中文字幕| 成人精品小蝌蚪| 久久av老司机精品网站导航| 一个色综合av| 国产精品私人影院| 国产精品亲子乱子伦xxxx裸| 91精品国产综合久久精品app| 不卡av电影在线播放| 精品综合免费视频观看| 亚洲国产人成综合网站| 国产精品成人在线观看| 久久综合色综合88| 欧美另类videos死尸| 91欧美一区二区| 欧美日韩不卡一区二区| 91视频免费播放| 从欧美一区二区三区| 国产曰批免费观看久久久| 日韩高清不卡在线| 亚洲一区在线观看免费| 亚洲色图欧洲色图婷婷| 国产精品久久久久久久浪潮网站 | 中文字幕va一区二区三区| 欧美精品一区二区三区一线天视频| 欧美三级视频在线| 色猫猫国产区一区二在线视频| 成人白浆超碰人人人人| 国产99久久久国产精品潘金 | 久久久久久久一区| 精品国产伦一区二区三区免费| 欧美精品久久天天躁| 欧美日韩国产综合草草| 欧美三区在线观看| 欧美欧美欧美欧美| 欧美日韩国产一区| 欧美高清视频一二三区| 91精品国产麻豆国产自产在线| 欧美日韩久久一区二区| 在线播放中文字幕一区| 欧美一级理论片| 日韩免费一区二区| 久久久亚洲综合| 国产女人18毛片水真多成人如厕 | 日韩欧美中文一区| 精品国产一区a| 欧美国产乱子伦| 亚洲视频在线一区二区| 亚洲午夜视频在线观看| 天涯成人国产亚洲精品一区av| 日本女优在线视频一区二区| 麻豆国产91在线播放| 国产精品1区二区.| 96av麻豆蜜桃一区二区| 欧美午夜精品一区| 欧美电影精品一区二区| 国产三级久久久| 亚洲精品美腿丝袜| 日本成人在线看| 国产成人鲁色资源国产91色综| 成人av影视在线观看| 欧美日韩中文字幕精品| 精品美女一区二区| 中文字幕一区二区三区蜜月| 亚洲国产视频在线| 精品影院一区二区久久久| www.亚洲色图| 日韩欧美一级二级三级| 国产精品久久久久四虎| 日韩成人午夜电影| 成人三级在线视频| 在线播放国产精品二区一二区四区| 精品理论电影在线| 亚洲精品国产成人久久av盗摄| 蜜臀91精品一区二区三区| 国产白丝网站精品污在线入口| 91成人网在线| 国产欧美一二三区| 日韩在线观看一区二区| 成人天堂资源www在线| 欧美日韩高清影院| 中文字幕欧美一| 国产一区高清在线| 欧美日韩精品一二三区| 国产精品乱码久久久久久| 日本亚洲天堂网| 91视频国产观看| 久久伊人蜜桃av一区二区| 亚洲影院免费观看| 成人综合婷婷国产精品久久 | 日韩精品一卡二卡三卡四卡无卡| 懂色av噜噜一区二区三区av| 欧美一区二区在线播放| 亚洲柠檬福利资源导航| 国产a视频精品免费观看| 日韩一区二区免费在线电影| 一区二区三区在线免费视频| 国产成人免费xxxxxxxx| 精品国产欧美一区二区| 亚洲va欧美va人人爽| 91美女片黄在线观看| 国产欧美日韩另类视频免费观看 | 亚洲超碰97人人做人人爱| av一区二区三区| 国产嫩草影院久久久久| 国产乱理伦片在线观看夜一区 | 午夜精品福利一区二区三区av| 91美女视频网站| 综合色天天鬼久久鬼色| 成人高清免费在线播放| 国产区在线观看成人精品| 久久成人综合网| 欧美xxxxx裸体时装秀| 日本三级亚洲精品| 欧美女孩性生活视频| 天堂va蜜桃一区二区三区漫画版 | 久久夜色精品国产欧美乱极品| 久久99热99| 久久精品亚洲精品国产欧美| 国产一区不卡视频|