简体   繁体   English

如何检测从AIR NativeWindowBoundsEvent开始调整大小的角或边?

[英]How to detect corner or edge which started resizing from AIR NativeWindowBoundsEvent?

If you do a manual start of resizing with startResize(EdgeOrCornerString) you have to set EdgeOrCornerString. 如果使用startResize(EdgeOrCornerString)手动开始调整大小,则必须设置EdgeOrCornerString。 But how to detect which one Edge Or Corner has been clicked from inside (NativeWindowBoundsEvent) resizing handler? 但是,如何检测从(NativeWindowBoundsEvent)大小调整处理程序内部单击了哪个“边缘”或“角落”? event.type gives only 'resizing', there is no edge or corner specified. event.type仅提供“调整大小”,没有指定边或角。 Is it possible and if yes, how? 有可能吗?如果可以,怎么办?

EDIT: I want to do custom resizing of NativeWindow, and need to know from which corner or edge user has started resizing operation. 编辑:我想对NativeWindow进行自定义大小调整,并且需要知道从哪个角落或边缘用户开始调整大小操作。

只需检查鼠标位置并将其与NativeWindow的宽度和高度进行比较即可

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM