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

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

?? region.java

?? 源碼為Eclipse開源開發平臺桌面開發工具SWT的源代碼,
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/******************************************************************************* * Copyright (c) 2000, 2004 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Common Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/cpl-v10.html *  * Contributors: *     IBM Corporation - initial API and implementation *******************************************************************************/package org.eclipse.swt.graphics;import org.eclipse.swt.internal.win32.*;import org.eclipse.swt.*;/** * Instances of this class represent areas of an x-y coordinate * system that are aggregates of the areas covered by a number * of rectangles. * <p> * Application code must explicitly invoke the <code>Region.dispose()</code>  * method to release the operating system resources managed by each instance * when those instances are no longer required. * </p> */public final class Region {		/**	 * the OS resource for the region	 * (Warning: This field is platform dependent)	 */	public int handle;		/**	 * the device where this region was created	 */	Device device;/** * Constructs a new empty region. *  * @exception SWTError <ul> *    <li>ERROR_NO_HANDLES if a handle could not be obtained for region creation</li> * </ul> */public Region () {	this(null);}/** * Constructs a new empty region. * <p> * You must dispose the region when it is no longer required.  * </p> * * @param device the device on which to allocate the region ** @exception SWTError <ul> *    <li>ERROR_NO_HANDLES if a handle could not be obtained for region creation</li> * </ul> * @exception IllegalArgumentException <ul> *    <li>ERROR_NULL_ARGUMENT - if device is null and there is no current device</li> * </ul> * * @see #dispose *  * @since 3.0 */public Region (Device device) {	if (device == null) device = Device.getDevice();	if (device == null) SWT.error(SWT.ERROR_NULL_ARGUMENT);	this.device = device;	handle = OS.CreateRectRgn (0, 0, 0, 0);	if (handle == 0) SWT.error(SWT.ERROR_NO_HANDLES);	if (device.tracking) device.new_Object(this);}/** * Constructs a new region given a handle to the operating * system resources that it should represent. *  * @param handle the handle for the result */Region(Device device, int handle) {	this.device = device;	this.handle = handle;}/** * Adds the given polygon to the collection of rectangles * the receiver maintains to describe its area. * * @param pointArray points that describe the polygon to merge with the receiver * * @exception IllegalArgumentException <ul> *    <li>ERROR_NULL_ARGUMENT - if the argument is null</li> * </ul> * @exception SWTException <ul> *    <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li> * </ul> * * @since 3.0* */public void add (int[] pointArray) {	if (isDisposed()) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED);	if (pointArray == null) SWT.error(SWT.ERROR_NULL_ARGUMENT);	if (OS.IsWinCE) SWT.error(SWT.ERROR_NOT_IMPLEMENTED);	int polyRgn = OS.CreatePolygonRgn(pointArray, pointArray.length / 2, OS.ALTERNATE);	OS.CombineRgn (handle, handle, polyRgn, OS.RGN_OR);	OS.DeleteObject (polyRgn);}/** * Adds the given rectangle to the collection of rectangles * the receiver maintains to describe its area. * * @param rect the rectangle to merge with the receiver * * @exception IllegalArgumentException <ul> *    <li>ERROR_NULL_ARGUMENT - if the argument is null</li> *    <li>ERROR_INVALID_ARGUMENT - if the rectangle's width or height is negative</li> * </ul> * @exception SWTException <ul> *    <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li> * </ul> */public void add (Rectangle rect) {	if (isDisposed()) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED);	if (rect == null) SWT.error(SWT.ERROR_NULL_ARGUMENT);	if (rect.width < 0 || rect.height < 0) SWT.error(SWT.ERROR_INVALID_ARGUMENT);		int rectRgn = OS.CreateRectRgn (rect.x, rect.y, rect.x + rect.width, rect.y + rect.height);	OS.CombineRgn (handle, handle, rectRgn, OS.RGN_OR);	OS.DeleteObject (rectRgn);}/** * Adds all of the rectangles which make up the area covered * by the argument to the collection of rectangles the receiver * maintains to describe its area. * * @param region the region to merge * * @exception IllegalArgumentException <ul> *    <li>ERROR_NULL_ARGUMENT - if the argument is null</li> *    <li>ERROR_INVALID_ARGUMENT - if the argument has been disposed</li> * </ul> * @exception SWTException <ul> *    <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li> * </ul> */public void add (Region region) {	if (isDisposed()) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED);	if (region == null) SWT.error(SWT.ERROR_NULL_ARGUMENT);	if (region.isDisposed()) SWT.error(SWT.ERROR_INVALID_ARGUMENT);	OS.CombineRgn (handle, handle, region.handle, OS.RGN_OR);}/** * Returns <code>true</code> if the point specified by the * arguments is inside the area specified by the receiver, * and <code>false</code> otherwise. * * @param x the x coordinate of the point to test for containment * @param y the y coordinate of the point to test for containment * @return <code>true</code> if the region contains the point and <code>false</code> otherwise * * @exception SWTException <ul> *    <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li> * </ul> */public boolean contains (int x, int y) {	if (isDisposed()) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED);	return OS.PtInRegion (handle, x, y);}/** * Returns <code>true</code> if the given point is inside the * area specified by the receiver, and <code>false</code> * otherwise. * * @param pt the point to test for containment * @return <code>true</code> if the region contains the point and <code>false</code> otherwise * * @exception IllegalArgumentException <ul> *    <li>ERROR_NULL_ARGUMENT - if the argument is null</li> * </ul> * @exception SWTException <ul> *    <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li> * </ul> */public boolean contains (Point pt) {	if (pt == null) SWT.error(SWT.ERROR_NULL_ARGUMENT);	return contains(pt.x, pt.y);}/** * Disposes of the operating system resources associated with * the region. Applications must dispose of all regions which * they allocate. */public void dispose () {	if (handle == 0) return;	if (device.isDisposed()) return;	OS.DeleteObject(handle);	handle = 0;	if (device.tracking) device.dispose_Object(this);	device = null;}/** * Compares the argument to the receiver, and returns true * if they represent the <em>same</em> object using a class * specific comparison. * * @param object the object to compare with this object * @return <code>true</code> if the object is the same as this object and <code>false</code> otherwise * * @see #hashCode */public boolean equals (Object object) {	if (this == object) return true;	if (!(object instanceof Region)) return false;	Region rgn = (Region)object;	return handle == rgn.handle;}/** * Returns a rectangle which represents the rectangular * union of the collection of rectangles the receiver * maintains to describe its area. * * @return a bounding rectangle for the region * * @exception SWTException <ul> *    <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li> * </ul> * * @see Rectangle#union */public Rectangle getBounds() {	if (isDisposed()) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED);	RECT rect = new RECT();	OS.GetRgnBox(handle, rect);	return new Rectangle(rect.left, rect.top, rect.right - rect.left, rect.bottom - rect.top);}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩欧美激情四射| 久久毛片高清国产| av在线这里只有精品| 国产一区二区伦理| 久久综合综合久久综合| 日韩高清在线观看| 极品尤物av久久免费看| 久久99国产乱子伦精品免费| 蜜桃视频在线一区| 国产美女娇喘av呻吟久久 | 欧美一区二区三区视频| 欧美电影一区二区三区| 欧美一级欧美三级| 久久综合狠狠综合久久激情| 久久精品亚洲一区二区三区浴池| 国产性做久久久久久| 亚洲丝袜精品丝袜在线| 午夜一区二区三区在线观看| 日韩 欧美一区二区三区| 极品尤物av久久免费看| 99免费精品视频| 欧美日韩国产大片| 精品国产一区a| 最新不卡av在线| 婷婷开心激情综合| 国产成人综合亚洲网站| 色综合天天综合网国产成人综合天 | 亚洲视频一区二区免费在线观看 | 日韩国产欧美在线视频| 精品写真视频在线观看| 99久久99久久精品国产片果冻 | 国产精品456| 97aⅴ精品视频一二三区| 欧美一区二区高清| 欧美国产综合色视频| 午夜电影网一区| 成人免费黄色在线| 日韩无一区二区| 日韩美女视频19| 国产一区不卡视频| 91精品久久久久久蜜臀| 国产精品国产三级国产有无不卡 | 日韩欧美国产精品一区| 亚洲免费av观看| 九色综合狠狠综合久久| 欧美色图激情小说| 国产精品美女www爽爽爽| 青草国产精品久久久久久| 色综合久久久久久久久久久| 精品国产凹凸成av人网站| 亚洲图片欧美色图| 91色乱码一区二区三区| 国产色产综合色产在线视频| 日韩av中文字幕一区二区三区| www.欧美精品一二区| 久久亚洲一级片| 免费观看久久久4p| 在线成人av网站| 亚洲一区二区精品视频| www.欧美日韩国产在线| 国产精品美女久久久久久2018 | 99精品偷自拍| 国产无人区一区二区三区| 老司机免费视频一区二区三区| 欧美三级电影在线观看| 一个色综合网站| 91极品视觉盛宴| 亚洲美女一区二区三区| 99免费精品在线| 国产精品久久久久影院| 成人av网站大全| 国产精品夫妻自拍| 色综合天天综合网天天狠天天 | 国产成人在线免费观看| 国产亚洲一区字幕| 成人在线视频一区二区| 中文久久乱码一区二区| 99久久久免费精品国产一区二区| 国产精品不卡在线| 91丨porny丨最新| 亚洲精品中文在线影院| 欧美午夜精品久久久久久超碰| 亚洲最大成人网4388xx| 欧美三级日韩在线| 日本va欧美va欧美va精品| 国产精品福利在线播放| 不卡在线视频中文字幕| 亚洲精品欧美综合四区| 欧美视频一区二区| 美女高潮久久久| 精品国产成人系列| av中文字幕一区| 亚洲国产一区在线观看| 欧美一区二区三区的| 国产一区二区三区观看| 自拍偷拍亚洲激情| 欧美三级中文字| 久久成人麻豆午夜电影| 国产精品久久久久影院色老大 | 蜜桃精品在线观看| 国产精品乱人伦| 欧美性色aⅴ视频一区日韩精品| 日本三级亚洲精品| 国产精品色一区二区三区| 在线视频观看一区| 精品亚洲免费视频| 综合欧美一区二区三区| 日韩视频一区二区三区在线播放| 国产精品影音先锋| 亚洲第一综合色| 亚洲国产精品av| 欧美一区二区三区在线观看| www.亚洲激情.com| 久久狠狠亚洲综合| 一区二区三区在线视频免费 | 三级一区在线视频先锋 | 6080亚洲精品一区二区| 波多野结衣在线一区| 青青草精品视频| 一区二区三区在线免费播放 | 一级女性全黄久久生活片免费| 精品电影一区二区| 欧美日本一道本| 91看片淫黄大片一级| 精品在线免费观看| 无吗不卡中文字幕| 一区二区三区中文字幕电影| 久久久久久久综合狠狠综合| 欧美性受xxxx黑人xyx性爽| 懂色av噜噜一区二区三区av| 日韩成人一级大片| 一区二区三区在线高清| 国产精品毛片a∨一区二区三区| 欧美一二三区精品| 欧美一级欧美一级在线播放| 欧美自拍丝袜亚洲| 色婷婷久久久久swag精品| 粉嫩av亚洲一区二区图片| 国产自产视频一区二区三区| 免费高清视频精品| 美女一区二区视频| 日韩1区2区日韩1区2区| 五月综合激情婷婷六月色窝| 亚洲精品国产精品乱码不99| 成人欧美一区二区三区白人| 中文一区在线播放| 国产精品久久久久影院老司| 国产精品久久久久婷婷二区次| 国产视频911| 国产精品麻豆99久久久久久| 国产欧美一区二区精品忘忧草| 久久精品视频免费观看| 久久亚洲综合色| 久久午夜电影网| 日本一区二区视频在线观看| 国产精品网站一区| 亚洲视频小说图片| 亚洲色欲色欲www在线观看| 亚洲欧洲日韩一区二区三区| 中文字幕在线不卡视频| 成人免费在线播放视频| 一区二区三区在线观看网站| 亚洲综合视频网| 日韩福利电影在线| 极品瑜伽女神91| 成人av网站在线| 欧美羞羞免费网站| 欧美电影免费观看高清完整版| 久久亚洲一区二区三区明星换脸| 欧美极品少妇xxxxⅹ高跟鞋| 亚洲男人电影天堂| 日本女优在线视频一区二区| 久久精品国产澳门| 97精品久久久久中文字幕| 欧美性大战久久久| 精品成人在线观看| 成人欧美一区二区三区在线播放| 亚洲国产综合在线| 精品一区二区av| 91原创在线视频| 日韩一级视频免费观看在线| 欧美激情一区二区三区在线| 亚洲高清视频中文字幕| 国产一区中文字幕| 欧美丝袜丝交足nylons| 26uuu成人网一区二区三区| ...av二区三区久久精品| 午夜av一区二区| 成人av小说网| 欧美一级片在线| 亚洲免费在线观看视频| 精品一二三四区| 欧美在线|欧美| 国产网站一区二区| 日本欧洲一区二区| 色哟哟在线观看一区二区三区| 欧美电影免费观看高清完整版在| 亚洲欧美一区二区久久| 国产一区二区美女| 日韩一级免费观看|