-
Notifications
You must be signed in to change notification settings - Fork 532
/
HarfBuzzApi.generated.cs
6052 lines (5506 loc) · 326 KB
/
HarfBuzzApi.generated.cs
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
using System;
using System.Runtime.InteropServices;
#region Namespaces
#endregion
#region Class declarations
using hb_blob_t = System.IntPtr;
using hb_buffer_t = System.IntPtr;
using hb_face_t = System.IntPtr;
using hb_font_funcs_t = System.IntPtr;
using hb_font_t = System.IntPtr;
using hb_language_impl_t = System.IntPtr;
using hb_map_t = System.IntPtr;
using hb_set_t = System.IntPtr;
using hb_shape_plan_t = System.IntPtr;
using hb_unicode_funcs_t = System.IntPtr;
#endregion
#region Functions
namespace HarfBuzzSharp
{
internal unsafe partial class HarfBuzzApi
{
#region hb-blob.h
// extern hb_blob_t* hb_blob_copy_writable_or_fail(hb_blob_t* blob)
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
internal static extern hb_blob_t hb_blob_copy_writable_or_fail (hb_blob_t blob);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate hb_blob_t hb_blob_copy_writable_or_fail (hb_blob_t blob);
}
private static Delegates.hb_blob_copy_writable_or_fail hb_blob_copy_writable_or_fail_delegate;
internal static hb_blob_t hb_blob_copy_writable_or_fail (hb_blob_t blob) =>
(hb_blob_copy_writable_or_fail_delegate ??= GetSymbol<Delegates.hb_blob_copy_writable_or_fail> ("hb_blob_copy_writable_or_fail")).Invoke (blob);
#endif
// extern hb_blob_t* hb_blob_create(const char* data, unsigned int length, hb_memory_mode_t mode, void* user_data, hb_destroy_func_t destroy)
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
internal static extern hb_blob_t hb_blob_create (/* char */ void* data, UInt32 length, MemoryMode mode, void* user_data, DestroyProxyDelegate destroy);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate hb_blob_t hb_blob_create (/* char */ void* data, UInt32 length, MemoryMode mode, void* user_data, DestroyProxyDelegate destroy);
}
private static Delegates.hb_blob_create hb_blob_create_delegate;
internal static hb_blob_t hb_blob_create (/* char */ void* data, UInt32 length, MemoryMode mode, void* user_data, DestroyProxyDelegate destroy) =>
(hb_blob_create_delegate ??= GetSymbol<Delegates.hb_blob_create> ("hb_blob_create")).Invoke (data, length, mode, user_data, destroy);
#endif
// extern hb_blob_t* hb_blob_create_from_file(const char* file_name)
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
internal static extern hb_blob_t hb_blob_create_from_file ([MarshalAs (UnmanagedType.LPStr)] String file_name);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate hb_blob_t hb_blob_create_from_file ([MarshalAs (UnmanagedType.LPStr)] String file_name);
}
private static Delegates.hb_blob_create_from_file hb_blob_create_from_file_delegate;
internal static hb_blob_t hb_blob_create_from_file ([MarshalAs (UnmanagedType.LPStr)] String file_name) =>
(hb_blob_create_from_file_delegate ??= GetSymbol<Delegates.hb_blob_create_from_file> ("hb_blob_create_from_file")).Invoke (file_name);
#endif
// extern hb_blob_t* hb_blob_create_from_file_or_fail(const char* file_name)
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
internal static extern hb_blob_t hb_blob_create_from_file_or_fail (/* char */ void* file_name);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate hb_blob_t hb_blob_create_from_file_or_fail (/* char */ void* file_name);
}
private static Delegates.hb_blob_create_from_file_or_fail hb_blob_create_from_file_or_fail_delegate;
internal static hb_blob_t hb_blob_create_from_file_or_fail (/* char */ void* file_name) =>
(hb_blob_create_from_file_or_fail_delegate ??= GetSymbol<Delegates.hb_blob_create_from_file_or_fail> ("hb_blob_create_from_file_or_fail")).Invoke (file_name);
#endif
// extern hb_blob_t* hb_blob_create_or_fail(const char* data, unsigned int length, hb_memory_mode_t mode, void* user_data, hb_destroy_func_t destroy)
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
internal static extern hb_blob_t hb_blob_create_or_fail (/* char */ void* data, UInt32 length, MemoryMode mode, void* user_data, DestroyProxyDelegate destroy);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate hb_blob_t hb_blob_create_or_fail (/* char */ void* data, UInt32 length, MemoryMode mode, void* user_data, DestroyProxyDelegate destroy);
}
private static Delegates.hb_blob_create_or_fail hb_blob_create_or_fail_delegate;
internal static hb_blob_t hb_blob_create_or_fail (/* char */ void* data, UInt32 length, MemoryMode mode, void* user_data, DestroyProxyDelegate destroy) =>
(hb_blob_create_or_fail_delegate ??= GetSymbol<Delegates.hb_blob_create_or_fail> ("hb_blob_create_or_fail")).Invoke (data, length, mode, user_data, destroy);
#endif
// extern hb_blob_t* hb_blob_create_sub_blob(hb_blob_t* parent, unsigned int offset, unsigned int length)
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
internal static extern hb_blob_t hb_blob_create_sub_blob (hb_blob_t parent, UInt32 offset, UInt32 length);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate hb_blob_t hb_blob_create_sub_blob (hb_blob_t parent, UInt32 offset, UInt32 length);
}
private static Delegates.hb_blob_create_sub_blob hb_blob_create_sub_blob_delegate;
internal static hb_blob_t hb_blob_create_sub_blob (hb_blob_t parent, UInt32 offset, UInt32 length) =>
(hb_blob_create_sub_blob_delegate ??= GetSymbol<Delegates.hb_blob_create_sub_blob> ("hb_blob_create_sub_blob")).Invoke (parent, offset, length);
#endif
// extern void hb_blob_destroy(hb_blob_t* blob)
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
internal static extern void hb_blob_destroy (hb_blob_t blob);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate void hb_blob_destroy (hb_blob_t blob);
}
private static Delegates.hb_blob_destroy hb_blob_destroy_delegate;
internal static void hb_blob_destroy (hb_blob_t blob) =>
(hb_blob_destroy_delegate ??= GetSymbol<Delegates.hb_blob_destroy> ("hb_blob_destroy")).Invoke (blob);
#endif
// extern const char* hb_blob_get_data(hb_blob_t* blob, unsigned int* length)
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
internal static extern /* char */ void* hb_blob_get_data (hb_blob_t blob, UInt32* length);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate /* char */ void* hb_blob_get_data (hb_blob_t blob, UInt32* length);
}
private static Delegates.hb_blob_get_data hb_blob_get_data_delegate;
internal static /* char */ void* hb_blob_get_data (hb_blob_t blob, UInt32* length) =>
(hb_blob_get_data_delegate ??= GetSymbol<Delegates.hb_blob_get_data> ("hb_blob_get_data")).Invoke (blob, length);
#endif
// extern char* hb_blob_get_data_writable(hb_blob_t* blob, unsigned int* length)
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
internal static extern /* char */ void* hb_blob_get_data_writable (hb_blob_t blob, UInt32* length);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate /* char */ void* hb_blob_get_data_writable (hb_blob_t blob, UInt32* length);
}
private static Delegates.hb_blob_get_data_writable hb_blob_get_data_writable_delegate;
internal static /* char */ void* hb_blob_get_data_writable (hb_blob_t blob, UInt32* length) =>
(hb_blob_get_data_writable_delegate ??= GetSymbol<Delegates.hb_blob_get_data_writable> ("hb_blob_get_data_writable")).Invoke (blob, length);
#endif
// extern hb_blob_t* hb_blob_get_empty()
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
internal static extern hb_blob_t hb_blob_get_empty ();
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate hb_blob_t hb_blob_get_empty ();
}
private static Delegates.hb_blob_get_empty hb_blob_get_empty_delegate;
internal static hb_blob_t hb_blob_get_empty () =>
(hb_blob_get_empty_delegate ??= GetSymbol<Delegates.hb_blob_get_empty> ("hb_blob_get_empty")).Invoke ();
#endif
// extern unsigned int hb_blob_get_length(hb_blob_t* blob)
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
internal static extern UInt32 hb_blob_get_length (hb_blob_t blob);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate UInt32 hb_blob_get_length (hb_blob_t blob);
}
private static Delegates.hb_blob_get_length hb_blob_get_length_delegate;
internal static UInt32 hb_blob_get_length (hb_blob_t blob) =>
(hb_blob_get_length_delegate ??= GetSymbol<Delegates.hb_blob_get_length> ("hb_blob_get_length")).Invoke (blob);
#endif
// extern hb_bool_t hb_blob_is_immutable(hb_blob_t* blob)
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
[return: MarshalAs (UnmanagedType.I1)]
internal static extern bool hb_blob_is_immutable (hb_blob_t blob);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
[return: MarshalAs (UnmanagedType.I1)]
internal delegate bool hb_blob_is_immutable (hb_blob_t blob);
}
private static Delegates.hb_blob_is_immutable hb_blob_is_immutable_delegate;
internal static bool hb_blob_is_immutable (hb_blob_t blob) =>
(hb_blob_is_immutable_delegate ??= GetSymbol<Delegates.hb_blob_is_immutable> ("hb_blob_is_immutable")).Invoke (blob);
#endif
// extern void hb_blob_make_immutable(hb_blob_t* blob)
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
internal static extern void hb_blob_make_immutable (hb_blob_t blob);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate void hb_blob_make_immutable (hb_blob_t blob);
}
private static Delegates.hb_blob_make_immutable hb_blob_make_immutable_delegate;
internal static void hb_blob_make_immutable (hb_blob_t blob) =>
(hb_blob_make_immutable_delegate ??= GetSymbol<Delegates.hb_blob_make_immutable> ("hb_blob_make_immutable")).Invoke (blob);
#endif
// extern hb_blob_t* hb_blob_reference(hb_blob_t* blob)
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
internal static extern hb_blob_t hb_blob_reference (hb_blob_t blob);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate hb_blob_t hb_blob_reference (hb_blob_t blob);
}
private static Delegates.hb_blob_reference hb_blob_reference_delegate;
internal static hb_blob_t hb_blob_reference (hb_blob_t blob) =>
(hb_blob_reference_delegate ??= GetSymbol<Delegates.hb_blob_reference> ("hb_blob_reference")).Invoke (blob);
#endif
#endregion
#region hb-buffer.h
// extern void hb_buffer_add(hb_buffer_t* buffer, hb_codepoint_t codepoint, unsigned int cluster)
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
internal static extern void hb_buffer_add (hb_buffer_t buffer, UInt32 codepoint, UInt32 cluster);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate void hb_buffer_add (hb_buffer_t buffer, UInt32 codepoint, UInt32 cluster);
}
private static Delegates.hb_buffer_add hb_buffer_add_delegate;
internal static void hb_buffer_add (hb_buffer_t buffer, UInt32 codepoint, UInt32 cluster) =>
(hb_buffer_add_delegate ??= GetSymbol<Delegates.hb_buffer_add> ("hb_buffer_add")).Invoke (buffer, codepoint, cluster);
#endif
// extern void hb_buffer_add_codepoints(hb_buffer_t* buffer, const hb_codepoint_t* text, int text_length, unsigned int item_offset, int item_length)
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
internal static extern void hb_buffer_add_codepoints (hb_buffer_t buffer, UInt32* text, Int32 text_length, UInt32 item_offset, Int32 item_length);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate void hb_buffer_add_codepoints (hb_buffer_t buffer, UInt32* text, Int32 text_length, UInt32 item_offset, Int32 item_length);
}
private static Delegates.hb_buffer_add_codepoints hb_buffer_add_codepoints_delegate;
internal static void hb_buffer_add_codepoints (hb_buffer_t buffer, UInt32* text, Int32 text_length, UInt32 item_offset, Int32 item_length) =>
(hb_buffer_add_codepoints_delegate ??= GetSymbol<Delegates.hb_buffer_add_codepoints> ("hb_buffer_add_codepoints")).Invoke (buffer, text, text_length, item_offset, item_length);
#endif
// extern void hb_buffer_add_latin1(hb_buffer_t* buffer, const uint8_t* text, int text_length, unsigned int item_offset, int item_length)
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
internal static extern void hb_buffer_add_latin1 (hb_buffer_t buffer, Byte* text, Int32 text_length, UInt32 item_offset, Int32 item_length);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate void hb_buffer_add_latin1 (hb_buffer_t buffer, Byte* text, Int32 text_length, UInt32 item_offset, Int32 item_length);
}
private static Delegates.hb_buffer_add_latin1 hb_buffer_add_latin1_delegate;
internal static void hb_buffer_add_latin1 (hb_buffer_t buffer, Byte* text, Int32 text_length, UInt32 item_offset, Int32 item_length) =>
(hb_buffer_add_latin1_delegate ??= GetSymbol<Delegates.hb_buffer_add_latin1> ("hb_buffer_add_latin1")).Invoke (buffer, text, text_length, item_offset, item_length);
#endif
// extern void hb_buffer_add_utf16(hb_buffer_t* buffer, const uint16_t* text, int text_length, unsigned int item_offset, int item_length)
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
internal static extern void hb_buffer_add_utf16 (hb_buffer_t buffer, UInt16* text, Int32 text_length, UInt32 item_offset, Int32 item_length);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate void hb_buffer_add_utf16 (hb_buffer_t buffer, UInt16* text, Int32 text_length, UInt32 item_offset, Int32 item_length);
}
private static Delegates.hb_buffer_add_utf16 hb_buffer_add_utf16_delegate;
internal static void hb_buffer_add_utf16 (hb_buffer_t buffer, UInt16* text, Int32 text_length, UInt32 item_offset, Int32 item_length) =>
(hb_buffer_add_utf16_delegate ??= GetSymbol<Delegates.hb_buffer_add_utf16> ("hb_buffer_add_utf16")).Invoke (buffer, text, text_length, item_offset, item_length);
#endif
// extern void hb_buffer_add_utf32(hb_buffer_t* buffer, const uint32_t* text, int text_length, unsigned int item_offset, int item_length)
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
internal static extern void hb_buffer_add_utf32 (hb_buffer_t buffer, UInt32* text, Int32 text_length, UInt32 item_offset, Int32 item_length);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate void hb_buffer_add_utf32 (hb_buffer_t buffer, UInt32* text, Int32 text_length, UInt32 item_offset, Int32 item_length);
}
private static Delegates.hb_buffer_add_utf32 hb_buffer_add_utf32_delegate;
internal static void hb_buffer_add_utf32 (hb_buffer_t buffer, UInt32* text, Int32 text_length, UInt32 item_offset, Int32 item_length) =>
(hb_buffer_add_utf32_delegate ??= GetSymbol<Delegates.hb_buffer_add_utf32> ("hb_buffer_add_utf32")).Invoke (buffer, text, text_length, item_offset, item_length);
#endif
// extern void hb_buffer_add_utf8(hb_buffer_t* buffer, const char* text, int text_length, unsigned int item_offset, int item_length)
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
internal static extern void hb_buffer_add_utf8 (hb_buffer_t buffer, /* char */ void* text, Int32 text_length, UInt32 item_offset, Int32 item_length);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate void hb_buffer_add_utf8 (hb_buffer_t buffer, /* char */ void* text, Int32 text_length, UInt32 item_offset, Int32 item_length);
}
private static Delegates.hb_buffer_add_utf8 hb_buffer_add_utf8_delegate;
internal static void hb_buffer_add_utf8 (hb_buffer_t buffer, /* char */ void* text, Int32 text_length, UInt32 item_offset, Int32 item_length) =>
(hb_buffer_add_utf8_delegate ??= GetSymbol<Delegates.hb_buffer_add_utf8> ("hb_buffer_add_utf8")).Invoke (buffer, text, text_length, item_offset, item_length);
#endif
// extern hb_bool_t hb_buffer_allocation_successful(hb_buffer_t* buffer)
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
[return: MarshalAs (UnmanagedType.I1)]
internal static extern bool hb_buffer_allocation_successful (hb_buffer_t buffer);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
[return: MarshalAs (UnmanagedType.I1)]
internal delegate bool hb_buffer_allocation_successful (hb_buffer_t buffer);
}
private static Delegates.hb_buffer_allocation_successful hb_buffer_allocation_successful_delegate;
internal static bool hb_buffer_allocation_successful (hb_buffer_t buffer) =>
(hb_buffer_allocation_successful_delegate ??= GetSymbol<Delegates.hb_buffer_allocation_successful> ("hb_buffer_allocation_successful")).Invoke (buffer);
#endif
// extern void hb_buffer_append(hb_buffer_t* buffer, hb_buffer_t* source, unsigned int start, unsigned int end)
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
internal static extern void hb_buffer_append (hb_buffer_t buffer, hb_buffer_t source, UInt32 start, UInt32 end);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate void hb_buffer_append (hb_buffer_t buffer, hb_buffer_t source, UInt32 start, UInt32 end);
}
private static Delegates.hb_buffer_append hb_buffer_append_delegate;
internal static void hb_buffer_append (hb_buffer_t buffer, hb_buffer_t source, UInt32 start, UInt32 end) =>
(hb_buffer_append_delegate ??= GetSymbol<Delegates.hb_buffer_append> ("hb_buffer_append")).Invoke (buffer, source, start, end);
#endif
// extern void hb_buffer_clear_contents(hb_buffer_t* buffer)
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
internal static extern void hb_buffer_clear_contents (hb_buffer_t buffer);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate void hb_buffer_clear_contents (hb_buffer_t buffer);
}
private static Delegates.hb_buffer_clear_contents hb_buffer_clear_contents_delegate;
internal static void hb_buffer_clear_contents (hb_buffer_t buffer) =>
(hb_buffer_clear_contents_delegate ??= GetSymbol<Delegates.hb_buffer_clear_contents> ("hb_buffer_clear_contents")).Invoke (buffer);
#endif
// extern hb_buffer_t* hb_buffer_create()
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
internal static extern hb_buffer_t hb_buffer_create ();
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate hb_buffer_t hb_buffer_create ();
}
private static Delegates.hb_buffer_create hb_buffer_create_delegate;
internal static hb_buffer_t hb_buffer_create () =>
(hb_buffer_create_delegate ??= GetSymbol<Delegates.hb_buffer_create> ("hb_buffer_create")).Invoke ();
#endif
// extern hb_bool_t hb_buffer_deserialize_glyphs(hb_buffer_t* buffer, const char* buf, int buf_len, const char** end_ptr, hb_font_t* font, hb_buffer_serialize_format_t format)
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
[return: MarshalAs (UnmanagedType.I1)]
internal static extern bool hb_buffer_deserialize_glyphs (hb_buffer_t buffer, [MarshalAs (UnmanagedType.LPStr)] String buf, Int32 buf_len, /* char */ void** end_ptr, hb_font_t font, SerializeFormat format);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
[return: MarshalAs (UnmanagedType.I1)]
internal delegate bool hb_buffer_deserialize_glyphs (hb_buffer_t buffer, [MarshalAs (UnmanagedType.LPStr)] String buf, Int32 buf_len, /* char */ void** end_ptr, hb_font_t font, SerializeFormat format);
}
private static Delegates.hb_buffer_deserialize_glyphs hb_buffer_deserialize_glyphs_delegate;
internal static bool hb_buffer_deserialize_glyphs (hb_buffer_t buffer, [MarshalAs (UnmanagedType.LPStr)] String buf, Int32 buf_len, /* char */ void** end_ptr, hb_font_t font, SerializeFormat format) =>
(hb_buffer_deserialize_glyphs_delegate ??= GetSymbol<Delegates.hb_buffer_deserialize_glyphs> ("hb_buffer_deserialize_glyphs")).Invoke (buffer, buf, buf_len, end_ptr, font, format);
#endif
// extern hb_bool_t hb_buffer_deserialize_unicode(hb_buffer_t* buffer, const char* buf, int buf_len, const char** end_ptr, hb_buffer_serialize_format_t format)
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
[return: MarshalAs (UnmanagedType.I1)]
internal static extern bool hb_buffer_deserialize_unicode (hb_buffer_t buffer, /* char */ void* buf, Int32 buf_len, /* char */ void** end_ptr, SerializeFormat format);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
[return: MarshalAs (UnmanagedType.I1)]
internal delegate bool hb_buffer_deserialize_unicode (hb_buffer_t buffer, /* char */ void* buf, Int32 buf_len, /* char */ void** end_ptr, SerializeFormat format);
}
private static Delegates.hb_buffer_deserialize_unicode hb_buffer_deserialize_unicode_delegate;
internal static bool hb_buffer_deserialize_unicode (hb_buffer_t buffer, /* char */ void* buf, Int32 buf_len, /* char */ void** end_ptr, SerializeFormat format) =>
(hb_buffer_deserialize_unicode_delegate ??= GetSymbol<Delegates.hb_buffer_deserialize_unicode> ("hb_buffer_deserialize_unicode")).Invoke (buffer, buf, buf_len, end_ptr, format);
#endif
// extern void hb_buffer_destroy(hb_buffer_t* buffer)
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
internal static extern void hb_buffer_destroy (hb_buffer_t buffer);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate void hb_buffer_destroy (hb_buffer_t buffer);
}
private static Delegates.hb_buffer_destroy hb_buffer_destroy_delegate;
internal static void hb_buffer_destroy (hb_buffer_t buffer) =>
(hb_buffer_destroy_delegate ??= GetSymbol<Delegates.hb_buffer_destroy> ("hb_buffer_destroy")).Invoke (buffer);
#endif
// extern hb_buffer_diff_flags_t hb_buffer_diff(hb_buffer_t* buffer, hb_buffer_t* reference, hb_codepoint_t dottedcircle_glyph, unsigned int position_fuzz)
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
internal static extern BufferDiffFlags hb_buffer_diff (hb_buffer_t buffer, hb_buffer_t reference, UInt32 dottedcircle_glyph, UInt32 position_fuzz);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate BufferDiffFlags hb_buffer_diff (hb_buffer_t buffer, hb_buffer_t reference, UInt32 dottedcircle_glyph, UInt32 position_fuzz);
}
private static Delegates.hb_buffer_diff hb_buffer_diff_delegate;
internal static BufferDiffFlags hb_buffer_diff (hb_buffer_t buffer, hb_buffer_t reference, UInt32 dottedcircle_glyph, UInt32 position_fuzz) =>
(hb_buffer_diff_delegate ??= GetSymbol<Delegates.hb_buffer_diff> ("hb_buffer_diff")).Invoke (buffer, reference, dottedcircle_glyph, position_fuzz);
#endif
// extern hb_buffer_cluster_level_t hb_buffer_get_cluster_level(hb_buffer_t* buffer)
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
internal static extern ClusterLevel hb_buffer_get_cluster_level (hb_buffer_t buffer);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate ClusterLevel hb_buffer_get_cluster_level (hb_buffer_t buffer);
}
private static Delegates.hb_buffer_get_cluster_level hb_buffer_get_cluster_level_delegate;
internal static ClusterLevel hb_buffer_get_cluster_level (hb_buffer_t buffer) =>
(hb_buffer_get_cluster_level_delegate ??= GetSymbol<Delegates.hb_buffer_get_cluster_level> ("hb_buffer_get_cluster_level")).Invoke (buffer);
#endif
// extern hb_buffer_content_type_t hb_buffer_get_content_type(hb_buffer_t* buffer)
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
internal static extern ContentType hb_buffer_get_content_type (hb_buffer_t buffer);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate ContentType hb_buffer_get_content_type (hb_buffer_t buffer);
}
private static Delegates.hb_buffer_get_content_type hb_buffer_get_content_type_delegate;
internal static ContentType hb_buffer_get_content_type (hb_buffer_t buffer) =>
(hb_buffer_get_content_type_delegate ??= GetSymbol<Delegates.hb_buffer_get_content_type> ("hb_buffer_get_content_type")).Invoke (buffer);
#endif
// extern hb_direction_t hb_buffer_get_direction(hb_buffer_t* buffer)
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
internal static extern Direction hb_buffer_get_direction (hb_buffer_t buffer);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate Direction hb_buffer_get_direction (hb_buffer_t buffer);
}
private static Delegates.hb_buffer_get_direction hb_buffer_get_direction_delegate;
internal static Direction hb_buffer_get_direction (hb_buffer_t buffer) =>
(hb_buffer_get_direction_delegate ??= GetSymbol<Delegates.hb_buffer_get_direction> ("hb_buffer_get_direction")).Invoke (buffer);
#endif
// extern hb_buffer_t* hb_buffer_get_empty()
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
internal static extern hb_buffer_t hb_buffer_get_empty ();
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate hb_buffer_t hb_buffer_get_empty ();
}
private static Delegates.hb_buffer_get_empty hb_buffer_get_empty_delegate;
internal static hb_buffer_t hb_buffer_get_empty () =>
(hb_buffer_get_empty_delegate ??= GetSymbol<Delegates.hb_buffer_get_empty> ("hb_buffer_get_empty")).Invoke ();
#endif
// extern hb_buffer_flags_t hb_buffer_get_flags(hb_buffer_t* buffer)
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
internal static extern BufferFlags hb_buffer_get_flags (hb_buffer_t buffer);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate BufferFlags hb_buffer_get_flags (hb_buffer_t buffer);
}
private static Delegates.hb_buffer_get_flags hb_buffer_get_flags_delegate;
internal static BufferFlags hb_buffer_get_flags (hb_buffer_t buffer) =>
(hb_buffer_get_flags_delegate ??= GetSymbol<Delegates.hb_buffer_get_flags> ("hb_buffer_get_flags")).Invoke (buffer);
#endif
// extern hb_glyph_info_t* hb_buffer_get_glyph_infos(hb_buffer_t* buffer, unsigned int* length)
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
internal static extern GlyphInfo* hb_buffer_get_glyph_infos (hb_buffer_t buffer, UInt32* length);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate GlyphInfo* hb_buffer_get_glyph_infos (hb_buffer_t buffer, UInt32* length);
}
private static Delegates.hb_buffer_get_glyph_infos hb_buffer_get_glyph_infos_delegate;
internal static GlyphInfo* hb_buffer_get_glyph_infos (hb_buffer_t buffer, UInt32* length) =>
(hb_buffer_get_glyph_infos_delegate ??= GetSymbol<Delegates.hb_buffer_get_glyph_infos> ("hb_buffer_get_glyph_infos")).Invoke (buffer, length);
#endif
// extern hb_glyph_position_t* hb_buffer_get_glyph_positions(hb_buffer_t* buffer, unsigned int* length)
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
internal static extern GlyphPosition* hb_buffer_get_glyph_positions (hb_buffer_t buffer, UInt32* length);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate GlyphPosition* hb_buffer_get_glyph_positions (hb_buffer_t buffer, UInt32* length);
}
private static Delegates.hb_buffer_get_glyph_positions hb_buffer_get_glyph_positions_delegate;
internal static GlyphPosition* hb_buffer_get_glyph_positions (hb_buffer_t buffer, UInt32* length) =>
(hb_buffer_get_glyph_positions_delegate ??= GetSymbol<Delegates.hb_buffer_get_glyph_positions> ("hb_buffer_get_glyph_positions")).Invoke (buffer, length);
#endif
// extern hb_codepoint_t hb_buffer_get_invisible_glyph(hb_buffer_t* buffer)
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
internal static extern UInt32 hb_buffer_get_invisible_glyph (hb_buffer_t buffer);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate UInt32 hb_buffer_get_invisible_glyph (hb_buffer_t buffer);
}
private static Delegates.hb_buffer_get_invisible_glyph hb_buffer_get_invisible_glyph_delegate;
internal static UInt32 hb_buffer_get_invisible_glyph (hb_buffer_t buffer) =>
(hb_buffer_get_invisible_glyph_delegate ??= GetSymbol<Delegates.hb_buffer_get_invisible_glyph> ("hb_buffer_get_invisible_glyph")).Invoke (buffer);
#endif
// extern hb_language_t hb_buffer_get_language(hb_buffer_t* buffer)
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
internal static extern IntPtr hb_buffer_get_language (hb_buffer_t buffer);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate IntPtr hb_buffer_get_language (hb_buffer_t buffer);
}
private static Delegates.hb_buffer_get_language hb_buffer_get_language_delegate;
internal static IntPtr hb_buffer_get_language (hb_buffer_t buffer) =>
(hb_buffer_get_language_delegate ??= GetSymbol<Delegates.hb_buffer_get_language> ("hb_buffer_get_language")).Invoke (buffer);
#endif
// extern unsigned int hb_buffer_get_length(hb_buffer_t* buffer)
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
internal static extern UInt32 hb_buffer_get_length (hb_buffer_t buffer);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate UInt32 hb_buffer_get_length (hb_buffer_t buffer);
}
private static Delegates.hb_buffer_get_length hb_buffer_get_length_delegate;
internal static UInt32 hb_buffer_get_length (hb_buffer_t buffer) =>
(hb_buffer_get_length_delegate ??= GetSymbol<Delegates.hb_buffer_get_length> ("hb_buffer_get_length")).Invoke (buffer);
#endif
// extern hb_codepoint_t hb_buffer_get_replacement_codepoint(hb_buffer_t* buffer)
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
internal static extern UInt32 hb_buffer_get_replacement_codepoint (hb_buffer_t buffer);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate UInt32 hb_buffer_get_replacement_codepoint (hb_buffer_t buffer);
}
private static Delegates.hb_buffer_get_replacement_codepoint hb_buffer_get_replacement_codepoint_delegate;
internal static UInt32 hb_buffer_get_replacement_codepoint (hb_buffer_t buffer) =>
(hb_buffer_get_replacement_codepoint_delegate ??= GetSymbol<Delegates.hb_buffer_get_replacement_codepoint> ("hb_buffer_get_replacement_codepoint")).Invoke (buffer);
#endif
// extern hb_script_t hb_buffer_get_script(hb_buffer_t* buffer)
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
internal static extern UInt32 hb_buffer_get_script (hb_buffer_t buffer);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate UInt32 hb_buffer_get_script (hb_buffer_t buffer);
}
private static Delegates.hb_buffer_get_script hb_buffer_get_script_delegate;
internal static UInt32 hb_buffer_get_script (hb_buffer_t buffer) =>
(hb_buffer_get_script_delegate ??= GetSymbol<Delegates.hb_buffer_get_script> ("hb_buffer_get_script")).Invoke (buffer);
#endif
// extern hb_unicode_funcs_t* hb_buffer_get_unicode_funcs(hb_buffer_t* buffer)
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
internal static extern hb_unicode_funcs_t hb_buffer_get_unicode_funcs (hb_buffer_t buffer);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate hb_unicode_funcs_t hb_buffer_get_unicode_funcs (hb_buffer_t buffer);
}
private static Delegates.hb_buffer_get_unicode_funcs hb_buffer_get_unicode_funcs_delegate;
internal static hb_unicode_funcs_t hb_buffer_get_unicode_funcs (hb_buffer_t buffer) =>
(hb_buffer_get_unicode_funcs_delegate ??= GetSymbol<Delegates.hb_buffer_get_unicode_funcs> ("hb_buffer_get_unicode_funcs")).Invoke (buffer);
#endif
// extern void hb_buffer_guess_segment_properties(hb_buffer_t* buffer)
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
internal static extern void hb_buffer_guess_segment_properties (hb_buffer_t buffer);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate void hb_buffer_guess_segment_properties (hb_buffer_t buffer);
}
private static Delegates.hb_buffer_guess_segment_properties hb_buffer_guess_segment_properties_delegate;
internal static void hb_buffer_guess_segment_properties (hb_buffer_t buffer) =>
(hb_buffer_guess_segment_properties_delegate ??= GetSymbol<Delegates.hb_buffer_guess_segment_properties> ("hb_buffer_guess_segment_properties")).Invoke (buffer);
#endif
// extern hb_bool_t hb_buffer_has_positions(hb_buffer_t* buffer)
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
[return: MarshalAs (UnmanagedType.I1)]
internal static extern bool hb_buffer_has_positions (hb_buffer_t buffer);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
[return: MarshalAs (UnmanagedType.I1)]
internal delegate bool hb_buffer_has_positions (hb_buffer_t buffer);
}
private static Delegates.hb_buffer_has_positions hb_buffer_has_positions_delegate;
internal static bool hb_buffer_has_positions (hb_buffer_t buffer) =>
(hb_buffer_has_positions_delegate ??= GetSymbol<Delegates.hb_buffer_has_positions> ("hb_buffer_has_positions")).Invoke (buffer);
#endif
// extern void hb_buffer_normalize_glyphs(hb_buffer_t* buffer)
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
internal static extern void hb_buffer_normalize_glyphs (hb_buffer_t buffer);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate void hb_buffer_normalize_glyphs (hb_buffer_t buffer);
}
private static Delegates.hb_buffer_normalize_glyphs hb_buffer_normalize_glyphs_delegate;
internal static void hb_buffer_normalize_glyphs (hb_buffer_t buffer) =>
(hb_buffer_normalize_glyphs_delegate ??= GetSymbol<Delegates.hb_buffer_normalize_glyphs> ("hb_buffer_normalize_glyphs")).Invoke (buffer);
#endif
// extern hb_bool_t hb_buffer_pre_allocate(hb_buffer_t* buffer, unsigned int size)
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
[return: MarshalAs (UnmanagedType.I1)]
internal static extern bool hb_buffer_pre_allocate (hb_buffer_t buffer, UInt32 size);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
[return: MarshalAs (UnmanagedType.I1)]
internal delegate bool hb_buffer_pre_allocate (hb_buffer_t buffer, UInt32 size);
}
private static Delegates.hb_buffer_pre_allocate hb_buffer_pre_allocate_delegate;
internal static bool hb_buffer_pre_allocate (hb_buffer_t buffer, UInt32 size) =>
(hb_buffer_pre_allocate_delegate ??= GetSymbol<Delegates.hb_buffer_pre_allocate> ("hb_buffer_pre_allocate")).Invoke (buffer, size);
#endif
// extern hb_buffer_t* hb_buffer_reference(hb_buffer_t* buffer)
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
internal static extern hb_buffer_t hb_buffer_reference (hb_buffer_t buffer);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate hb_buffer_t hb_buffer_reference (hb_buffer_t buffer);
}
private static Delegates.hb_buffer_reference hb_buffer_reference_delegate;
internal static hb_buffer_t hb_buffer_reference (hb_buffer_t buffer) =>
(hb_buffer_reference_delegate ??= GetSymbol<Delegates.hb_buffer_reference> ("hb_buffer_reference")).Invoke (buffer);
#endif
// extern void hb_buffer_reset(hb_buffer_t* buffer)
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
internal static extern void hb_buffer_reset (hb_buffer_t buffer);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate void hb_buffer_reset (hb_buffer_t buffer);
}
private static Delegates.hb_buffer_reset hb_buffer_reset_delegate;
internal static void hb_buffer_reset (hb_buffer_t buffer) =>
(hb_buffer_reset_delegate ??= GetSymbol<Delegates.hb_buffer_reset> ("hb_buffer_reset")).Invoke (buffer);
#endif
// extern void hb_buffer_reverse(hb_buffer_t* buffer)
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
internal static extern void hb_buffer_reverse (hb_buffer_t buffer);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate void hb_buffer_reverse (hb_buffer_t buffer);
}
private static Delegates.hb_buffer_reverse hb_buffer_reverse_delegate;
internal static void hb_buffer_reverse (hb_buffer_t buffer) =>
(hb_buffer_reverse_delegate ??= GetSymbol<Delegates.hb_buffer_reverse> ("hb_buffer_reverse")).Invoke (buffer);
#endif
// extern void hb_buffer_reverse_clusters(hb_buffer_t* buffer)
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
internal static extern void hb_buffer_reverse_clusters (hb_buffer_t buffer);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate void hb_buffer_reverse_clusters (hb_buffer_t buffer);
}
private static Delegates.hb_buffer_reverse_clusters hb_buffer_reverse_clusters_delegate;
internal static void hb_buffer_reverse_clusters (hb_buffer_t buffer) =>
(hb_buffer_reverse_clusters_delegate ??= GetSymbol<Delegates.hb_buffer_reverse_clusters> ("hb_buffer_reverse_clusters")).Invoke (buffer);
#endif
// extern void hb_buffer_reverse_range(hb_buffer_t* buffer, unsigned int start, unsigned int end)
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
internal static extern void hb_buffer_reverse_range (hb_buffer_t buffer, UInt32 start, UInt32 end);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate void hb_buffer_reverse_range (hb_buffer_t buffer, UInt32 start, UInt32 end);
}
private static Delegates.hb_buffer_reverse_range hb_buffer_reverse_range_delegate;
internal static void hb_buffer_reverse_range (hb_buffer_t buffer, UInt32 start, UInt32 end) =>
(hb_buffer_reverse_range_delegate ??= GetSymbol<Delegates.hb_buffer_reverse_range> ("hb_buffer_reverse_range")).Invoke (buffer, start, end);
#endif
// extern unsigned int hb_buffer_serialize(hb_buffer_t* buffer, unsigned int start, unsigned int end, char* buf, unsigned int buf_size, unsigned int* buf_consumed, hb_font_t* font, hb_buffer_serialize_format_t format, hb_buffer_serialize_flags_t flags)
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
internal static extern UInt32 hb_buffer_serialize (hb_buffer_t buffer, UInt32 start, UInt32 end, /* char */ void* buf, UInt32 buf_size, UInt32* buf_consumed, hb_font_t font, SerializeFormat format, SerializeFlag flags);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate UInt32 hb_buffer_serialize (hb_buffer_t buffer, UInt32 start, UInt32 end, /* char */ void* buf, UInt32 buf_size, UInt32* buf_consumed, hb_font_t font, SerializeFormat format, SerializeFlag flags);
}
private static Delegates.hb_buffer_serialize hb_buffer_serialize_delegate;
internal static UInt32 hb_buffer_serialize (hb_buffer_t buffer, UInt32 start, UInt32 end, /* char */ void* buf, UInt32 buf_size, UInt32* buf_consumed, hb_font_t font, SerializeFormat format, SerializeFlag flags) =>
(hb_buffer_serialize_delegate ??= GetSymbol<Delegates.hb_buffer_serialize> ("hb_buffer_serialize")).Invoke (buffer, start, end, buf, buf_size, buf_consumed, font, format, flags);
#endif
// extern hb_buffer_serialize_format_t hb_buffer_serialize_format_from_string(const char* str, int len)
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
internal static extern SerializeFormat hb_buffer_serialize_format_from_string (/* char */ void* str, Int32 len);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate SerializeFormat hb_buffer_serialize_format_from_string (/* char */ void* str, Int32 len);
}
private static Delegates.hb_buffer_serialize_format_from_string hb_buffer_serialize_format_from_string_delegate;
internal static SerializeFormat hb_buffer_serialize_format_from_string (/* char */ void* str, Int32 len) =>
(hb_buffer_serialize_format_from_string_delegate ??= GetSymbol<Delegates.hb_buffer_serialize_format_from_string> ("hb_buffer_serialize_format_from_string")).Invoke (str, len);
#endif
// extern const char* hb_buffer_serialize_format_to_string(hb_buffer_serialize_format_t format)
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
internal static extern /* char */ void* hb_buffer_serialize_format_to_string (SerializeFormat format);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate /* char */ void* hb_buffer_serialize_format_to_string (SerializeFormat format);
}
private static Delegates.hb_buffer_serialize_format_to_string hb_buffer_serialize_format_to_string_delegate;
internal static /* char */ void* hb_buffer_serialize_format_to_string (SerializeFormat format) =>
(hb_buffer_serialize_format_to_string_delegate ??= GetSymbol<Delegates.hb_buffer_serialize_format_to_string> ("hb_buffer_serialize_format_to_string")).Invoke (format);
#endif
// extern unsigned int hb_buffer_serialize_glyphs(hb_buffer_t* buffer, unsigned int start, unsigned int end, char* buf, unsigned int buf_size, unsigned int* buf_consumed, hb_font_t* font, hb_buffer_serialize_format_t format, hb_buffer_serialize_flags_t flags)
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
internal static extern UInt32 hb_buffer_serialize_glyphs (hb_buffer_t buffer, UInt32 start, UInt32 end, /* char */ void* buf, UInt32 buf_size, UInt32* buf_consumed, hb_font_t font, SerializeFormat format, SerializeFlag flags);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate UInt32 hb_buffer_serialize_glyphs (hb_buffer_t buffer, UInt32 start, UInt32 end, /* char */ void* buf, UInt32 buf_size, UInt32* buf_consumed, hb_font_t font, SerializeFormat format, SerializeFlag flags);
}
private static Delegates.hb_buffer_serialize_glyphs hb_buffer_serialize_glyphs_delegate;
internal static UInt32 hb_buffer_serialize_glyphs (hb_buffer_t buffer, UInt32 start, UInt32 end, /* char */ void* buf, UInt32 buf_size, UInt32* buf_consumed, hb_font_t font, SerializeFormat format, SerializeFlag flags) =>
(hb_buffer_serialize_glyphs_delegate ??= GetSymbol<Delegates.hb_buffer_serialize_glyphs> ("hb_buffer_serialize_glyphs")).Invoke (buffer, start, end, buf, buf_size, buf_consumed, font, format, flags);
#endif
// extern const char** hb_buffer_serialize_list_formats()
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
internal static extern /* char */ void** hb_buffer_serialize_list_formats ();
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate /* char */ void** hb_buffer_serialize_list_formats ();
}
private static Delegates.hb_buffer_serialize_list_formats hb_buffer_serialize_list_formats_delegate;
internal static /* char */ void** hb_buffer_serialize_list_formats () =>
(hb_buffer_serialize_list_formats_delegate ??= GetSymbol<Delegates.hb_buffer_serialize_list_formats> ("hb_buffer_serialize_list_formats")).Invoke ();
#endif
// extern unsigned int hb_buffer_serialize_unicode(hb_buffer_t* buffer, unsigned int start, unsigned int end, char* buf, unsigned int buf_size, unsigned int* buf_consumed, hb_buffer_serialize_format_t format, hb_buffer_serialize_flags_t flags)
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
internal static extern UInt32 hb_buffer_serialize_unicode (hb_buffer_t buffer, UInt32 start, UInt32 end, /* char */ void* buf, UInt32 buf_size, UInt32* buf_consumed, SerializeFormat format, SerializeFlag flags);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate UInt32 hb_buffer_serialize_unicode (hb_buffer_t buffer, UInt32 start, UInt32 end, /* char */ void* buf, UInt32 buf_size, UInt32* buf_consumed, SerializeFormat format, SerializeFlag flags);
}
private static Delegates.hb_buffer_serialize_unicode hb_buffer_serialize_unicode_delegate;
internal static UInt32 hb_buffer_serialize_unicode (hb_buffer_t buffer, UInt32 start, UInt32 end, /* char */ void* buf, UInt32 buf_size, UInt32* buf_consumed, SerializeFormat format, SerializeFlag flags) =>
(hb_buffer_serialize_unicode_delegate ??= GetSymbol<Delegates.hb_buffer_serialize_unicode> ("hb_buffer_serialize_unicode")).Invoke (buffer, start, end, buf, buf_size, buf_consumed, format, flags);
#endif
// extern void hb_buffer_set_cluster_level(hb_buffer_t* buffer, hb_buffer_cluster_level_t cluster_level)
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
internal static extern void hb_buffer_set_cluster_level (hb_buffer_t buffer, ClusterLevel cluster_level);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate void hb_buffer_set_cluster_level (hb_buffer_t buffer, ClusterLevel cluster_level);
}
private static Delegates.hb_buffer_set_cluster_level hb_buffer_set_cluster_level_delegate;
internal static void hb_buffer_set_cluster_level (hb_buffer_t buffer, ClusterLevel cluster_level) =>
(hb_buffer_set_cluster_level_delegate ??= GetSymbol<Delegates.hb_buffer_set_cluster_level> ("hb_buffer_set_cluster_level")).Invoke (buffer, cluster_level);
#endif
// extern void hb_buffer_set_content_type(hb_buffer_t* buffer, hb_buffer_content_type_t content_type)
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
internal static extern void hb_buffer_set_content_type (hb_buffer_t buffer, ContentType content_type);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate void hb_buffer_set_content_type (hb_buffer_t buffer, ContentType content_type);
}
private static Delegates.hb_buffer_set_content_type hb_buffer_set_content_type_delegate;
internal static void hb_buffer_set_content_type (hb_buffer_t buffer, ContentType content_type) =>
(hb_buffer_set_content_type_delegate ??= GetSymbol<Delegates.hb_buffer_set_content_type> ("hb_buffer_set_content_type")).Invoke (buffer, content_type);
#endif
// extern void hb_buffer_set_direction(hb_buffer_t* buffer, hb_direction_t direction)
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
internal static extern void hb_buffer_set_direction (hb_buffer_t buffer, Direction direction);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate void hb_buffer_set_direction (hb_buffer_t buffer, Direction direction);
}
private static Delegates.hb_buffer_set_direction hb_buffer_set_direction_delegate;
internal static void hb_buffer_set_direction (hb_buffer_t buffer, Direction direction) =>
(hb_buffer_set_direction_delegate ??= GetSymbol<Delegates.hb_buffer_set_direction> ("hb_buffer_set_direction")).Invoke (buffer, direction);
#endif
// extern void hb_buffer_set_flags(hb_buffer_t* buffer, hb_buffer_flags_t flags)
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
internal static extern void hb_buffer_set_flags (hb_buffer_t buffer, BufferFlags flags);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate void hb_buffer_set_flags (hb_buffer_t buffer, BufferFlags flags);
}
private static Delegates.hb_buffer_set_flags hb_buffer_set_flags_delegate;
internal static void hb_buffer_set_flags (hb_buffer_t buffer, BufferFlags flags) =>
(hb_buffer_set_flags_delegate ??= GetSymbol<Delegates.hb_buffer_set_flags> ("hb_buffer_set_flags")).Invoke (buffer, flags);
#endif
// extern void hb_buffer_set_invisible_glyph(hb_buffer_t* buffer, hb_codepoint_t invisible)
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
internal static extern void hb_buffer_set_invisible_glyph (hb_buffer_t buffer, UInt32 invisible);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate void hb_buffer_set_invisible_glyph (hb_buffer_t buffer, UInt32 invisible);
}
private static Delegates.hb_buffer_set_invisible_glyph hb_buffer_set_invisible_glyph_delegate;
internal static void hb_buffer_set_invisible_glyph (hb_buffer_t buffer, UInt32 invisible) =>
(hb_buffer_set_invisible_glyph_delegate ??= GetSymbol<Delegates.hb_buffer_set_invisible_glyph> ("hb_buffer_set_invisible_glyph")).Invoke (buffer, invisible);
#endif
// extern void hb_buffer_set_language(hb_buffer_t* buffer, hb_language_t language)
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
internal static extern void hb_buffer_set_language (hb_buffer_t buffer, IntPtr language);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate void hb_buffer_set_language (hb_buffer_t buffer, IntPtr language);
}
private static Delegates.hb_buffer_set_language hb_buffer_set_language_delegate;
internal static void hb_buffer_set_language (hb_buffer_t buffer, IntPtr language) =>
(hb_buffer_set_language_delegate ??= GetSymbol<Delegates.hb_buffer_set_language> ("hb_buffer_set_language")).Invoke (buffer, language);
#endif
// extern hb_bool_t hb_buffer_set_length(hb_buffer_t* buffer, unsigned int length)
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
[return: MarshalAs (UnmanagedType.I1)]
internal static extern bool hb_buffer_set_length (hb_buffer_t buffer, UInt32 length);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
[return: MarshalAs (UnmanagedType.I1)]
internal delegate bool hb_buffer_set_length (hb_buffer_t buffer, UInt32 length);
}
private static Delegates.hb_buffer_set_length hb_buffer_set_length_delegate;
internal static bool hb_buffer_set_length (hb_buffer_t buffer, UInt32 length) =>
(hb_buffer_set_length_delegate ??= GetSymbol<Delegates.hb_buffer_set_length> ("hb_buffer_set_length")).Invoke (buffer, length);
#endif
// extern void hb_buffer_set_message_func(hb_buffer_t* buffer, hb_buffer_message_func_t func, void* user_data, hb_destroy_func_t destroy)
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
internal static extern void hb_buffer_set_message_func (hb_buffer_t buffer, BufferMessageProxyDelegate func, void* user_data, DestroyProxyDelegate destroy);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate void hb_buffer_set_message_func (hb_buffer_t buffer, BufferMessageProxyDelegate func, void* user_data, DestroyProxyDelegate destroy);
}
private static Delegates.hb_buffer_set_message_func hb_buffer_set_message_func_delegate;
internal static void hb_buffer_set_message_func (hb_buffer_t buffer, BufferMessageProxyDelegate func, void* user_data, DestroyProxyDelegate destroy) =>
(hb_buffer_set_message_func_delegate ??= GetSymbol<Delegates.hb_buffer_set_message_func> ("hb_buffer_set_message_func")).Invoke (buffer, func, user_data, destroy);
#endif
// extern void hb_buffer_set_replacement_codepoint(hb_buffer_t* buffer, hb_codepoint_t replacement)
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
internal static extern void hb_buffer_set_replacement_codepoint (hb_buffer_t buffer, UInt32 replacement);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate void hb_buffer_set_replacement_codepoint (hb_buffer_t buffer, UInt32 replacement);
}
private static Delegates.hb_buffer_set_replacement_codepoint hb_buffer_set_replacement_codepoint_delegate;
internal static void hb_buffer_set_replacement_codepoint (hb_buffer_t buffer, UInt32 replacement) =>
(hb_buffer_set_replacement_codepoint_delegate ??= GetSymbol<Delegates.hb_buffer_set_replacement_codepoint> ("hb_buffer_set_replacement_codepoint")).Invoke (buffer, replacement);
#endif
// extern void hb_buffer_set_script(hb_buffer_t* buffer, hb_script_t script)
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
internal static extern void hb_buffer_set_script (hb_buffer_t buffer, UInt32 script);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate void hb_buffer_set_script (hb_buffer_t buffer, UInt32 script);
}
private static Delegates.hb_buffer_set_script hb_buffer_set_script_delegate;
internal static void hb_buffer_set_script (hb_buffer_t buffer, UInt32 script) =>
(hb_buffer_set_script_delegate ??= GetSymbol<Delegates.hb_buffer_set_script> ("hb_buffer_set_script")).Invoke (buffer, script);
#endif
// extern void hb_buffer_set_unicode_funcs(hb_buffer_t* buffer, hb_unicode_funcs_t* unicode_funcs)
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
internal static extern void hb_buffer_set_unicode_funcs (hb_buffer_t buffer, hb_unicode_funcs_t unicode_funcs);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate void hb_buffer_set_unicode_funcs (hb_buffer_t buffer, hb_unicode_funcs_t unicode_funcs);
}
private static Delegates.hb_buffer_set_unicode_funcs hb_buffer_set_unicode_funcs_delegate;
internal static void hb_buffer_set_unicode_funcs (hb_buffer_t buffer, hb_unicode_funcs_t unicode_funcs) =>
(hb_buffer_set_unicode_funcs_delegate ??= GetSymbol<Delegates.hb_buffer_set_unicode_funcs> ("hb_buffer_set_unicode_funcs")).Invoke (buffer, unicode_funcs);
#endif
// extern hb_glyph_flags_t hb_glyph_info_get_glyph_flags(const hb_glyph_info_t* info)
#if !USE_DELEGATES
[DllImport (HARFBUZZ, CallingConvention = CallingConvention.Cdecl)]
internal static extern GlyphFlags hb_glyph_info_get_glyph_flags (GlyphInfo* info);
#else
private partial class Delegates {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate GlyphFlags hb_glyph_info_get_glyph_flags (GlyphInfo* info);
}
private static Delegates.hb_glyph_info_get_glyph_flags hb_glyph_info_get_glyph_flags_delegate;
internal static GlyphFlags hb_glyph_info_get_glyph_flags (GlyphInfo* info) =>
(hb_glyph_info_get_glyph_flags_delegate ??= GetSymbol<Delegates.hb_glyph_info_get_glyph_flags> ("hb_glyph_info_get_glyph_flags")).Invoke (info);
#endif