2022-10-04 13:21:05 +08:00
|
|
|
//----------------------------------------
|
|
|
|
//
|
|
|
|
// Copyright © yanghy. All Rights Reserved.
|
|
|
|
//
|
2022-10-04 16:38:43 +08:00
|
|
|
// Licensed under GNU General Public License v3.0
|
2022-10-04 13:21:05 +08:00
|
|
|
//
|
|
|
|
//----------------------------------------
|
|
|
|
|
|
|
|
package cef
|
|
|
|
|
|
|
|
import (
|
2022-11-02 12:47:47 +08:00
|
|
|
. "github.com/energye/energy/common"
|
2022-10-04 13:21:05 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
//--------TCEFWindowParent proc end--------
|
|
|
|
|
|
|
|
// 针对 MacOSX 设置命令行参数
|
|
|
|
//
|
2022-12-07 15:50:59 +08:00
|
|
|
// 没找到什么好的方式,只能这样设置
|
2022-10-04 13:21:05 +08:00
|
|
|
func setMacOSXCommandLine(commandLine uintptr) {
|
2022-12-05 10:44:24 +08:00
|
|
|
Proc(internale_SetMacOSXCommandLine).Call(commandLine)
|
|
|
|
}
|
|
|
|
|
2022-12-05 12:07:58 +08:00
|
|
|
func AddGoForm(windowId int32, instance uintptr) {
|
|
|
|
Proc(internale_CEF_AddGoForm).Call(uintptr(windowId), instance)
|
|
|
|
}
|
|
|
|
|
|
|
|
func RemoveGoForm(windowId int32) {
|
|
|
|
Proc(internale_CEF_RemoveGoForm).Call(uintptr(windowId))
|
|
|
|
}
|