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

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

?? tracker.java

?? 源碼為Eclipse開源開發平臺桌面開發工具SWT的源代碼,
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
	if (stippled) {		bandWidth = 3;		byte [] bits = {-86, 0, 85, 0, -86, 0, 85, 0, -86, 0, 85, 0, -86, 0, 85, 0};		hBitmap = OS.CreateBitmap (8, 8, 1, 1, bits);		hBrush = OS.CreatePatternBrush (hBitmap);		oldBrush = OS.SelectObject (hDC, hBrush);	}	for (int i=0; i<rects.length; i++) {		Rectangle rect = rects [i];		OS.PatBlt (hDC, rect.x, rect.y, rect.width, bandWidth, OS.PATINVERT);		OS.PatBlt (hDC, rect.x, rect.y + bandWidth, bandWidth, rect.height - (bandWidth * 2), OS.PATINVERT);		OS.PatBlt (hDC, rect.x + rect.width - bandWidth, rect.y + bandWidth, bandWidth, rect.height - (bandWidth * 2), OS.PATINVERT);		OS.PatBlt (hDC, rect.x, rect.y + rect.height - bandWidth, rect.width, bandWidth, OS.PATINVERT);	}	if (stippled) {		OS.SelectObject (hDC, oldBrush);		OS.DeleteObject (hBrush);		OS.DeleteObject (hBitmap);	}	OS.ReleaseDC (hwndTrack, hDC);}/** * Returns the bounds that are being drawn, expressed relative to the parent * widget.  If the parent is a <code>Display</code> then these are screen * coordinates. * * @return the bounds of the Rectangles being drawn *  * @exception SWTException <ul> *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> */public Rectangle [] getRectangles () {	checkWidget();	int length = 0;	if (rectangles != null) length = rectangles.length;	Rectangle [] result = new Rectangle [length];	for (int i = 0; i < length; i++) {		Rectangle current = rectangles [i];		result [i] = new Rectangle (current.x, current.y, current.width, current.height);	}	return result;}/** * Returns <code>true</code> if the rectangles are drawn with a stippled line, <code>false</code> otherwise. * * @return the stippled effect of the rectangles * * @exception SWTException <ul> *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> */public boolean getStippled () {	checkWidget ();	return stippled;}void moveRectangles (int xChange, int yChange) {	if (xChange < 0 && ((style & SWT.LEFT) == 0)) xChange = 0;	if (xChange > 0 && ((style & SWT.RIGHT) == 0)) xChange = 0;	if (yChange < 0 && ((style & SWT.UP) == 0)) yChange = 0;	if (yChange > 0 && ((style & SWT.DOWN) == 0)) yChange = 0;	if (xChange == 0 && yChange == 0) return;	bounds.x += xChange; bounds.y += yChange;	for (int i = 0; i < rectangles.length; i++) {		rectangles [i].x += xChange;		rectangles [i].y += yChange;	}}/** * Displays the Tracker rectangles for manipulation by the user.  Returns when * the user has either finished manipulating the rectangles or has cancelled the * Tracker. *  * @return <code>true</code> if the user did not cancel the Tracker, <code>false</code> otherwise *  * @exception SWTException <ul> *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> */public boolean open () {	checkWidget ();	if (rectangles == null) return false;	boolean cancelled = false;	tracking = true;	Event event = new Event ();	MSG msg = new MSG ();	boolean isMirrored = parent != null && (parent.style & SWT.MIRRORED) != 0;	/*	* If exactly one of UP/DOWN is specified as a style then set the cursor	* orientation accordingly (the same is done for LEFT/RIGHT styles below).	*/	int vStyle = style & (SWT.UP | SWT.DOWN);	if (vStyle == SWT.UP || vStyle == SWT.DOWN) {		cursorOrientation |= vStyle;	}	int hStyle = style & (SWT.LEFT | SWT.RIGHT);	if (hStyle == SWT.LEFT || hStyle == SWT.RIGHT) {		cursorOrientation |= hStyle;	}	/*	* If this tracker is being created without a mouse drag then	* we need to create a transparent window that fills the screen	* in order to get all mouse/keyboard events that occur	* outside of our visible windows (ie.- over the desktop).	*/	int hwndTransparent = 0;	Callback newProc = null;	boolean mouseDown = OS.GetKeyState(OS.VK_LBUTTON) < 0;	if (!mouseDown) {		int width = OS.GetSystemMetrics (OS.SM_CXSCREEN);		int height = OS.GetSystemMetrics (OS.SM_CYSCREEN);		hwndTransparent = OS.CreateWindowEx (			OS.WS_EX_TRANSPARENT,			display.windowClass,			null,			OS.WS_POPUP | OS.WS_VISIBLE,			0, 0,			width, height,			0,			0,			OS.GetModuleHandle (null),			null);		final int oldProc = OS.GetWindowLong (hwndTransparent, OS.GWL_WNDPROC);		Object windowProc = new Object () {			public int windowProc (int hwnd, int msg, int wParam, int lParam) {				switch (msg) {					/*					* We typically do not want to answer that the transparent window is					* transparent to hits since doing so negates the effect of having it					* to grab events.  However, clients of the tracker should not be aware					* of this transparent window.  Therefore if there is a hit query					* performed as a result of client code then answer that the transparent					* window is transparent to hits so that its existence will not impact					* the client.					*/					case OS.WM_NCHITTEST:						if (inEvent) return OS.HTTRANSPARENT;						break;					case OS.WM_SETCURSOR:						if (clientCursor != 0) {							OS.SetCursor (clientCursor);							return 1;						}						if (resizeCursor != 0) {							OS.SetCursor (resizeCursor);							return 1;						}				}				return OS.CallWindowProc (oldProc, hwnd, msg, wParam, lParam);			}		};		newProc = new Callback (windowProc, "windowProc", 4); //$NON-NLS-1$		OS.SetWindowLong (hwndTransparent, OS.GWL_WNDPROC, newProc.getAddress ());	}	drawRectangles (rectangles, stippled);	Point cursorPos;	if (mouseDown) {		POINT pt = new POINT ();		OS.GetCursorPos (pt);		cursorPos = new Point (pt.x, pt.y);	} else {		if ((style & SWT.RESIZE) != 0) {			cursorPos = adjustResizeCursor ();		} else {			cursorPos = adjustMoveCursor ();		}	}		int oldX = cursorPos.x, oldY = cursorPos.y;	/*	* Tracker behaves like a Dialog with its own OS event loop.	*/	while (tracking && !cancelled) {		if (parent != null && parent.isDisposed ()) break;		OS.GetMessage (msg, 0, 0, 0);		int message = msg.message;		switch (message) {			case OS.WM_LBUTTONUP:			case OS.WM_MOUSEMOVE:				int newPos = OS.GetMessagePos ();				int newX = (short) (newPos & 0xFFFF);				int newY = (short) (newPos >> 16);					if (newX != oldX || newY != oldY) {					Rectangle [] oldRectangles = rectangles;					boolean oldStippled = stippled;					Rectangle [] rectsToErase = new Rectangle [rectangles.length];					for (int i = 0; i < rectangles.length; i++) {						Rectangle current = rectangles [i];						rectsToErase [i] = new Rectangle (current.x, current.y, current.width, current.height);					}					event.x = newX;					event.y = newY;					if ((style & SWT.RESIZE) != 0) {						if (isMirrored) {						   resizeRectangles (oldX - newX, newY - oldY);						} else {						   resizeRectangles (newX - oldX, newY - oldY);						}						inEvent = true;						sendEvent (SWT.Resize, event);						inEvent = false;						/*						* It is possible (but unlikely), that application						* code could have disposed the widget in the resize						* event.  If this happens, return false to indicate						* that the tracking has failed.						*/						if (isDisposed ()) {							cancelled = true;							break;						}						boolean draw = false;						/*						 * It is possible that application code could have						 * changed the rectangles in the resize event.  If this						 * happens then only redraw the tracker if the rectangle						 * values have changed.						 */						if (rectangles != oldRectangles) {							int length = rectangles.length;							if (length != rectsToErase.length) {								draw = true;							} else {								for (int i = 0; i < length; i++) {									if (!rectangles [i].equals (rectsToErase [i])) {										draw = true;										break;									}								}							}						}						else {							draw = true;						}						if (draw) {							drawRectangles (rectsToErase, oldStippled);							drawRectangles (rectangles, stippled);						}						cursorPos = adjustResizeCursor ();						newX = cursorPos.x;  newY = cursorPos.y;					} else {						if (isMirrored) {							moveRectangles (oldX - newX, newY - oldY); 						} else { 							moveRectangles (newX - oldX, newY - oldY);						}						inEvent = true;						sendEvent (SWT.Move, event);						inEvent = false;						/*						* It is possible (but unlikely), that application						* code could have disposed the widget in the move						* event.  If this happens, return false to indicate						* that the tracking has failed.						*/						if (isDisposed ()) {							cancelled = true;							break;						}						boolean draw = false;						/*						 * It is possible that application code could have						 * changed the rectangles in the move event.  If this						 * happens then only redraw the tracker if the rectangle						 * values have changed.						 */						if (rectangles != oldRectangles) {							int length = rectangles.length;							if (length != rectsToErase.length) {								draw = true;							} else {								for (int i = 0; i < length; i++) {									if (!rectangles [i].equals (rectsToErase [i])) {										draw = true;										break;									}								}							}						} else {							draw = true;						}						if (draw) {							drawRectangles (rectsToErase, oldStippled);							drawRectangles (rectangles, stippled);						}					}					oldX = newX;  oldY = newY;				}				tracking = msg.message != OS.WM_LBUTTONUP;				break;			case OS.WM_SYSKEYDOWN:				cancelled = true;							tracking = false;				break;			case OS.WM_KEYDOWN:				int stepSize = OS.GetKeyState (OS.VK_CONTROL) < 0 ? STEPSIZE_SMALL : STEPSIZE_LARGE;				int xChange = 0, yChange = 0;				switch (msg.wParam) {					case OS.VK_ESCAPE:						cancelled = true;						tracking = false;						break;					case OS.VK_RETURN:						tracking = false;						break;					case OS.VK_LEFT:						xChange = isMirrored ? stepSize : -stepSize;						break;					case OS.VK_RIGHT:						xChange = isMirrored ? -stepSize : stepSize;						break;					case OS.VK_UP:						yChange = -stepSize;						break;					case OS.VK_DOWN:						yChange = stepSize;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色国产综合视频| 久久成人免费网| 26uuu色噜噜精品一区二区| 色哟哟国产精品免费观看| 成人精品小蝌蚪| 国产精品主播直播| 久久av老司机精品网站导航| 日韩国产欧美三级| 蜜臀av性久久久久蜜臀aⅴ流畅| 一区二区三区四区五区视频在线观看 | 成人精品视频一区二区三区| 国产乱子伦视频一区二区三区| 免费在线观看不卡| 国产在线国偷精品免费看| 精品一区中文字幕| 粉嫩av一区二区三区| 国产福利一区二区| 99re这里只有精品首页| 欧美午夜精品免费| 精品日韩一区二区| 中文字幕av资源一区| 一区二区日韩av| 精品一区二区三区免费播放| 国产黄人亚洲片| 在线视频你懂得一区二区三区| 欧美日韩国产在线播放网站| 日韩欧美国产三级| 精品欧美乱码久久久久久1区2区| 国产精品青草久久| 亚洲成人7777| 福利电影一区二区三区| 精品视频在线免费看| 久久久99精品久久| 亚洲综合精品自拍| 蜜臀a∨国产成人精品| 成人小视频免费观看| 欧美体内she精高潮| 精品欧美久久久| 亚洲综合久久久久| 久久成人综合网| 91亚洲精华国产精华精华液| 欧美日韩电影在线播放| 欧美激情一区二区三区在线| 亚洲成人午夜影院| av资源网一区| 日韩免费高清电影| 亚洲午夜日本在线观看| 成人黄色电影在线| 欧美xxxx老人做受| 亚洲国产婷婷综合在线精品| 成人中文字幕电影| 欧美videos中文字幕| 亚洲成a天堂v人片| 91美女蜜桃在线| 国产亚洲一本大道中文在线| 午夜激情久久久| 色悠悠久久综合| 国产精品久久久久影视| 久久丁香综合五月国产三级网站 | 亚洲男同性恋视频| 丁香亚洲综合激情啪啪综合| 日韩一区二区在线观看| 亚洲高清三级视频| 色悠久久久久综合欧美99| 欧美韩国日本一区| 国产美女av一区二区三区| 日韩美一区二区三区| 午夜欧美大尺度福利影院在线看| 一本大道久久a久久精品综合| 中文字幕乱码日本亚洲一区二区| 国产一区二区三区香蕉| 亚洲精品一区二区三区四区高清 | 91精品国产色综合久久不卡蜜臀| 一区二区三区在线观看视频| 色综合久久66| 伊人婷婷欧美激情| 欧美午夜一区二区三区| 午夜亚洲福利老司机| 欧美精品久久99久久在免费线| 亚洲成人av免费| 国产精品一区二区免费不卡 | 亚洲一级二级在线| 99re视频精品| 亚洲素人一区二区| 国产高清不卡一区二区| 欧美精彩视频一区二区三区| gogogo免费视频观看亚洲一| 亚洲欧洲成人自拍| 欧美少妇一区二区| 日韩成人一级片| 精品电影一区二区三区| 国产成人无遮挡在线视频| 国产视频一区二区在线观看| eeuss鲁片一区二区三区在线观看| 亚洲欧洲av另类| 欧美日韩一级片在线观看| 日韩高清在线不卡| 日韩免费在线观看| 国产91对白在线观看九色| 欧美va亚洲va香蕉在线| 九九**精品视频免费播放| 久久久精品一品道一区| 97aⅴ精品视频一二三区| 亚洲综合一区在线| 91精品国产高清一区二区三区蜜臀| 日本网站在线观看一区二区三区| 精品国产精品网麻豆系列| 成人91在线观看| 亚洲成人免费影院| 国产丝袜欧美中文另类| 一本色道久久综合狠狠躁的推荐 | 亚洲视频网在线直播| 欧美日韩在线直播| 国产成人免费视频网站| 亚洲国产视频直播| 精品久久久久久最新网址| 91网站最新地址| 久久国产三级精品| 亚洲精品午夜久久久| 欧美精品一区二| 欧美日本精品一区二区三区| 国产99久久久国产精品免费看| 亚洲成av人片观看| 中文无字幕一区二区三区| 91精品国产综合久久精品| 91免费版在线| 国产成人精品网址| 免费高清在线一区| 亚洲午夜一二三区视频| 国产午夜精品一区二区三区四区| 欧美撒尿777hd撒尿| 成人精品高清在线| 国产在线一区观看| 全国精品久久少妇| 五月婷婷久久综合| 亚洲一区二区三区小说| 日韩毛片一二三区| 国产精品久久三区| 国产欧美日韩视频在线观看| 日韩一区二区三区电影| 欧美麻豆精品久久久久久| 色狠狠一区二区| 92精品国产成人观看免费| 成人一二三区视频| 国产黄色91视频| 国产一区二区电影| 激情伊人五月天久久综合| 日本免费新一区视频| 日本不卡123| 免费欧美日韩国产三级电影| 日韩高清一级片| 天堂va蜜桃一区二区三区漫画版| 亚洲国产一区二区视频| 亚洲大片精品永久免费| 亚洲一区二区三区免费视频| 亚洲精品v日韩精品| 亚洲精品久久久蜜桃| 亚洲午夜久久久久| 日韩avvvv在线播放| 免费日韩伦理电影| 国产在线一区二区综合免费视频| 国产在线国偷精品免费看| 韩国v欧美v日本v亚洲v| 国产成人午夜精品5599| 9i在线看片成人免费| www.色综合.com| 99re成人在线| 欧美熟乱第一页| 欧美视频在线观看一区二区| 欧美日韩精品欧美日韩精品一综合| 欧美日韩视频不卡| 欧美一级淫片007| 国产日本欧洲亚洲| 亚洲免费视频中文字幕| 亚洲欧美电影一区二区| 亚洲国产精品自拍| 精品亚洲国内自在自线福利| 国产精品亚洲一区二区三区在线 | 欧美午夜免费电影| 欧美va天堂va视频va在线| 日本一区二区三区电影| 亚洲国产一区二区三区青草影视| 久久成人麻豆午夜电影| 99久久精品国产一区| 91精品国产色综合久久| 中文字幕免费观看一区| 午夜激情久久久| 国产成人综合在线播放| 欧美天堂亚洲电影院在线播放| 日韩女同互慰一区二区| 亚洲精品视频观看| 精品在线观看视频| 在线视频综合导航| www国产精品av| 亚洲国产aⅴ成人精品无吗| 国产jizzjizz一区二区| 69堂成人精品免费视频| 亚洲欧洲日韩av| 国产麻豆9l精品三级站| 欧美日韩aaa|