-
Notifications
You must be signed in to change notification settings - Fork 22
/
types_panel_delegate.go
114 lines (107 loc) · 3.43 KB
/
types_panel_delegate.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
//----------------------------------------
//
// Copyright © yanghy. All Rights Reserved.
//
// Licensed under Apache License Version 2.0, January 2004
//
// https//www.apache.org/licenses/LICENSE-2.0
//
//----------------------------------------
package cef
import (
"github.com/energye/energy/v2/cef/internal/def"
"github.com/energye/energy/v2/common/imports"
"github.com/energye/energy/v2/consts"
"unsafe"
)
// PanelDelegateRef -> ICefPanelDelegate
var PanelDelegateRef panelDelegate
type panelDelegate uintptr
func (*panelDelegate) New() *ICefPanelDelegate {
var result uintptr
imports.Proc(def.PanelDelegateRef_Create).Call(uintptr(unsafe.Pointer(&result)))
if result != 0 {
return &ICefPanelDelegate{&ICefViewDelegate{instance: getInstance(result)}}
}
return nil
}
func (*panelDelegate) NewForCustom(panel *TCEFPanelComponent) *ICefPanelDelegate {
if !panel.IsValid() {
return nil
}
var result uintptr
imports.Proc(def.PanelDelegateRef_CreateForCustom).Call(panel.Instance(), uintptr(unsafe.Pointer(&result)))
if result != 0 {
return &ICefPanelDelegate{&ICefViewDelegate{instance: getInstance(result), ct: consts.CtOther}}
}
return nil
}
//func (m *ICefPanelDelegate) SetOnGetPreferredSize(fn onGetPreferredSize) {
// if !m.IsValid() || m.IsOtherEvent() {
// return
// }
// imports.Proc(def.PanelDelegate_SetOnGetPreferredSize).Call(m.Instance(), api.MakeEventDataPtr(fn))
//}
//
//func (m *ICefPanelDelegate) SetOnGetMinimumSize(fn onGetMinimumSize) {
// if !m.IsValid() || m.IsOtherEvent() {
// return
// }
// imports.Proc(def.PanelDelegate_SetOnGetMinimumSize).Call(m.Instance(), api.MakeEventDataPtr(fn))
//}
//
//func (m *ICefPanelDelegate) SetOnGetMaximumSize(fn onGetMaximumSize) {
// if !m.IsValid() || m.IsOtherEvent() {
// return
// }
// imports.Proc(def.PanelDelegate_SetOnGetMaximumSize).Call(m.Instance(), api.MakeEventDataPtr(fn))
//}
//
//func (m *ICefPanelDelegate) SetOnGetHeightForWidth(fn onGetHeightForWidth) {
// if !m.IsValid() || m.IsOtherEvent() {
// return
// }
// imports.Proc(def.PanelDelegate_SetOnGetHeightForWidth).Call(m.Instance(), api.MakeEventDataPtr(fn))
//}
//
//func (m *ICefPanelDelegate) SetOnParentViewChanged(fn onParentViewChanged) {
// if !m.IsValid() || m.IsOtherEvent() {
// return
// }
// imports.Proc(def.PanelDelegate_SetOnParentViewChanged).Call(m.Instance(), api.MakeEventDataPtr(fn))
//}
//
//func (m *ICefPanelDelegate) SetOnChildViewChanged(fn onChildViewChanged) {
// if !m.IsValid() || m.IsOtherEvent() {
// return
// }
// imports.Proc(def.PanelDelegate_SetOnChildViewChanged).Call(m.Instance(), api.MakeEventDataPtr(fn))
//}
//
//func (m *ICefPanelDelegate) SetOnWindowChanged(fn onWindowChanged) {
// if !m.IsValid() || m.IsOtherEvent() {
// return
// }
// imports.Proc(def.PanelDelegate_SetOnWindowChanged).Call(m.Instance(), api.MakeEventDataPtr(fn))
//}
//
//func (m *ICefPanelDelegate) SetOnLayoutChanged(fn onLayoutChanged) {
// if !m.IsValid() || m.IsOtherEvent() {
// return
// }
// imports.Proc(def.PanelDelegate_SetOnLayoutChanged).Call(m.Instance(), api.MakeEventDataPtr(fn))
//}
//
//func (m *ICefPanelDelegate) SetOnFocus(fn onFocus) {
// if !m.IsValid() || m.IsOtherEvent() {
// return
// }
// imports.Proc(def.PanelDelegate_SetOnFocus).Call(m.Instance(), api.MakeEventDataPtr(fn))
//}
//
//func (m *ICefPanelDelegate) SetOnBlur(fn onBlur) {
// if !m.IsValid() || m.IsOtherEvent() {
// return
// }
// imports.Proc(def.PanelDelegate_SetOnBlur).Call(m.Instance(), api.MakeEventDataPtr(fn))
//}