forked from Ekopalypse/NppPythonScripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugininterface.pxd
More file actions
61 lines (54 loc) · 1.49 KB
/
plugininterface.pxd
File metadata and controls
61 lines (54 loc) · 1.49 KB
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
from windowsapi cimport *
from libcpp cimport bool
cdef extern from "PluginInterface.h":
# int nbChar = 64
# ctypedef void (__cdecl * PFUNCPLUGINCMD)()
ctypedef struct NppData:
HWND _nppHandle
HWND _scintillaMainHandle
HWND _scintillaSecondHandle
ctypedef struct ShortcutKey:
bool _isCtrl
bool _isAlt
bool _isShift
unsigned char _key
ctypedef struct FuncItem:
WCHAR _itemName[64]
void* _pFunc
int _cmdID
bool _init2Check
ShortcutKey *_pShKey
cdef void setInfo(NppData)
cdef LPCWSTR getName()
cdef FuncItem * getFuncsArray(int *)
cdef void beNotified(SCNotification *)
cdef LRESULT messageProc(UINT Message, WPARAM wParam, LPARAM lParam)
cdef bool isUnicode()
cdef extern from "scintilla.h":
ctypedef struct Sci_NotifyHeader:
void* hwndFrom
uptr_t idFrom
unsigned int code
ctypedef struct SCNotification:
Sci_NotifyHeader nmhdr
Sci_Position position
int ch
int modifiers
int modificationType
const char* text
Sci_Position length
Sci_Position linesAdded
int message
uptr_t wParam
sptr_t lParam
Sci_Position line
int foldLevelNow
int foldLevelPrev
int margin
int listType
int x
int y
int token
Sci_Position annotationLinesAdded
int updated
int listCompletionMethod