energy/cef/cef-callback.go

29 lines
593 B
Go
Raw Normal View History

2022-10-04 13:21:05 +08:00
//----------------------------------------
//
// Copyright © yanghy. All Rights Reserved.
//
// Licensed under Apache License Version 2.0, January 2004
//
// https://www.apache.org/licenses/LICENSE-2.0
2022-10-04 13:21:05 +08:00
//
//----------------------------------------
package cef
2022-10-04 22:34:57 +08:00
import (
"github.com/energye/energy/common/imports"
2022-10-04 22:34:57 +08:00
"unsafe"
)
2022-10-04 13:21:05 +08:00
type ICefCallback struct {
instance unsafe.Pointer
2022-10-04 13:21:05 +08:00
}
func (m *ICefCallback) Cont() {
imports.Proc(internale_cefCallback_Cont).Call(uintptr(m.instance))
2022-10-04 13:21:05 +08:00
}
func (m *ICefCallback) Cancel() {
imports.Proc(internale_cefCallback_Cancel).Call(uintptr(m.instance))
2022-10-04 13:21:05 +08:00
}