-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocs.json
More file actions
326 lines (280 loc) · 11.2 KB
/
docs.json
File metadata and controls
326 lines (280 loc) · 11.2 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
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
[
{
"Constant" : [
],
"submodules" : [
],
"Function" : [
],
"Variable" : [
{
"parameters" : [
],
"stripped_doc" : [
"Model number of your XP-Pen tablet",
"More information can be found here: https:\/\/github.com\/dimaj\/XPPenTablet.spoon\/wiki\/How-to-get-device-name"
],
"name" : "deviceName",
"doc" : "Model number of your XP-Pen tablet\nMore information can be found here: https:\/\/github.com\/dimaj\/XPPenTablet.spoon\/wiki\/How-to-get-device-name",
"notes" : [
],
"signature" : "XPPenTablet.deviceName",
"type" : "Variable",
"returns" : [
],
"def" : "XPPenTablet.deviceName",
"desc" : "Model number of your XP-Pen tablet"
},
{
"parameters" : [
],
"stripped_doc" : [
"Location where XP-Pen software keeps its configuration."
],
"name" : "configLocation",
"doc" : "Location where XP-Pen software keeps its configuration.",
"notes" : [
],
"signature" : "XPPenTablet.configLocation",
"type" : "Variable",
"returns" : [
],
"def" : "XPPenTablet.configLocation",
"desc" : "Location where XP-Pen software keeps its configuration."
},
{
"parameters" : [
],
"stripped_doc" : [
"Logger object used within the Spoon. Can be accessed to set the default log level for the messages coming from the Spoon."
],
"name" : "logger",
"doc" : "Logger object used within the Spoon. Can be accessed to set the default log level for the messages coming from the Spoon.",
"notes" : [
],
"signature" : "XPPenTablet.logger",
"type" : "Variable",
"returns" : [
],
"def" : "XPPenTablet.logger",
"desc" : "Logger object used within the Spoon. Can be accessed to set the default log level for the messages coming from the Spoon."
}
],
"stripped_doc" : [
],
"Deprecated" : [
],
"type" : "Module",
"desc" : "Configure 'Monitor Mapping' settings for XP-Pen tablets without opening settings application",
"Constructor" : [
],
"Field" : [
],
"Method" : [
{
"parameters" : [
],
"stripped_doc" : [
"Makes sure that all fields have been initialized and reads in configuration file"
],
"name" : "start",
"doc" : "Makes sure that all fields have been initialized and reads in configuration file",
"notes" : [
],
"signature" : "XPPenTablet:start()",
"type" : "Method",
"returns" : [
],
"def" : "XPPenTablet:start()",
"desc" : "Makes sure that all fields have been initialized and reads in configuration file"
},
{
"parameters" : [
" * mapping - A table containing hotkey objifier\/key details for the following items:",
" * current_window - gets frame of currently active window and saves it to XP-Pen's config"
],
"stripped_doc" : [
"Binds hotkeys for XPPenTablet",
""
],
"name" : "bindHotkeys",
"doc" : "Binds hotkeys for XPPenTablet\n\nParameters:\n * mapping - A table containing hotkey objifier\/key details for the following items:\n * current_window - gets frame of currently active window and saves it to XP-Pen's config",
"notes" : [
],
"signature" : "XPPenTablet:bindHotkeys(mapping)",
"type" : "Method",
"returns" : [
],
"def" : "XPPenTablet:bindHotkeys(mapping)",
"desc" : "Binds hotkeys for XPPenTablet"
},
{
"parameters" : [
],
"stripped_doc" : [
"Saves X, Y, W, H of currenlty active window into XP-Pen's settings file and restarts XP-Pen driver"
],
"name" : "updateForActiveWindow",
"doc" : "Saves X, Y, W, H of currenlty active window into XP-Pen's settings file and restarts XP-Pen driver",
"notes" : [
],
"signature" : "XPPenTablet:updateForActiveWindow()",
"type" : "Method",
"returns" : [
],
"def" : "XPPenTablet:updateForActiveWindow()",
"desc" : "Saves X, Y, W, H of currenlty active window into XP-Pen's settings file and restarts XP-Pen driver"
},
{
"parameters" : [
" * appName - Name of the application to get coordinates for"
],
"stripped_doc" : [
"Saves X, Y, W, H of sepcified application's main window into XP-Pen's settings file and restarts XP-Pen driver",
""
],
"name" : "updateConfigForApp",
"doc" : "Saves X, Y, W, H of sepcified application's main window into XP-Pen's settings file and restarts XP-Pen driver\n\nParameters:\n * appName - Name of the application to get coordinates for",
"notes" : [
],
"signature" : "XPPenTablet:updateConfigForApp()",
"type" : "Method",
"returns" : [
],
"def" : "XPPenTablet:updateConfigForApp()",
"desc" : "Saves X, Y, W, H of sepcified application's main window into XP-Pen's settings file and restarts XP-Pen driver"
}
],
"Command" : [
],
"items" : [
{
"parameters" : [
],
"stripped_doc" : [
"Location where XP-Pen software keeps its configuration."
],
"name" : "configLocation",
"doc" : "Location where XP-Pen software keeps its configuration.",
"notes" : [
],
"signature" : "XPPenTablet.configLocation",
"type" : "Variable",
"returns" : [
],
"def" : "XPPenTablet.configLocation",
"desc" : "Location where XP-Pen software keeps its configuration."
},
{
"parameters" : [
],
"stripped_doc" : [
"Model number of your XP-Pen tablet",
"More information can be found here: https:\/\/github.com\/dimaj\/XPPenTablet.spoon\/wiki\/How-to-get-device-name"
],
"name" : "deviceName",
"doc" : "Model number of your XP-Pen tablet\nMore information can be found here: https:\/\/github.com\/dimaj\/XPPenTablet.spoon\/wiki\/How-to-get-device-name",
"notes" : [
],
"signature" : "XPPenTablet.deviceName",
"type" : "Variable",
"returns" : [
],
"def" : "XPPenTablet.deviceName",
"desc" : "Model number of your XP-Pen tablet"
},
{
"parameters" : [
],
"stripped_doc" : [
"Logger object used within the Spoon. Can be accessed to set the default log level for the messages coming from the Spoon."
],
"name" : "logger",
"doc" : "Logger object used within the Spoon. Can be accessed to set the default log level for the messages coming from the Spoon.",
"notes" : [
],
"signature" : "XPPenTablet.logger",
"type" : "Variable",
"returns" : [
],
"def" : "XPPenTablet.logger",
"desc" : "Logger object used within the Spoon. Can be accessed to set the default log level for the messages coming from the Spoon."
},
{
"parameters" : [
" * mapping - A table containing hotkey objifier\/key details for the following items:",
" * current_window - gets frame of currently active window and saves it to XP-Pen's config"
],
"stripped_doc" : [
"Binds hotkeys for XPPenTablet",
""
],
"name" : "bindHotkeys",
"doc" : "Binds hotkeys for XPPenTablet\n\nParameters:\n * mapping - A table containing hotkey objifier\/key details for the following items:\n * current_window - gets frame of currently active window and saves it to XP-Pen's config",
"notes" : [
],
"signature" : "XPPenTablet:bindHotkeys(mapping)",
"type" : "Method",
"returns" : [
],
"def" : "XPPenTablet:bindHotkeys(mapping)",
"desc" : "Binds hotkeys for XPPenTablet"
},
{
"parameters" : [
],
"stripped_doc" : [
"Makes sure that all fields have been initialized and reads in configuration file"
],
"name" : "start",
"doc" : "Makes sure that all fields have been initialized and reads in configuration file",
"notes" : [
],
"signature" : "XPPenTablet:start()",
"type" : "Method",
"returns" : [
],
"def" : "XPPenTablet:start()",
"desc" : "Makes sure that all fields have been initialized and reads in configuration file"
},
{
"parameters" : [
" * appName - Name of the application to get coordinates for"
],
"stripped_doc" : [
"Saves X, Y, W, H of sepcified application's main window into XP-Pen's settings file and restarts XP-Pen driver",
""
],
"name" : "updateConfigForApp",
"doc" : "Saves X, Y, W, H of sepcified application's main window into XP-Pen's settings file and restarts XP-Pen driver\n\nParameters:\n * appName - Name of the application to get coordinates for",
"notes" : [
],
"signature" : "XPPenTablet:updateConfigForApp()",
"type" : "Method",
"returns" : [
],
"def" : "XPPenTablet:updateConfigForApp()",
"desc" : "Saves X, Y, W, H of sepcified application's main window into XP-Pen's settings file and restarts XP-Pen driver"
},
{
"parameters" : [
],
"stripped_doc" : [
"Saves X, Y, W, H of currenlty active window into XP-Pen's settings file and restarts XP-Pen driver"
],
"name" : "updateForActiveWindow",
"doc" : "Saves X, Y, W, H of currenlty active window into XP-Pen's settings file and restarts XP-Pen driver",
"notes" : [
],
"signature" : "XPPenTablet:updateForActiveWindow()",
"type" : "Method",
"returns" : [
],
"def" : "XPPenTablet:updateForActiveWindow()",
"desc" : "Saves X, Y, W, H of currenlty active window into XP-Pen's settings file and restarts XP-Pen driver"
}
],
"doc" : "Configure 'Monitor Mapping' settings for XP-Pen tablets without opening settings application\n\nUse Case: You have multiple windows, where you want to draw\/write on, but you want your tablet to\n work only one of those windows. Instead of opening up the PenTabletSettings application\n and manually changing all the values, this spoon is going to configure mapping area\n based on currently active window or based on a window with a given name (e.g. 'Skitch')\n\nSample configuration:\n```\nspoon.SpoonInstall:andUse(\"XPPenTablet\", {\n config = {\n deviceName = \"DEV_6298_3936\",\n configLocation = \"~\/.PenTabletConfig\/com.ugee.PenTabletSettings.plist\"\n },\n hotkeys = {\n current_window = {{\"shift\", \"alt\"}, \"w\"}\n },\n start = true,\n repo = \"https:\/\/github.com\/dimaj\/XPPenTablet.spoon\"\n})\n```\nIf `XPPenTablet.configLocation` is not set, it will have a default value of `~\/.PenTabletConfig\/com.ugee.PenTabletSettings.plist`",
"name" : "XPPenTablet"
}
]