forked from ying32/govcl
/
define.go
57 lines (42 loc) · 989 Bytes
/
define.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
package main
/*
#include <windows.h>
*/
import "C"
type HWND = uintptr
type LRESULT = uintptr
type UINT = uint32
type WPARAM = uintptr
type LPARAM = uintptr
type PTCHAR = uintptr
type NppData struct {
NppHandle HWND
ScintillaMainHandle HWND
ScintillaSecondHandle HWND
}
// PFuncSetInfo
//type PFUNCSETINFO func() procedure(NppData: TNppData);cdecl;
type PFUNCSETINFO = uintptr
// PFuncPluginCmd
//PFUNCPLUGINCMD = procedure;cdecl;
type PFUNCPLUGINCMD = uintptr
// PBeNotified
//PBENOTIFIED = procedure(var SCNotification: TSCNotification);cdecl;
type PBENOTIFIED = uintptr
// PMessageProc
//PMESSAGEPROC = function(iMessage: UINT; wParam: WPARAM; lParam: LPARAM):LRESULT;cdecl;
type PMESSAGEPROC = uintptr
type ShortcutKey struct {
IsCtrl bool
IsAlt bool
IsShift bool
Key byte
}
const nbChar = 64
type FuncItem struct {
ItemName [nbChar]uint16
PFunc PFUNCPLUGINCMD
CmdID int32
Init2Check bool
PShKey *ShortcutKey
}