forked from JetBrains/phpstorm-stubs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ming.php
456 lines (304 loc) · 8.61 KB
/
ming.php
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
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
<?php
// Start of ming v.
class SWFShape
{
public function __construct() {}
public function setLine() {}
public function addFill() {}
public function setLeftFill() {}
public function setRightFill() {}
public function movePenTo() {}
public function movePen() {}
public function drawLineTo() {}
public function drawLine() {}
public function drawCurveTo() {}
public function drawCurve() {}
public function drawGlyph() {}
public function drawCircle() {}
public function drawArc() {}
public function drawCubic() {}
public function drawCubicTo() {}
}
class SWFFill
{
public function __construct() {}
public function moveTo() {}
public function scaleTo() {}
public function rotateTo() {}
public function skewXTo() {}
public function skewYTo() {}
}
class SWFGradient
{
public function __construct() {}
public function addEntry() {}
}
class SWFBitmap
{
public function __construct() {}
public function getWidth() {}
public function getHeight() {}
}
class SWFText
{
public function __construct() {}
public function setFont() {}
public function setHeight() {}
public function setSpacing() {}
public function setColor() {}
public function moveTo() {}
public function addString() {}
public function addUTF8String() {}
public function getWidth() {}
public function getUTF8Width() {}
public function getAscent() {}
public function getDescent() {}
public function getLeading() {}
}
class SWFTextField
{
public function __construct() {}
public function setFont() {}
public function setBounds() {}
public function align() {}
public function setHeight() {}
public function setLeftMargin() {}
public function setRightMargin() {}
public function setMargins() {}
public function setIndentation() {}
public function setLineSpacing() {}
public function setColor() {}
public function setName() {}
public function addString() {}
public function setPadding() {}
public function addChars() {}
}
class SWFFont
{
public function __construct() {}
public function getWidth() {}
public function getUTF8Width() {}
public function getAscent() {}
public function getDescent() {}
public function getLeading() {}
public function getShape() {}
}
class SWFDisplayItem
{
public function moveTo() {}
public function move() {}
public function scaleTo() {}
public function scale() {}
public function rotateTo() {}
public function rotate() {}
public function skewXTo() {}
public function skewX() {}
public function skewYTo() {}
public function skewY() {}
public function setMatrix() {}
public function setDepth() {}
public function setRatio() {}
public function addColor() {}
public function multColor() {}
public function setName() {}
public function addAction() {}
public function remove() {}
public function setMaskLevel() {}
public function endMask() {}
public function getX() {}
public function getY() {}
public function getXScale() {}
public function getYScale() {}
public function getXSkew() {}
public function getYSkew() {}
public function getRot() {}
}
class SWFMovie
{
public function __construct() {}
public function nextFrame() {}
public function labelFrame() {}
public function add() {}
public function remove() {}
public function output() {}
public function save() {}
public function saveToFile() {}
public function setBackground() {}
public function setRate() {}
public function setDimension() {}
public function setFrames() {}
public function streamMP3() {}
public function addExport() {}
public function writeExports() {}
public function startSound() {}
public function stopSound() {}
public function importChar() {}
public function importFont() {}
public function addFont() {}
public function protect() {}
public function namedAnchor() {}
}
class SWFButton
{
public function __construct() {}
public function setHit() {}
public function setOver() {}
public function setUp() {}
public function setDown() {}
public function setAction() {}
public function addShape() {}
public function setMenu() {}
public function addAction() {}
public function addSound() {}
}
class SWFAction
{
public function __construct() {}
}
class SWFMorph
{
public function __construct() {}
public function getShape1() {}
public function getShape2() {}
}
class SWFSprite
{
public function __construct() {}
public function add() {}
public function remove() {}
public function nextFrame() {}
public function labelFrame() {}
public function setFrames() {}
public function startSound() {}
public function stopSound() {}
}
class SWFSound
{
public function __construct() {}
}
class SWFFontChar
{
public function addChars() {}
public function addUTF8Chars() {}
}
class SWFSoundInstance
{
public function noMultiple() {}
public function loopInPoint() {}
public function loopOutPoint() {}
public function loopCount() {}
}
class SWFVideoStream
{
public function __construct() {}
public function setdimension() {}
public function getnumframes() {}
}
/**
* Set cubic threshold
* @link https://php.net/manual/en/function.ming-setcubicthreshold.php
* @param int $threshold <p>
* The Threshold. Lower is more accurate, hence larger file size.
* </p>
* @return void
*/
function ming_setcubicthreshold($threshold) {}
/**
* Set the global scaling factor.
* @link https://php.net/manual/en/function.ming-setscale.php
* @param float $scale <p>
* The scale to be set.
* </p>
* @return void
*/
function ming_setscale($scale) {}
/**
* Sets the SWF version
* @link https://php.net/manual/en/function.ming-useswfversion.php
* @param int $version <p>
* SWF version to use.
* </p>
* @return void
*/
function ming_useswfversion($version) {}
/**
* Returns the action flag for keyPress(char)
* @link https://php.net/manual/en/function.ming-keypress.php
* @param string $char
* @return int What the function returns, first on success, then on failure. See
* also the &return.success; entity
*/
function ming_keypress($char) {}
/**
* Use constant pool
* @link https://php.net/manual/en/function.ming-useconstants.php
* @param int $use <p>
* Its description
* </p>
* @return void
*/
function ming_useconstants($use) {}
/**
* Sets the SWF output compression
* @link https://php.net/manual/en/function.ming-setswfcompression.php
* @param int $level <p>
* The new compression level. Should be a value between 1 and 9
* inclusive.
* </p>
* @return void
*/
function ming_setswfcompression($level) {}
define('MING_NEW', 1);
define('MING_ZLIB', 1);
define('SWFBUTTON_HIT', 8);
define('SWFBUTTON_DOWN', 4);
define('SWFBUTTON_OVER', 2);
define('SWFBUTTON_UP', 1);
define('SWFBUTTON_MOUSEUPOUTSIDE', 64);
define('SWFBUTTON_DRAGOVER', 160);
define('SWFBUTTON_DRAGOUT', 272);
define('SWFBUTTON_MOUSEUP', 8);
define('SWFBUTTON_MOUSEDOWN', 4);
define('SWFBUTTON_MOUSEOUT', 2);
define('SWFBUTTON_MOUSEOVER', 1);
define('SWFFILL_RADIAL_GRADIENT', 18);
define('SWFFILL_LINEAR_GRADIENT', 16);
define('SWFFILL_TILED_BITMAP', 64);
define('SWFFILL_CLIPPED_BITMAP', 65);
define('SWFTEXTFIELD_HASLENGTH', 2);
define('SWFTEXTFIELD_NOEDIT', 8);
define('SWFTEXTFIELD_PASSWORD', 16);
define('SWFTEXTFIELD_MULTILINE', 32);
define('SWFTEXTFIELD_WORDWRAP', 64);
define('SWFTEXTFIELD_DRAWBOX', 2048);
define('SWFTEXTFIELD_NOSELECT', 4096);
define('SWFTEXTFIELD_HTML', 512);
define('SWFTEXTFIELD_USEFONT', 256);
define('SWFTEXTFIELD_AUTOSIZE', 16384);
define('SWFTEXTFIELD_ALIGN_LEFT', 0);
define('SWFTEXTFIELD_ALIGN_RIGHT', 1);
define('SWFTEXTFIELD_ALIGN_CENTER', 2);
define('SWFTEXTFIELD_ALIGN_JUSTIFY', 3);
define('SWFACTION_ONLOAD', 1);
define('SWFACTION_ENTERFRAME', 2);
define('SWFACTION_UNLOAD', 4);
define('SWFACTION_MOUSEMOVE', 8);
define('SWFACTION_MOUSEDOWN', 16);
define('SWFACTION_MOUSEUP', 32);
define('SWFACTION_KEYDOWN', 64);
define('SWFACTION_KEYUP', 128);
define('SWFACTION_DATA', 256);
define('SWF_SOUND_NOT_COMPRESSED', 0);
define('SWF_SOUND_ADPCM_COMPRESSED', 16);
define('SWF_SOUND_MP3_COMPRESSED', 32);
define('SWF_SOUND_NOT_COMPRESSED_LE', 48);
define('SWF_SOUND_NELLY_COMPRESSED', 96);
define('SWF_SOUND_5KHZ', 0);
define('SWF_SOUND_11KHZ', 4);
define('SWF_SOUND_22KHZ', 8);
define('SWF_SOUND_44KHZ', 12);
define('SWF_SOUND_8BITS', 0);
define('SWF_SOUND_16BITS', 2);
define('SWF_SOUND_MONO', 0);
define('SWF_SOUND_STEREO', 1);
// End of ming v.