WindowHandle
Inheritance: java.lang.Object
public class WindowHandle
针对不同平台的封装窗口句柄。
方法
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| arg0 | java.lang.Object |
Returns: 布尔
fromWayland(long display, long surface)
public static WindowHandle fromWayland(long display, long surface)
从 Wayland 表面创建 WindowHandle
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| 显示 | long | Wayland 服务器的显示实例 |
| 表面 | long | 表面的句柄 |
Returns: WindowHandle
fromWin32(long hWnd)
public static WindowHandle fromWin32(long hWnd)
Windows 环境中的本机 HWND 实例。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| hWnd | long | 本机 Win32 窗口的句柄 |
Returns: WindowHandle
fromXlib(long display, long window)
public static WindowHandle fromXlib(long display, long window)
从 Xlib 窗口创建 WindowHandle
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| 显示 | long | X 服务器的显示实例 |
| 窗口 | long | 窗口的句柄 |
Returns: WindowHandle
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
hashCode()
public native int hashCode()
Returns: int
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final void wait(long arg0)
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| arg0 | long | |
| arg1 | int |