energy/cef/cef-proc.go

31 lines
716 B
Go
Raw Normal View History

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 (
. "github.com/energye/energy/common"
2022-10-04 13:21:05 +08:00
)
//--------TCEFWindowParent proc end--------
// 针对 MacOSX 设置命令行参数
//
// 没找到什么好的方式,只能这样设置
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)
}
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))
}