mirror of
https://gitee.com/energye/energy.git
synced 2024-12-02 19:57:48 +08:00
34 lines
869 B
Go
34 lines
869 B
Go
//----------------------------------------
|
|
//
|
|
// Copyright © yanghy. All Rights Reserved.
|
|
//
|
|
// Licensed under Apache License Version 2.0, January 2004
|
|
//
|
|
// https://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
//----------------------------------------
|
|
|
|
package cef
|
|
|
|
const (
|
|
mouseUp = "mouseUp"
|
|
mouseDown = "mouseDown"
|
|
mouseMove = "mouseMove"
|
|
dragUp = 0
|
|
dragDown = 1
|
|
dragMove = 2
|
|
)
|
|
|
|
// drag
|
|
// custom window drag
|
|
// The second method, Implemented using JavaScript, currently suitable for LCL windows on Windows and Mac OS
|
|
// VF window is already implemented and supported by default
|
|
type drag struct {
|
|
T int8 // 0:up, 1:down, 2:move
|
|
X, Y int32 // data mouse point
|
|
window IBrowserWindow // drag window
|
|
wx, wy int32 // window point
|
|
dx, dy int32 // down mouse point
|
|
mx, my int32 // move mouse point
|
|
}
|