mirror of
https://gitee.com/energye/energy.git
synced 2024-12-02 03:37:48 +08:00
U: CEF Work Schedule
This commit is contained in:
parent
5799bc0da7
commit
534d8356b0
@ -111,7 +111,6 @@ func (m *TCEFApplication) StopScheduler() {
|
|||||||
|
|
||||||
func (m *TCEFApplication) Destroy() {
|
func (m *TCEFApplication) Destroy() {
|
||||||
imports.Proc(def.CEFApplication_Destroy).Call()
|
imports.Proc(def.CEFApplication_Destroy).Call()
|
||||||
GlobalWorkSchedulerDestroy()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *TCEFApplication) Free() {
|
func (m *TCEFApplication) Free() {
|
||||||
@ -238,7 +237,7 @@ func (m *TCEFApplication) SetOnRenderLoadError(fn GlobalCEFAppEventOnRenderLoadE
|
|||||||
imports.Proc(def.CEFGlobalApp_SetOnRenderLoadError).Call(api.MakeEventDataPtr(fn))
|
imports.Proc(def.CEFGlobalApp_SetOnRenderLoadError).Call(api.MakeEventDataPtr(fn))
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *TCEFApplication) SetOnScheduleMessagePumpWork(fn GlobalCEFAppEventOnRenderLoadError) {
|
func (m *TCEFApplication) SetOnScheduleMessagePumpWork(fn GlobalCEFAppEventOnScheduleMessagePumpWork) {
|
||||||
var callback uintptr
|
var callback uintptr
|
||||||
if fn != nil {
|
if fn != nil {
|
||||||
callback = api.MakeEventDataPtr(fn)
|
callback = api.MakeEventDataPtr(fn)
|
||||||
|
Loading…
Reference in New Issue
Block a user