U: OSR event

This commit is contained in:
杨红岩 2023-06-19 20:40:14 +08:00
parent 3114f87432
commit e417189035
3 changed files with 8 additions and 2 deletions

View File

@ -1218,14 +1218,14 @@ func (m *TBufferPanel) SetOnMouseMove(fn lcl.TMouseMoveEvent) {
// 设置鼠标抬起事件。
//
// Set Mouse lift event.
func (m *TBufferPanel) SetOnMouseUp(fn TMouseEvent) {
func (m *TBufferPanel) SetOnMouseUp(fn lcl.TMouseEvent) {
imports.SysCallN(def.BufferPanel_SetOnMouseUp, m.Instance(), api.MakeEventDataPtr(fn))
}
// SetOnResize
//
// 设置大小被改变事件。
func (m *TBufferPanel) SetOnResize(fn TNotifyEvent) {
func (m *TBufferPanel) SetOnResize(fn lcl.TNotifyEvent) {
imports.SysCallN(def.BufferPanel_SetOnResize, m.Instance(), api.MakeEventDataPtr(fn))
}
@ -1875,3 +1875,7 @@ func (m *TBufferPanel) OrigPopupScanlineSize() int32 {
func (m *TBufferPanel) SetOnPaintParentBkg(fn lcl.TNotifyEvent) {
imports.SysCallN(def.BufferPanel_SetOnPaintParentBkg, m.Instance(), api.MakeEventDataPtr(fn))
}
func (m *TBufferPanel) SetOnMouseWheel(fn lcl.TMouseWheelEvent) {
imports.SysCallN(def.BufferPanel_SetOnMouseWheel, m.Instance(), api.MakeEventDataPtr(fn))
}

View File

@ -2207,6 +2207,7 @@ const (
BufferPanel_SetOnPointerUp
BufferPanel_SetOnPointerUpdate
BufferPanel_SetOnPaintParentBkg
BufferPanel_SetOnMouseWheel
// TString
TString_Create
TString_Free

View File

@ -2207,6 +2207,7 @@ func init() {
dllimports.NewEnergyImport("BufferPanel_SetOnPointerUp", 0),
dllimports.NewEnergyImport("BufferPanel_SetOnPointerUpdate", 0),
dllimports.NewEnergyImport("BufferPanel_SetOnPaintParentBkg", 0),
dllimports.NewEnergyImport("BufferPanel_SetOnMouseWheel", 0),
// TString
dllimports.NewEnergyImport("TString_Create", 0),
dllimports.NewEnergyImport("TString_Free", 0),