开发者

Determining the size of the current cursor

开发者 https://www.devze.com 2022-12-26 03:44 出处:网络
I a开发者_运维百科m 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 p

I a开发者_运维百科m 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?


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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消