forked from neslib/DelphiBlend2D
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Blend2D.Api.pas
3565 lines (2810 loc) · 124 KB
/
Blend2D.Api.pas
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
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
unit Blend2D.Api;
{ Blend2D for Delphi.
Based on Blend2D beta 12 }
{ This unit is partially generated by Chet:
https://github.com/neslib/Chet }
interface
const
{$IF Defined(WIN32)}
LIB_BLEND2D = 'blend2d_win32.dll';
_PU = '';
{$ELSEIF Defined(WIN64)}
LIB_BLEND2D = 'blend2d_win64.dll';
_PU = '';
{$ELSEIF Defined(MACOS64) and not Defined(IOS)}
{$MESSAGE Error 'Blend2D for macOS not available yet'}
// LIB_BLEND2D = 'libblend2d_mac64.a';
// _PU = '';
{$ELSEIF Defined(IOS64)}
{$MESSAGE Error 'Blend2D for iOS not available yet'}
{$ELSEIF Defined(ANDROID)}
{$MESSAGE Error 'Blend2D for Android not available yet'}
{$ELSE}
{$MESSAGE Error 'Unsupported platform'}
{$ENDIF}
type
PUInt8 = PByte;
PPUInt8 = ^PByte;
PUInt32 = ^UInt32;
PPUTF8Char = ^PUTF8Char;
const
BL_VERSION = (0 shl 16) or (0 shl 8) or 1;
BL_BYTE_ORDER = 1234;
type
BLResult = UInt32;
BLTag = UInt32;
BLUniqueId = UInt64;
BLBitWord = NativeUInt;
type
_PBLTag = ^BLTag;
function BL_MAKE_TAG(const A, B, C, D: Byte): BLTag; inline;
type
PBLFileCore = Pointer;
type
BLDestroyImplFunc = procedure(impl, destroyData: Pointer); cdecl;
type
BLBooleanOp = Integer;
const
BL_BOOLEAN_OP_COPY = 0;
BL_BOOLEAN_OP_AND = 1;
BL_BOOLEAN_OP_OR = 2;
BL_BOOLEAN_OP_XOR = 3;
BL_BOOLEAN_OP_SUB = 4;
BL_BOOLEAN_OP_COUNT = 5;
type
BLByteOrder = Integer;
const
BL_BYTE_ORDER_LE = 0;
BL_BYTE_ORDER_BE = 1;
BL_BYTE_ORDER_NATIVE = BL_BYTE_ORDER_LE;
BL_BYTE_ORDER_SWAPPED = BL_BYTE_ORDER_BE;
type
BLContextProperty = Integer;
const
BL_CONTEXT_PROPERTY_THREAD_COUNT = 0;
BL_CONTEXT_PROPERTY_ACCUMULATED_ERROR_FLAGS = 10;
type
BLContextErrorFlags = Cardinal;
const
BL_CONTEXT_ERROR_FLAG_INVALID_VALUE = $00000001;
BL_CONTEXT_ERROR_FLAG_INVALID_STATE = $00000002;
BL_CONTEXT_ERROR_FLAG_INVALID_GEOMETRY = $00000004;
BL_CONTEXT_ERROR_FLAG_INVALID_GLYPH = $00000008;
BL_CONTEXT_ERROR_FLAG_INVALID_FONT = $00000010;
BL_CONTEXT_ERROR_FLAG_THREAD_POOL_EXHAUSTED = $20000000;
BL_CONTEXT_ERROR_FLAG_OUT_OF_MEMORY = $40000000;
BL_CONTEXT_ERROR_FLAG_UNKNOWN_ERROR = $80000000;
type
BLClipMode = Integer;
const
BL_CLIP_MODE_ALIGNED_RECT = 0;
BL_CLIP_MODE_UNALIGNED_RECT = 1;
BL_CLIP_MODE_MASK = 2;
BL_CLIP_MODE_COUNT = 3;
type
BLCompOp = Integer;
const
BL_COMP_OP_SRC_OVER = 0;
BL_COMP_OP_SRC_COPY = 1;
BL_COMP_OP_SRC_IN = 2;
BL_COMP_OP_SRC_OUT = 3;
BL_COMP_OP_SRC_ATOP = 4;
BL_COMP_OP_DST_OVER = 5;
BL_COMP_OP_DST_COPY = 6;
BL_COMP_OP_DST_IN = 7;
BL_COMP_OP_DST_OUT = 8;
BL_COMP_OP_DST_ATOP = 9;
BL_COMP_OP_XOR = 10;
BL_COMP_OP_CLEAR = 11;
BL_COMP_OP_PLUS = 12;
BL_COMP_OP_MINUS = 13;
BL_COMP_OP_MODULATE = 14;
BL_COMP_OP_MULTIPLY = 15;
BL_COMP_OP_SCREEN = 16;
BL_COMP_OP_OVERLAY = 17;
BL_COMP_OP_DARKEN = 18;
BL_COMP_OP_LIGHTEN = 19;
BL_COMP_OP_COLOR_DODGE = 20;
BL_COMP_OP_COLOR_BURN = 21;
BL_COMP_OP_LINEAR_BURN = 22;
BL_COMP_OP_LINEAR_LIGHT = 23;
BL_COMP_OP_PIN_LIGHT = 24;
BL_COMP_OP_HARD_LIGHT = 25;
BL_COMP_OP_SOFT_LIGHT = 26;
BL_COMP_OP_DIFFERENCE = 27;
BL_COMP_OP_EXCLUSION = 28;
BL_COMP_OP_COUNT = 29;
type
BLContextCreateFlags = Integer;
const
BL_CONTEXT_CREATE_FLAG_FALLBACK_TO_SYNC = $00000008;
BL_CONTEXT_CREATE_FLAG_ISOLATED_THREAD_POOL = $01000000;
BL_CONTEXT_CREATE_FLAG_ISOLATED_JIT = $02000000;
BL_CONTEXT_CREATE_FLAG_OVERRIDE_CPU_FEATURES = $04000000;
type
BLContextFlushFlags = Integer;
const
BL_CONTEXT_FLUSH_SYNC = $80000000;
type
BLContextHint = Integer;
const
BL_CONTEXT_HINT_RENDERING_QUALITY = 0;
BL_CONTEXT_HINT_GRADIENT_QUALITY = 1;
BL_CONTEXT_HINT_PATTERN_QUALITY = 2;
BL_CONTEXT_HINT_COUNT = 8;
type
BLContextOpType = Integer;
const
BL_CONTEXT_OP_TYPE_FILL = 0;
BL_CONTEXT_OP_TYPE_STROKE = 1;
BL_CONTEXT_OP_TYPE_COUNT = 2;
type
BLContextType = Integer;
const
BL_CONTEXT_TYPE_NONE = 0;
BL_CONTEXT_TYPE_DUMMY = 1;
BL_CONTEXT_TYPE_RASTER = 3;
BL_CONTEXT_TYPE_COUNT = 4;
type
BLDataAccessFlags = Integer;
const
BL_DATA_ACCESS_READ = 1;
BL_DATA_ACCESS_WRITE = 2;
BL_DATA_ACCESS_RW = 3;
type
BLDataSourceType = Integer;
const
BL_DATA_SOURCE_TYPE_NONE = 0;
BL_DATA_SOURCE_TYPE_MEMORY = 1;
BL_DATA_SOURCE_TYPE_FILE = 2;
BL_DATA_SOURCE_TYPE_CUSTOM = 3;
BL_DATA_SOURCE_TYPE_COUNT = 4;
type
BLExtendMode = Integer;
const
BL_EXTEND_MODE_PAD = 0;
BL_EXTEND_MODE_REPEAT = 1;
BL_EXTEND_MODE_REFLECT = 2;
BL_EXTEND_MODE_PAD_X_PAD_Y = 0;
BL_EXTEND_MODE_REPEAT_X_REPEAT_Y = 1;
BL_EXTEND_MODE_REFLECT_X_REFLECT_Y = 2;
BL_EXTEND_MODE_PAD_X_REPEAT_Y = 3;
BL_EXTEND_MODE_PAD_X_REFLECT_Y = 4;
BL_EXTEND_MODE_REPEAT_X_PAD_Y = 5;
BL_EXTEND_MODE_REPEAT_X_REFLECT_Y = 6;
BL_EXTEND_MODE_REFLECT_X_PAD_Y = 7;
BL_EXTEND_MODE_REFLECT_X_REPEAT_Y = 8;
BL_EXTEND_MODE_SIMPLE_COUNT = 3;
BL_EXTEND_MODE_COMPLEX_COUNT = 9;
type
BLFillRule = Integer;
const
BL_FILL_RULE_NON_ZERO = 0;
BL_FILL_RULE_EVEN_ODD = 1;
BL_FILL_RULE_COUNT = 2;
type
BLFlattenMode = Integer;
const
BL_FLATTEN_MODE_DEFAULT = 0;
BL_FLATTEN_MODE_RECURSIVE = 1;
type
BLFontDataFlags = Integer;
const
BL_FONT_DATA_FLAG_COLLECTION = 1;
type
BLFontFaceDiagFlags = Integer;
const
BL_FONT_FACE_DIAG_WRONG_NAME_DATA = 1;
BL_FONT_FACE_DIAG_FIXED_NAME_DATA = 2;
BL_FONT_FACE_DIAG_WRONG_KERN_DATA = 4;
BL_FONT_FACE_DIAG_FIXED_KERN_DATA = 8;
BL_FONT_FACE_DIAG_WRONG_CMAP_DATA = 16;
BL_FONT_FACE_DIAG_WRONG_CMAP_FORMAT = 32;
BL_FONT_FACE_DIAG_WRONG_GDEF_DATA = 256;
BL_FONT_FACE_DIAG_WRONG_GPOS_DATA = 1024;
BL_FONT_FACE_DIAG_WRONG_GSUB_DATA = 4096;
type
BLFontFaceFlags = Integer;
const
BL_FONT_FACE_FLAG_TYPOGRAPHIC_NAMES = $00000001;
BL_FONT_FACE_FLAG_TYPOGRAPHIC_METRICS = $00000002;
BL_FONT_FACE_FLAG_CHAR_TO_GLYPH_MAPPING = $00000004;
BL_FONT_FACE_FLAG_HORIZONTAL_METRICS = $00000010;
BL_FONT_FACE_FLAG_VERTICAL_METRICS = $00000020;
BL_FONT_FACE_FLAG_HORIZONTAL_KERNING = $00000040;
BL_FONT_FACE_FLAG_VERTICAL_KERNING = $00000080;
BL_FONT_FACE_FLAG_OPENTYPE_FEATURES = $00000100;
BL_FONT_FACE_FLAG_PANOSE_DATA = $00000200;
BL_FONT_FACE_FLAG_UNICODE_COVERAGE = $00000400;
BL_FONT_FACE_FLAG_BASELINE_Y_EQUALS_0 = $00001000;
BL_FONT_FACE_FLAG_LSB_POINT_X_EQUALS_0 = $00002000;
BL_FONT_FACE_FLAG_VARIATION_SEQUENCES = $10000000;
BL_FONT_FACE_FLAG_OPENTYPE_VARIATIONS = $20000000;
BL_FONT_FACE_FLAG_SYMBOL_FONT = $40000000;
BL_FONT_FACE_FLAG_LAST_RESORT_FONT = $80000000;
type
BLFontFaceType = Integer;
const
BL_FONT_FACE_TYPE_NONE = 0;
BL_FONT_FACE_TYPE_OPENTYPE = 1;
BL_FONT_FACE_TYPE_COUNT = 2;
type
BLFontOutlineType = Integer;
const
BL_FONT_OUTLINE_TYPE_NONE = 0;
BL_FONT_OUTLINE_TYPE_TRUETYPE = 1;
BL_FONT_OUTLINE_TYPE_CFF = 2;
BL_FONT_OUTLINE_TYPE_CFF2 = 3;
type
BLFontStretch = Integer;
const
BL_FONT_STRETCH_ULTRA_CONDENSED = 1;
BL_FONT_STRETCH_EXTRA_CONDENSED = 2;
BL_FONT_STRETCH_CONDENSED = 3;
BL_FONT_STRETCH_SEMI_CONDENSED = 4;
BL_FONT_STRETCH_NORMAL = 5;
BL_FONT_STRETCH_SEMI_EXPANDED = 6;
BL_FONT_STRETCH_EXPANDED = 7;
BL_FONT_STRETCH_EXTRA_EXPANDED = 8;
BL_FONT_STRETCH_ULTRA_EXPANDED = 9;
type
BLFontStringId = Integer;
const
BL_FONT_STRING_COPYRIGHT_NOTICE = 0;
BL_FONT_STRING_FAMILY_NAME = 1;
BL_FONT_STRING_SUBFAMILY_NAME = 2;
BL_FONT_STRING_UNIQUE_IDENTIFIER = 3;
BL_FONT_STRING_FULL_NAME = 4;
BL_FONT_STRING_VERSION_STRING = 5;
BL_FONT_STRING_POST_SCRIPT_NAME = 6;
BL_FONT_STRING_TRADEMARK = 7;
BL_FONT_STRING_MANUFACTURER_NAME = 8;
BL_FONT_STRING_DESIGNER_NAME = 9;
BL_FONT_STRING_DESCRIPTION = 10;
BL_FONT_STRING_VENDOR_URL = 11;
BL_FONT_STRING_DESIGNER_URL = 12;
BL_FONT_STRING_LICENSE_DESCRIPTION = 13;
BL_FONT_STRING_LICENSE_INFO_URL = 14;
BL_FONT_STRING_RESERVED = 15;
BL_FONT_STRING_TYPOGRAPHIC_FAMILY_NAME = 16;
BL_FONT_STRING_TYPOGRAPHIC_SUBFAMILY_NAME = 17;
BL_FONT_STRING_COMPATIBLE_FULL_NAME = 18;
BL_FONT_STRING_SAMPLE_TEXT = 19;
BL_FONT_STRING_POST_SCRIPT_CID_NAME = 20;
BL_FONT_STRING_WWS_FAMILY_NAME = 21;
BL_FONT_STRING_WWS_SUBFAMILY_NAME = 22;
BL_FONT_STRING_LIGHT_BACKGROUND_PALETTE = 23;
BL_FONT_STRING_DARK_BACKGROUND_PALETTE = 24;
BL_FONT_STRING_VARIATIONS_POST_SCRIPT_PREFIX = 25;
BL_FONT_STRING_COMMON_COUNT = 26;
BL_FONT_STRING_CUSTOM_START_INDEX = 255;
type
BLFontStyle = Integer;
const
BL_FONT_STYLE_NORMAL = 0;
BL_FONT_STYLE_OBLIQUE = 1;
BL_FONT_STYLE_ITALIC = 2;
BL_FONT_STYLE_COUNT = 3;
type
BLFontUnicodeCoverageIndex = Integer;
const
BL_FONT_UC_INDEX_BASIC_LATIN = 0;
BL_FONT_UC_INDEX_LATIN1_SUPPLEMENT = 1;
BL_FONT_UC_INDEX_LATIN_EXTENDED_A = 2;
BL_FONT_UC_INDEX_LATIN_EXTENDED_B = 3;
BL_FONT_UC_INDEX_IPA_EXTENSIONS = 4;
BL_FONT_UC_INDEX_SPACING_MODIFIER_LETTERS = 5;
BL_FONT_UC_INDEX_COMBINING_DIACRITICAL_MARKS = 6;
BL_FONT_UC_INDEX_GREEK_AND_COPTIC = 7;
BL_FONT_UC_INDEX_COPTIC = 8;
BL_FONT_UC_INDEX_CYRILLIC = 9;
BL_FONT_UC_INDEX_ARMENIAN = 10;
BL_FONT_UC_INDEX_HEBREW = 11;
BL_FONT_UC_INDEX_VAI = 12;
BL_FONT_UC_INDEX_ARABIC = 13;
BL_FONT_UC_INDEX_NKO = 14;
BL_FONT_UC_INDEX_DEVANAGARI = 15;
BL_FONT_UC_INDEX_BENGALI = 16;
BL_FONT_UC_INDEX_GURMUKHI = 17;
BL_FONT_UC_INDEX_GUJARATI = 18;
BL_FONT_UC_INDEX_ORIYA = 19;
BL_FONT_UC_INDEX_TAMIL = 20;
BL_FONT_UC_INDEX_TELUGU = 21;
BL_FONT_UC_INDEX_KANNADA = 22;
BL_FONT_UC_INDEX_MALAYALAM = 23;
BL_FONT_UC_INDEX_THAI = 24;
BL_FONT_UC_INDEX_LAO = 25;
BL_FONT_UC_INDEX_GEORGIAN = 26;
BL_FONT_UC_INDEX_BALINESE = 27;
BL_FONT_UC_INDEX_HANGUL_JAMO = 28;
BL_FONT_UC_INDEX_LATIN_EXTENDED_ADDITIONAL = 29;
BL_FONT_UC_INDEX_GREEK_EXTENDED = 30;
BL_FONT_UC_INDEX_GENERAL_PUNCTUATION = 31;
BL_FONT_UC_INDEX_SUPERSCRIPTS_AND_SUBSCRIPTS = 32;
BL_FONT_UC_INDEX_CURRENCY_SYMBOLS = 33;
BL_FONT_UC_INDEX_COMBINING_DIACRITICAL_MARKS_FOR_SYMBOLS = 34;
BL_FONT_UC_INDEX_LETTERLIKE_SYMBOLS = 35;
BL_FONT_UC_INDEX_NUMBER_FORMS = 36;
BL_FONT_UC_INDEX_ARROWS = 37;
BL_FONT_UC_INDEX_MATHEMATICAL_OPERATORS = 38;
BL_FONT_UC_INDEX_MISCELLANEOUS_TECHNICAL = 39;
BL_FONT_UC_INDEX_CONTROL_PICTURES = 40;
BL_FONT_UC_INDEX_OPTICAL_CHARACTER_RECOGNITION = 41;
BL_FONT_UC_INDEX_ENCLOSED_ALPHANUMERICS = 42;
BL_FONT_UC_INDEX_BOX_DRAWING = 43;
BL_FONT_UC_INDEX_BLOCK_ELEMENTS = 44;
BL_FONT_UC_INDEX_GEOMETRIC_SHAPES = 45;
BL_FONT_UC_INDEX_MISCELLANEOUS_SYMBOLS = 46;
BL_FONT_UC_INDEX_DINGBATS = 47;
BL_FONT_UC_INDEX_CJK_SYMBOLS_AND_PUNCTUATION = 48;
BL_FONT_UC_INDEX_HIRAGANA = 49;
BL_FONT_UC_INDEX_KATAKANA = 50;
BL_FONT_UC_INDEX_BOPOMOFO = 51;
BL_FONT_UC_INDEX_HANGUL_COMPATIBILITY_JAMO = 52;
BL_FONT_UC_INDEX_PHAGS_PA = 53;
BL_FONT_UC_INDEX_ENCLOSED_CJK_LETTERS_AND_MONTHS = 54;
BL_FONT_UC_INDEX_CJK_COMPATIBILITY = 55;
BL_FONT_UC_INDEX_HANGUL_SYLLABLES = 56;
BL_FONT_UC_INDEX_NON_PLANE = 57;
BL_FONT_UC_INDEX_PHOENICIAN = 58;
BL_FONT_UC_INDEX_CJK_UNIFIED_IDEOGRAPHS = 59;
BL_FONT_UC_INDEX_PRIVATE_USE_PLANE0 = 60;
BL_FONT_UC_INDEX_CJK_STROKES = 61;
BL_FONT_UC_INDEX_ALPHABETIC_PRESENTATION_FORMS = 62;
BL_FONT_UC_INDEX_ARABIC_PRESENTATION_FORMS_A = 63;
BL_FONT_UC_INDEX_COMBINING_HALF_MARKS = 64;
BL_FONT_UC_INDEX_VERTICAL_FORMS = 65;
BL_FONT_UC_INDEX_SMALL_FORM_VARIANTS = 66;
BL_FONT_UC_INDEX_ARABIC_PRESENTATION_FORMS_B = 67;
BL_FONT_UC_INDEX_HALFWIDTH_AND_FULLWIDTH_FORMS = 68;
BL_FONT_UC_INDEX_SPECIALS = 69;
BL_FONT_UC_INDEX_TIBETAN = 70;
BL_FONT_UC_INDEX_SYRIAC = 71;
BL_FONT_UC_INDEX_THAANA = 72;
BL_FONT_UC_INDEX_SINHALA = 73;
BL_FONT_UC_INDEX_MYANMAR = 74;
BL_FONT_UC_INDEX_ETHIOPIC = 75;
BL_FONT_UC_INDEX_CHEROKEE = 76;
BL_FONT_UC_INDEX_UNIFIED_CANADIAN_ABORIGINAL_SYLLABICS = 77;
BL_FONT_UC_INDEX_OGHAM = 78;
BL_FONT_UC_INDEX_RUNIC = 79;
BL_FONT_UC_INDEX_KHMER = 80;
BL_FONT_UC_INDEX_MONGOLIAN = 81;
BL_FONT_UC_INDEX_BRAILLE_PATTERNS = 82;
BL_FONT_UC_INDEX_YI_SYLLABLES_AND_RADICALS = 83;
BL_FONT_UC_INDEX_TAGALOG_HANUNOO_BUHID_TAGBANWA = 84;
BL_FONT_UC_INDEX_OLD_ITALIC = 85;
BL_FONT_UC_INDEX_GOTHIC = 86;
BL_FONT_UC_INDEX_DESERET = 87;
BL_FONT_UC_INDEX_MUSICAL_SYMBOLS = 88;
BL_FONT_UC_INDEX_MATHEMATICAL_ALPHANUMERIC_SYMBOLS = 89;
BL_FONT_UC_INDEX_PRIVATE_USE_PLANE_15_16 = 90;
BL_FONT_UC_INDEX_VARIATION_SELECTORS = 91;
BL_FONT_UC_INDEX_TAGS = 92;
BL_FONT_UC_INDEX_LIMBU = 93;
BL_FONT_UC_INDEX_TAI_LE = 94;
BL_FONT_UC_INDEX_NEW_TAI_LUE = 95;
BL_FONT_UC_INDEX_BUGINESE = 96;
BL_FONT_UC_INDEX_GLAGOLITIC = 97;
BL_FONT_UC_INDEX_TIFINAGH = 98;
BL_FONT_UC_INDEX_YIJING_HEXAGRAM_SYMBOLS = 99;
BL_FONT_UC_INDEX_SYLOTI_NAGRI = 100;
BL_FONT_UC_INDEX_LINEAR_B_SYLLABARY_AND_IDEOGRAMS = 101;
BL_FONT_UC_INDEX_ANCIENT_GREEK_NUMBERS = 102;
BL_FONT_UC_INDEX_UGARITIC = 103;
BL_FONT_UC_INDEX_OLD_PERSIAN = 104;
BL_FONT_UC_INDEX_SHAVIAN = 105;
BL_FONT_UC_INDEX_OSMANYA = 106;
BL_FONT_UC_INDEX_CYPRIOT_SYLLABARY = 107;
BL_FONT_UC_INDEX_KHAROSHTHI = 108;
BL_FONT_UC_INDEX_TAI_XUAN_JING_SYMBOLS = 109;
BL_FONT_UC_INDEX_CUNEIFORM = 110;
BL_FONT_UC_INDEX_COUNTING_ROD_NUMERALS = 111;
BL_FONT_UC_INDEX_SUNDANESE = 112;
BL_FONT_UC_INDEX_LEPCHA = 113;
BL_FONT_UC_INDEX_OL_CHIKI = 114;
BL_FONT_UC_INDEX_SAURASHTRA = 115;
BL_FONT_UC_INDEX_KAYAH_LI = 116;
BL_FONT_UC_INDEX_REJANG = 117;
BL_FONT_UC_INDEX_CHAM = 118;
BL_FONT_UC_INDEX_ANCIENT_SYMBOLS = 119;
BL_FONT_UC_INDEX_PHAISTOS_DISC = 120;
BL_FONT_UC_INDEX_CARIAN_LYCIAN_LYDIAN = 121;
BL_FONT_UC_INDEX_DOMINO_AND_MAHJONG_TILES = 122;
BL_FONT_UC_INDEX_INTERNAL_USAGE_123 = 123;
BL_FONT_UC_INDEX_INTERNAL_USAGE_124 = 124;
BL_FONT_UC_INDEX_INTERNAL_USAGE_125 = 125;
BL_FONT_UC_INDEX_INTERNAL_USAGE_126 = 126;
BL_FONT_UC_INDEX_INTERNAL_USAGE_127 = 127;
type
BLFontWeight = Integer;
const
BL_FONT_WEIGHT_THIN = 100;
BL_FONT_WEIGHT_EXTRA_LIGHT = 200;
BL_FONT_WEIGHT_LIGHT = 300;
BL_FONT_WEIGHT_SEMI_LIGHT = 350;
BL_FONT_WEIGHT_NORMAL = 400;
BL_FONT_WEIGHT_MEDIUM = 500;
BL_FONT_WEIGHT_SEMI_BOLD = 600;
BL_FONT_WEIGHT_BOLD = 700;
BL_FONT_WEIGHT_EXTRA_BOLD = 800;
BL_FONT_WEIGHT_BLACK = 900;
BL_FONT_WEIGHT_EXTRA_BLACK = 950;
type
BLFormat = Integer;
const
BL_FORMAT_NONE = 0;
BL_FORMAT_PRGB32 = 1;
BL_FORMAT_XRGB32 = 2;
BL_FORMAT_A8 = 3;
BL_FORMAT_COUNT = 4;
BL_FORMAT_RESERVED_COUNT = 16;
type
BLFormatFlags = Integer;
const
BL_FORMAT_FLAG_RGB = 1;
BL_FORMAT_FLAG_ALPHA = 2;
BL_FORMAT_FLAG_RGBA = 3;
BL_FORMAT_FLAG_LUM = 4;
BL_FORMAT_FLAG_LUMA = 6;
BL_FORMAT_FLAG_INDEXED = 16;
BL_FORMAT_FLAG_PREMULTIPLIED = 256;
BL_FORMAT_FLAG_BYTE_SWAP = 512;
BL_FORMAT_FLAG_BYTE_ALIGNED = 65536;
BL_FORMAT_FLAG_UNDEFINED_BITS = 131072;
BL_FORMAT_FLAG_LE = 0;
BL_FORMAT_FLAG_BE = 512;
type
BLGeometryDirection = Integer;
const
BL_GEOMETRY_DIRECTION_NONE = 0;
BL_GEOMETRY_DIRECTION_CW = 1;
BL_GEOMETRY_DIRECTION_CCW = 2;
type
BLGeometryType = Integer;
const
BL_GEOMETRY_TYPE_NONE = 0;
BL_GEOMETRY_TYPE_BOXI = 1;
BL_GEOMETRY_TYPE_BOXD = 2;
BL_GEOMETRY_TYPE_RECTI = 3;
BL_GEOMETRY_TYPE_RECTD = 4;
BL_GEOMETRY_TYPE_CIRCLE = 5;
BL_GEOMETRY_TYPE_ELLIPSE = 6;
BL_GEOMETRY_TYPE_ROUND_RECT = 7;
BL_GEOMETRY_TYPE_ARC = 8;
BL_GEOMETRY_TYPE_CHORD = 9;
BL_GEOMETRY_TYPE_PIE = 10;
BL_GEOMETRY_TYPE_LINE = 11;
BL_GEOMETRY_TYPE_TRIANGLE = 12;
BL_GEOMETRY_TYPE_POLYLINEI = 13;
BL_GEOMETRY_TYPE_POLYLINED = 14;
BL_GEOMETRY_TYPE_POLYGONI = 15;
BL_GEOMETRY_TYPE_POLYGOND = 16;
BL_GEOMETRY_TYPE_ARRAY_VIEW_BOXI = 17;
BL_GEOMETRY_TYPE_ARRAY_VIEW_BOXD = 18;
BL_GEOMETRY_TYPE_ARRAY_VIEW_RECTI = 19;
BL_GEOMETRY_TYPE_ARRAY_VIEW_RECTD = 20;
BL_GEOMETRY_TYPE_PATH = 21;
BL_GEOMETRY_TYPE_REGION = 22;
BL_GEOMETRY_TYPE_COUNT = 23;
type
BLGlyphPlacementType = Integer;
const
BL_GLYPH_PLACEMENT_TYPE_NONE = 0;
BL_GLYPH_PLACEMENT_TYPE_ADVANCE_OFFSET = 1;
BL_GLYPH_PLACEMENT_TYPE_DESIGN_UNITS = 2;
BL_GLYPH_PLACEMENT_TYPE_USER_UNITS = 3;
BL_GLYPH_PLACEMENT_TYPE_ABSOLUTE_UNITS = 4;
type
BLGlyphRunFlags = Integer;
const
BL_GLYPH_RUN_FLAG_UCS4_CONTENT = $10000000;
BL_GLYPH_RUN_FLAG_INVALID_TEXT = $20000000;
BL_GLYPH_RUN_FLAG_UNDEFINED_GLYPHS = $40000000;
BL_GLYPH_RUN_FLAG_INVALID_FONT_DATA = $80000000;
type
BLGradientQuality = Integer;
const
BL_GRADIENT_QUALITY_NEAREST = 0;
BL_GRADIENT_QUALITY_COUNT = 1;
type
BLGradientType = Integer;
const
BL_GRADIENT_TYPE_LINEAR = 0;
BL_GRADIENT_TYPE_RADIAL = 1;
BL_GRADIENT_TYPE_CONICAL = 2;
BL_GRADIENT_TYPE_COUNT = 3;
type
BLGradientValue = Integer;
const
BL_GRADIENT_VALUE_COMMON_X0 = 0;
BL_GRADIENT_VALUE_COMMON_Y0 = 1;
BL_GRADIENT_VALUE_COMMON_X1 = 2;
BL_GRADIENT_VALUE_COMMON_Y1 = 3;
BL_GRADIENT_VALUE_RADIAL_R0 = 4;
BL_GRADIENT_VALUE_CONICAL_ANGLE = 2;
BL_GRADIENT_VALUE_COUNT = 6;
type
BLHitTest = Integer;
const
BL_HIT_TEST_IN = 0;
BL_HIT_TEST_PART = 1;
BL_HIT_TEST_OUT = 2;
BL_HIT_TEST_INVALID = -1;
type
BLImageInfoFlags = Integer;
const
BL_IMAGE_INFO_FLAG_PROGRESSIVE = 1;
type
BLImageScaleFilter = Integer;
const
BL_IMAGE_SCALE_FILTER_NONE = 0;
BL_IMAGE_SCALE_FILTER_NEAREST = 1;
BL_IMAGE_SCALE_FILTER_BILINEAR = 2;
BL_IMAGE_SCALE_FILTER_BICUBIC = 3;
BL_IMAGE_SCALE_FILTER_BELL = 4;
BL_IMAGE_SCALE_FILTER_GAUSS = 5;
BL_IMAGE_SCALE_FILTER_HERMITE = 6;
BL_IMAGE_SCALE_FILTER_HANNING = 7;
BL_IMAGE_SCALE_FILTER_CATROM = 8;
BL_IMAGE_SCALE_FILTER_BESSEL = 9;
BL_IMAGE_SCALE_FILTER_SINC = 10;
BL_IMAGE_SCALE_FILTER_LANCZOS = 11;
BL_IMAGE_SCALE_FILTER_BLACKMAN = 12;
BL_IMAGE_SCALE_FILTER_MITCHELL = 13;
BL_IMAGE_SCALE_FILTER_USER = 14;
BL_IMAGE_SCALE_FILTER_COUNT = 15;
type
BLImplTraits = Integer;
const
BL_IMPL_TRAIT_MUTABLE = 1;
BL_IMPL_TRAIT_IMMUTABLE = 2;
BL_IMPL_TRAIT_EXTERNAL = 4;
BL_IMPL_TRAIT_FOREIGN = 8;
BL_IMPL_TRAIT_VIRT = 16;
BL_IMPL_TRAIT_NULL = 128;
type
BLImplType = Integer;
const
BL_IMPL_TYPE_NULL = 0;
BL_IMPL_TYPE_ARRAY_VAR = 1;
BL_IMPL_TYPE_ARRAY_I8 = 2;
BL_IMPL_TYPE_ARRAY_U8 = 3;
BL_IMPL_TYPE_ARRAY_I16 = 4;
BL_IMPL_TYPE_ARRAY_U16 = 5;
BL_IMPL_TYPE_ARRAY_I32 = 6;
BL_IMPL_TYPE_ARRAY_U32 = 7;
BL_IMPL_TYPE_ARRAY_I64 = 8;
BL_IMPL_TYPE_ARRAY_U64 = 9;
BL_IMPL_TYPE_ARRAY_F32 = 10;
BL_IMPL_TYPE_ARRAY_F64 = 11;
BL_IMPL_TYPE_ARRAY_STRUCT_1 = 12;
BL_IMPL_TYPE_ARRAY_STRUCT_2 = 13;
BL_IMPL_TYPE_ARRAY_STRUCT_3 = 14;
BL_IMPL_TYPE_ARRAY_STRUCT_4 = 15;
BL_IMPL_TYPE_ARRAY_STRUCT_6 = 16;
BL_IMPL_TYPE_ARRAY_STRUCT_8 = 17;
BL_IMPL_TYPE_ARRAY_STRUCT_10 = 18;
BL_IMPL_TYPE_ARRAY_STRUCT_12 = 19;
BL_IMPL_TYPE_ARRAY_STRUCT_16 = 20;
BL_IMPL_TYPE_ARRAY_STRUCT_20 = 21;
BL_IMPL_TYPE_ARRAY_STRUCT_24 = 22;
BL_IMPL_TYPE_ARRAY_STRUCT_32 = 23;
BL_IMPL_TYPE_BIT_ARRAY = 32;
BL_IMPL_TYPE_BIT_SET = 33;
BL_IMPL_TYPE_STRING = 39;
BL_IMPL_TYPE_PATH = 40;
BL_IMPL_TYPE_REGION = 43;
BL_IMPL_TYPE_IMAGE = 44;
BL_IMPL_TYPE_IMAGE_CODEC = 45;
BL_IMPL_TYPE_IMAGE_DECODER = 46;
BL_IMPL_TYPE_IMAGE_ENCODER = 47;
BL_IMPL_TYPE_GRADIENT = 48;
BL_IMPL_TYPE_PATTERN = 49;
BL_IMPL_TYPE_CONTEXT = 55;
BL_IMPL_TYPE_FONT = 56;
BL_IMPL_TYPE_FONT_FACE = 57;
BL_IMPL_TYPE_FONT_DATA = 58;
BL_IMPL_TYPE_FONT_MANAGER = 59;
BL_IMPL_TYPE_FONT_FEATURE_OPTIONS = 60;
BL_IMPL_TYPE_FONT_VARIATION_OPTIONS = 61;
BL_IMPL_TYPE_COUNT = 64;
type
BLMatrix2DOp = Integer;
const
BL_MATRIX2D_OP_RESET = 0;
BL_MATRIX2D_OP_ASSIGN = 1;
BL_MATRIX2D_OP_TRANSLATE = 2;
BL_MATRIX2D_OP_SCALE = 3;
BL_MATRIX2D_OP_SKEW = 4;
BL_MATRIX2D_OP_ROTATE = 5;
BL_MATRIX2D_OP_ROTATE_PT = 6;
BL_MATRIX2D_OP_TRANSFORM = 7;
BL_MATRIX2D_OP_POST_TRANSLATE = 8;
BL_MATRIX2D_OP_POST_SCALE = 9;
BL_MATRIX2D_OP_POST_SKEW = 10;
BL_MATRIX2D_OP_POST_ROTATE = 11;
BL_MATRIX2D_OP_POST_ROTATE_PT = 12;
BL_MATRIX2D_OP_POST_TRANSFORM = 13;
BL_MATRIX2D_OP_COUNT = 14;
type
BLMatrix2DType = Integer;
const
BL_MATRIX2D_TYPE_IDENTITY = 0;
BL_MATRIX2D_TYPE_TRANSLATE = 1;
BL_MATRIX2D_TYPE_SCALE = 2;
BL_MATRIX2D_TYPE_SWAP = 3;
BL_MATRIX2D_TYPE_AFFINE = 4;
BL_MATRIX2D_TYPE_INVALID = 5;
BL_MATRIX2D_TYPE_COUNT = 6;
type
BLMatrix2DValue = Integer;
const
BL_MATRIX2D_VALUE_00 = 0;
BL_MATRIX2D_VALUE_01 = 1;
BL_MATRIX2D_VALUE_10 = 2;
BL_MATRIX2D_VALUE_11 = 3;
BL_MATRIX2D_VALUE_20 = 4;
BL_MATRIX2D_VALUE_21 = 5;
BL_MATRIX2D_VALUE_COUNT = 6;
type
BLModifyOp = Integer;
const
BL_MODIFY_OP_ASSIGN_FIT = 0;
BL_MODIFY_OP_ASSIGN_GROW = 1;
BL_MODIFY_OP_APPEND_FIT = 2;
BL_MODIFY_OP_APPEND_GROW = 3;
BL_MODIFY_OP_COUNT = 4;
type
BLOffsetMode = Integer;
const
BL_OFFSET_MODE_DEFAULT = 0;
BL_OFFSET_MODE_ITERATIVE = 1;
type
BLPathCmd = Integer;
const
BL_PATH_CMD_MOVE = 0;
BL_PATH_CMD_ON = 1;
BL_PATH_CMD_QUAD = 2;
BL_PATH_CMD_CUBIC = 3;
BL_PATH_CMD_CLOSE = 4;
BL_PATH_CMD_COUNT = 5;
type
BLPathCmdExtra = Integer;
const
BL_PATH_CMD_PRESERVE = $FFFFFFFF;
type
BLPathFlags = Integer;
const
BL_PATH_FLAG_EMPTY = $1;
BL_PATH_FLAG_MULTIPLE = $2;
BL_PATH_FLAG_QUADS = $4;
BL_PATH_FLAG_CUBICS = $8;
BL_PATH_FLAG_INVALID = $40000000;
BL_PATH_FLAG_DIRTY = $80000000;
type
BLPathReverseMode = Integer;
const
BL_PATH_REVERSE_MODE_COMPLETE = 0;
BL_PATH_REVERSE_MODE_SEPARATE = 1;
BL_PATH_REVERSE_MODE_COUNT = 2;
type
BLPatternQuality = Integer;
const
BL_PATTERN_QUALITY_NEAREST = 0;
BL_PATTERN_QUALITY_BILINEAR = 1;
BL_PATTERN_QUALITY_COUNT = 2;
type
BLPixelConverterCreateFlags = Integer;
const
BL_PIXEL_CONVERTER_CREATE_FLAG_DONT_COPY_PALETTE = 1;
BL_PIXEL_CONVERTER_CREATE_FLAG_ALTERABLE_PALETTE = 2;
BL_PIXEL_CONVERTER_CREATE_FLAG_NO_MULTI_STEP = 4;
type
BLRegionType = Integer;
const
BL_REGION_TYPE_EMPTY = 0;
BL_REGION_TYPE_RECT = 1;
BL_REGION_TYPE_COMPLEX = 2;
BL_REGION_TYPE_COUNT = 3;
type
BLRenderingQuality = Integer;
const
BL_RENDERING_QUALITY_ANTIALIAS = 0;
BL_RENDERING_QUALITY_COUNT = 1;
type
BLResultCode = Integer;
const
BL_SUCCESS = 0;
BL_ERROR_START_INDEX = 65536;
BL_ERROR_OUT_OF_MEMORY = 65536;
BL_ERROR_INVALID_VALUE = 65537;
BL_ERROR_INVALID_STATE = 65538;
BL_ERROR_INVALID_HANDLE = 65539;
BL_ERROR_VALUE_TOO_LARGE = 65540;
BL_ERROR_NOT_INITIALIZED = 65541;
BL_ERROR_NOT_IMPLEMENTED = 65542;
BL_ERROR_NOT_PERMITTED = 65543;
BL_ERROR_IO = 65544;
BL_ERROR_BUSY = 65545;
BL_ERROR_INTERRUPTED = 65546;
BL_ERROR_TRY_AGAIN = 65547;
BL_ERROR_TIMED_OUT = 65548;
BL_ERROR_BROKEN_PIPE = 65549;
BL_ERROR_INVALID_SEEK = 65550;
BL_ERROR_SYMLINK_LOOP = 65551;
BL_ERROR_FILE_TOO_LARGE = 65552;
BL_ERROR_ALREADY_EXISTS = 65553;
BL_ERROR_ACCESS_DENIED = 65554;
BL_ERROR_MEDIA_CHANGED = 65555;
BL_ERROR_READ_ONLY_FS = 65556;
BL_ERROR_NO_DEVICE = 65557;
BL_ERROR_NO_ENTRY = 65558;
BL_ERROR_NO_MEDIA = 65559;
BL_ERROR_NO_MORE_DATA = 65560;
BL_ERROR_NO_MORE_FILES = 65561;
BL_ERROR_NO_SPACE_LEFT = 65562;
BL_ERROR_NOT_EMPTY = 65563;
BL_ERROR_NOT_FILE = 65564;
BL_ERROR_NOT_DIRECTORY = 65565;
BL_ERROR_NOT_SAME_DEVICE = 65566;
BL_ERROR_NOT_BLOCK_DEVICE = 65567;
BL_ERROR_INVALID_FILE_NAME = 65568;
BL_ERROR_FILE_NAME_TOO_LONG = 65569;
BL_ERROR_TOO_MANY_OPEN_FILES = 65570;
BL_ERROR_TOO_MANY_OPEN_FILES_BY_OS = 65571;
BL_ERROR_TOO_MANY_LINKS = 65572;
BL_ERROR_TOO_MANY_THREADS = 65573;
BL_ERROR_THREAD_POOL_EXHAUSTED = 65574;
BL_ERROR_FILE_EMPTY = 65575;
BL_ERROR_OPEN_FAILED = 65576;
BL_ERROR_NOT_ROOT_DEVICE = 65577;
BL_ERROR_UNKNOWN_SYSTEM_ERROR = 65578;
BL_ERROR_INVALID_ALIGNMENT = 65579;
BL_ERROR_INVALID_SIGNATURE = 65580;
BL_ERROR_INVALID_DATA = 65581;
BL_ERROR_INVALID_STRING = 65582;
BL_ERROR_DATA_TRUNCATED = 65583;
BL_ERROR_DATA_TOO_LARGE = 65584;
BL_ERROR_DECOMPRESSION_FAILED = 65585;
BL_ERROR_INVALID_GEOMETRY = 65586;
BL_ERROR_NO_MATCHING_VERTEX = 65587;
BL_ERROR_NO_MATCHING_COOKIE = 65588;
BL_ERROR_NO_STATES_TO_RESTORE = 65589;
BL_ERROR_IMAGE_TOO_LARGE = 65590;
BL_ERROR_IMAGE_NO_MATCHING_CODEC = 65591;
BL_ERROR_IMAGE_UNKNOWN_FILE_FORMAT = 65592;
BL_ERROR_IMAGE_DECODER_NOT_PROVIDED = 65593;
BL_ERROR_IMAGE_ENCODER_NOT_PROVIDED = 65594;
BL_ERROR_PNG_MULTIPLE_IHDR = 65595;
BL_ERROR_PNG_INVALID_IDAT = 65596;
BL_ERROR_PNG_INVALID_IEND = 65597;
BL_ERROR_PNG_INVALID_PLTE = 65598;
BL_ERROR_PNG_INVALID_TRNS = 65599;
BL_ERROR_PNG_INVALID_FILTER = 65600;
BL_ERROR_JPEG_UNSUPPORTED_FEATURE = 65601;
BL_ERROR_JPEG_INVALID_SOS = 65602;
BL_ERROR_JPEG_INVALID_SOF = 65603;
BL_ERROR_JPEG_MULTIPLE_SOF = 65604;
BL_ERROR_JPEG_UNSUPPORTED_SOF = 65605;
BL_ERROR_FONT_NOT_INITIALIZED = 65606;
BL_ERROR_FONT_NO_MATCH = 65607;
BL_ERROR_FONT_NO_CHARACTER_MAPPING = 65608;
BL_ERROR_FONT_MISSING_IMPORTANT_TABLE = 65609;
BL_ERROR_FONT_FEATURE_NOT_AVAILABLE = 65610;
BL_ERROR_FONT_CFF_INVALID_DATA = 65611;
BL_ERROR_FONT_PROGRAM_TERMINATED = 65612;
BL_ERROR_INVALID_GLYPH = 65613;
type
BLRuntimeLimits = Integer;
const
BL_RUNTIME_MAX_IMAGE_SIZE = 65535;
BL_RUNTIME_MAX_THREAD_COUNT = 32;
type
BLRuntimeInfoType = Integer;
const
BL_RUNTIME_INFO_TYPE_BUILD = 0;
BL_RUNTIME_INFO_TYPE_SYSTEM = 1;
BL_RUNTIME_INFO_TYPE_RESOURCE = 2;
BL_RUNTIME_INFO_TYPE_COUNT = 3;
type
BLRuntimeBuildType = Integer;
const
BL_RUNTIME_BUILD_TYPE_DEBUG = 0;
BL_RUNTIME_BUILD_TYPE_RELEASE = 1;
type
BLRuntimeCpuArch = Integer;
const
BL_RUNTIME_CPU_ARCH_UNKNOWN = 0;
BL_RUNTIME_CPU_ARCH_X86 = 1;
BL_RUNTIME_CPU_ARCH_ARM = 2;
BL_RUNTIME_CPU_ARCH_MIPS = 3;
type
BLRuntimeCpuFeatures = Integer;
const
BL_RUNTIME_CPU_FEATURE_X86_SSE2 = 1;
BL_RUNTIME_CPU_FEATURE_X86_SSE3 = 2;
BL_RUNTIME_CPU_FEATURE_X86_SSSE3 = 4;
BL_RUNTIME_CPU_FEATURE_X86_SSE4_1 = 8;
BL_RUNTIME_CPU_FEATURE_X86_SSE4_2 = 16;
BL_RUNTIME_CPU_FEATURE_X86_AVX = 32;
BL_RUNTIME_CPU_FEATURE_X86_AVX2 = 64;
type
BLRuntimeCleanupFlags = Integer;
const
BL_RUNTIME_CLEANUP_OBJECT_POOL = 1;
BL_RUNTIME_CLEANUP_ZEROED_POOL = 2;
BL_RUNTIME_CLEANUP_THREAD_POOL = 16;
BL_RUNTIME_CLEANUP_EVERYTHING = $FFFFFFFF;
type
BLStrokeCap = Integer;
const
BL_STROKE_CAP_BUTT = 0;
BL_STROKE_CAP_SQUARE = 1;
BL_STROKE_CAP_ROUND = 2;
BL_STROKE_CAP_ROUND_REV = 3;
BL_STROKE_CAP_TRIANGLE = 4;
BL_STROKE_CAP_TRIANGLE_REV = 5;
BL_STROKE_CAP_COUNT = 6;
type
BLStrokeCapPosition = Integer;
const
BL_STROKE_CAP_POSITION_START = 0;
BL_STROKE_CAP_POSITION_END = 1;
BL_STROKE_CAP_POSITION_COUNT = 2;
type
BLStrokeJoin = Integer;
const
BL_STROKE_JOIN_MITER_CLIP = 0;
BL_STROKE_JOIN_MITER_BEVEL = 1;
BL_STROKE_JOIN_MITER_ROUND = 2;
BL_STROKE_JOIN_BEVEL = 3;
BL_STROKE_JOIN_ROUND = 4;
BL_STROKE_JOIN_COUNT = 5;