macos - Linux/X11(和 Mac OS X)中相当于 Win API SetCapture() 函数的是什么?

标签 macos winapi mouse x11 capture

在 Windows 上,您可以“捕获”鼠标以继续接收鼠标事件,即使它超出了窗口的工作区。这里是 SetCapture() 文档:http://msdn.microsoft.com/en-us/library/ms646262(VS.85).aspx

我想知道 Linux (X11) 和 Mac OS X (Cocoa) 中的等效函数是什么。

最佳答案

对于 X:XGrabPointer()

关于macos - Linux/X11(和 Mac OS X)中相当于 Win API SetCapture() 函数的是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3384561/

相关文章:

c++ - 在旧 MFC/Win32 应用程序上使用 C++ 互操作时遇到错误

excel - 如何使用 Excel VBA 在 PC 和 Mac 中打开默认浏览器?

java - 在 Mac OS 中将 JAR 添加到 CLASSPATH

macos - emacs 喜欢 textmate 中的 fill-paragraph 选项吗?

c++ - 通过 TCP 发送的图像被翻转

javascript - Three.js 使用正交相机从鼠标位置获取世界坐标

macos - 检测用户正在 chrome/firefox/safari 中查看的 url

c++ - 分层窗口、UpdateLayeredWindow 和性能

3d - 在 XNA 4.0 中,如何使用高架摄像头将鼠标坐标转换为 3D 坐标?

Java Swing : change background color on mouse over