public interface CefWindowHandler
限定符和类型 | 方法和说明 |
---|---|
java.awt.Rectangle |
getRect(CefBrowser browser)
Retrieve the view rectangle.
(检索视图矩形。)
|
void |
onMouseEvent(CefBrowser browser, int event, int screenX, int screenY, int modifier, int button)
Implement this method to handle mouse events on Windows.
(在Windows上实现此方法以处理鼠标事件。)
|
java.awt.Rectangle getRect(CefBrowser browser)
browser
- The browser generating the event.
(-浏览器生成事件。)
void onMouseEvent(CefBrowser browser, int event, int screenX, int screenY, int modifier, int button)
browser
- The browser generating the event.
(-浏览器生成事件。)
event
- A mouse event like MouseEvent.MOUSE_MOVED.
(-鼠标事件,例如MouseEvent.MOUSE_MOVED。)
screenX
- The absolute X position on the screen.
(-屏幕上的绝对X位置。)
screenY
- The absolute Y position on the screen.
(-屏幕上的绝对Y位置。)
modifier
- The modifier keys down during event (e.g. Shift, Ctrl).
(-在事件发生期间,修饰键会向下键(例如Shift,Ctrl)。)
button
- An integer indicating which mouse button state changed. If parameter event is set to MouseEvent.MOUSE_WHEEL, the value of this parameter specifies the rotation indicator (negative value for left scroll and positive value for right scroll).
(-一个整数,指示更改的鼠标按钮状态。如果参数event设置为MouseEvent.MOUSE_WHEEL,则此参数的值指定旋转指示器(左滚动为负值,右滚动为正值)。)