确定当前光标的大小
我正在编写一个嵌入 GLCanvas 的 swt 应用程序,我希望能够找出当前光标的大小,这可能吗?如果我无法从 JOGL 获取它,那么是否可以从 swt 或 awt 获取它?
I am writing a an swt app that has an embeded GLCanvas
and I wanted to be able to find out the size of the current cursor, is this possible? And if I cannot get it from JOGL then is it possible from either swt or awt?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果尺寸指的是像素尺寸,则可以查看
Toolkit.getBestCursorSize(int,int)
检查平台支持的光标大小。If by size you mean pixel dimensions, you can have a look at
Toolkit.getBestCursorSize(int,int)
to check the supported cursor sizes on the platform.获取光标大小通常没什么用,因为光标的大部分可能是透明的。我也不清楚你为什么提到 JOGL。据我所知,JOGL 库不与光标交互。
Getting the cursor size is not generally useful, since much of a cursor may be transparent. I'm also unclear as to why you mention JOGL. The JOGL library doesn't interact with the cursor, as far as I know.