本文整理了Java中org.eclipse.swt.graphics.Region.init
方法的一些代码示例,展示了Region.init
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Region.init
方法的具体详情如下:
包路径:org.eclipse.swt.graphics.Region
类名称:Region
方法名:init
暂无
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86
/**
* 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 IllegalArgumentException <ul>
* <li>ERROR_NULL_ARGUMENT - if device is null and there is no current device</li>
* </ul>
* @exception SWTError <ul>
* <li>ERROR_NO_HANDLES if a handle could not be obtained for region creation</li>
* </ul>
*
* @see #dispose()
*
* @since 3.0
*/
public Region (Device device) {
super(device);
handle = OS.CreateRectRgn (0, 0, 0, 0);
if (handle == 0) SWT.error(SWT.ERROR_NO_HANDLES);
init();
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
/**
* 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 IllegalArgumentException <ul>
* <li>ERROR_NULL_ARGUMENT - if device is null and there is no current device</li>
* </ul>
* @exception SWTError <ul>
* <li>ERROR_NO_HANDLES if a handle could not be obtained for region creation</li>
* </ul>
*
* @see #dispose()
*
* @since 3.0
*/
public Region(Device device) {
super(device);
handle = OS.gdk_region_new();
if (handle == 0) SWT.error(SWT.ERROR_NO_HANDLES);
init();
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
/**
* 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 IllegalArgumentException <ul>
* <li>ERROR_NULL_ARGUMENT - if device is null and there is no current device</li>
* </ul>
* @exception SWTError <ul>
* <li>ERROR_NO_HANDLES if a handle could not be obtained for region creation</li>
* </ul>
*
* @see #dispose()
*
* @since 3.0
*/
public Region(Device device) {
super(device);
handle = OS.gdk_region_new();
if (handle == 0) SWT.error(SWT.ERROR_NO_HANDLES);
init();
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
/**
* 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 IllegalArgumentException <ul>
* <li>ERROR_NULL_ARGUMENT - if device is null and there is no current device</li>
* </ul>
* @exception SWTError <ul>
* <li>ERROR_NO_HANDLES if a handle could not be obtained for region creation</li>
* </ul>
*
* @see #dispose()
*
* @since 3.0
*/
public Region(Device device) {
super(device);
handle = OS.gdk_region_new();
if (handle == 0) SWT.error(SWT.ERROR_NO_HANDLES);
init();
}
代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64
handle = OS.NewRgn();
if (handle == 0) SWT.error(SWT.ERROR_NO_HANDLES);
init();
} finally {
if (pool != null) pool.release();
内容来源于网络,如有侵权,请联系作者删除!