forked from Gr3q/types-gjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPango-1.0.d.ts
1573 lines (946 loc) · 39.1 KB
/
Pango-1.0.d.ts
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
declare namespace imports.gi.Pango {
interface Context extends GObject.Object {
changed () : void;
get_base_dir () : Direction;
get_base_gravity () : Gravity;
get_font_description () : FontDescription;
get_font_map () : FontMap;
get_gravity () : Gravity;
get_gravity_hint () : GravityHint;
get_language () : Language;
get_matrix () : Matrix;
get_metrics (desc: FontDescription, language: Language) : FontMetrics;
get_round_glyph_positions () : boolean;
get_serial () : number;
list_families (families: FontFamily[], n_families: number) : void;
load_font (desc: FontDescription) : Font;
load_fontset (desc: FontDescription, language: Language) : Fontset;
set_base_dir (direction: Direction) : void;
set_base_gravity (gravity: Gravity) : void;
set_font_description (desc: FontDescription) : void;
set_font_map (font_map: FontMap) : void;
set_gravity_hint (hint: GravityHint) : void;
set_language (language: Language) : void;
set_matrix (matrix: Matrix) : void;
set_round_glyph_positions (round_positions: boolean) : void;
}
var Context: {
new () : Context;
}
interface Coverage extends GObject.Object {
copy () : Coverage;
get (index_: number) : CoverageLevel;
max (other: Coverage) : void;
ref () : Coverage;
set (index_: number, level: CoverageLevel) : void;
to_bytes (bytes: number[], n_bytes: number) : void;
unref () : void;
}
var Coverage: {
new () : Coverage;
from_bytes (bytes: number[], n_bytes: number) : Coverage;
}
interface Engine extends GObject.Object {
}
var Engine: {
}
interface EngineLang extends Engine {
}
var EngineLang: {
}
interface EngineShape extends Engine {
}
var EngineShape: {
}
interface Font extends GObject.Object {
describe () : FontDescription;
describe_with_absolute_size () : FontDescription;
find_shaper (language: Language, _ch: number) : EngineShape;
get_coverage (language: Language) : Coverage;
get_features (features: undefined[], len: number, num_features: number) : void;
get_font_map () : FontMap;
get_glyph_extents (glyph: Glyph, ink_rect: Rectangle, logical_rect: Rectangle) : void;
get_hb_font () : undefined;
get_metrics (language: Language) : FontMetrics;
has_char (wc: string) : boolean;
}
var Font: {
descriptions_free (descs: FontDescription[], n_descs: number) : void;
}
interface FontFace extends GObject.Object {
describe () : FontDescription;
get_face_name () : string;
is_synthesized () : boolean;
list_sizes (sizes: number[], n_sizes: number) : void;
}
var FontFace: {
}
interface FontFamily extends GObject.Object {
get_name () : string;
is_monospace () : boolean;
is_variable () : boolean;
list_faces (faces: FontFace[], n_faces: number) : void;
}
var FontFamily: {
}
interface FontMap extends GObject.Object {
changed () : void;
create_context () : Context;
get_serial () : number;
list_families (families: FontFamily[], n_families: number) : void;
load_font (context: Context, desc: FontDescription) : Font;
load_fontset (context: Context, desc: FontDescription, language: Language) : Fontset;
}
var FontMap: {
}
interface Fontset extends GObject.Object {
foreach (_func: FontsetForeachFunc, data: any) : void;
get_font (wc: number) : Font;
get_metrics () : FontMetrics;
}
var Fontset: {
}
interface Layout extends GObject.Object {
context_changed () : void;
copy () : Layout;
get_alignment () : Alignment;
get_attributes () : AttrList;
get_auto_dir () : boolean;
get_baseline () : number;
get_character_count () : number;
get_context () : Context;
get_cursor_pos (index_: number, strong_pos: Rectangle, weak_pos: Rectangle) : void;
get_ellipsize () : EllipsizeMode;
get_extents (ink_rect: Rectangle, logical_rect: Rectangle) : void;
get_font_description () : FontDescription;
get_height () : number;
get_indent () : number;
get_iter () : LayoutIter;
get_justify () : boolean;
get_line (line: number) : LayoutLine;
get_line_count () : number;
get_line_readonly (line: number) : LayoutLine;
get_line_spacing () : number;
get_lines () : GLib.SList;
get_lines_readonly () : GLib.SList;
get_log_attrs (attrs: LogAttr[], n_attrs: number) : void;
get_log_attrs_readonly (n_attrs: number) : LogAttr[];
get_pixel_extents (ink_rect: Rectangle, logical_rect: Rectangle) : void;
get_pixel_size (width: number, height: number) : void;
get_serial () : number;
get_single_paragraph_mode () : boolean;
get_size (width: number, height: number) : void;
get_spacing () : number;
get_tabs () : TabArray;
get_text () : string;
get_unknown_glyphs_count () : number;
get_width () : number;
get_wrap () : WrapMode;
index_to_line_x (index_: number, trailing: boolean, line: number, x_pos: number) : void;
index_to_pos (index_: number, pos: Rectangle) : void;
is_ellipsized () : boolean;
is_wrapped () : boolean;
move_cursor_visually (strong: boolean, old_index: number, old_trailing: number, direction: number, new_index: number, new_trailing: number) : void;
set_alignment (alignment: Alignment) : void;
set_attributes (attrs: AttrList) : void;
set_auto_dir (auto_dir: boolean) : void;
set_ellipsize (ellipsize: EllipsizeMode) : void;
set_font_description (desc: FontDescription) : void;
set_height (height: number) : void;
set_indent (indent: number) : void;
set_justify (justify: boolean) : void;
set_line_spacing (factor: number) : void;
set_markup (markup: string, length: number) : void;
set_markup_with_accel (markup: string, length: number, accel_marker: string, accel_char: string) : void;
set_single_paragraph_mode (setting: boolean) : void;
set_spacing (spacing: number) : void;
set_tabs (tabs: TabArray) : void;
set_text (text: string, length: number) : void;
set_width (width: number) : void;
set_wrap (wrap: WrapMode) : void;
xy_to_index (_x: number, _y: number, index_: number, trailing: number) : boolean;
}
var Layout: {
new (context: Context) : Layout;
}
interface Renderer extends GObject.Object {
activate () : void;
deactivate () : void;
draw_error_underline (_x: number, _y: number, width: number, height: number) : void;
draw_glyph (font: Font, glyph: Glyph, _x: number, _y: number) : void;
draw_glyph_item (text: string, glyph_item: GlyphItem, _x: number, _y: number) : void;
draw_glyphs (font: Font, glyphs: GlyphString, _x: number, _y: number) : void;
draw_layout (layout: Layout, _x: number, _y: number) : void;
draw_layout_line (line: LayoutLine, _x: number, _y: number) : void;
draw_rectangle (part: RenderPart, _x: number, _y: number, width: number, height: number) : void;
draw_trapezoid (part: RenderPart, y1_: number, x11: number, x21: number, y2: number, x12: number, x22: number) : void;
get_alpha (part: RenderPart) : number;
get_color (part: RenderPart) : Color;
get_layout () : Layout;
get_layout_line () : LayoutLine;
get_matrix () : Matrix;
part_changed (part: RenderPart) : void;
set_alpha (part: RenderPart, alpha: number) : void;
set_color (part: RenderPart, color: Color) : void;
set_matrix (matrix: Matrix) : void;
}
var Renderer: {
}
class Analysis {
public shape_engine: EngineShape;
public lang_engine: EngineLang;
public font: Font;
public level: number;
public gravity: number;
public flags: number;
public script: number;
public language: Language;
public extra_attrs: GLib.SList;
}
class AttrClass {
public type: AttrType;
copy : {(attr: Attribute) : Attribute;};
destroy : {(attr: Attribute) : void;};
equal : {(attr1: Attribute, attr2: Attribute) : boolean;};
}
class AttrColor {
public attr: Attribute;
public color: Color;
}
class AttrFloat {
public attr: Attribute;
public value: number;
}
class AttrFontDesc {
public attr: Attribute;
public desc: FontDescription;
}
class AttrFontFeatures {
public attr: Attribute;
public features: string;
}
class AttrInt {
public attr: Attribute;
public value: number;
}
class AttrIterator {
public copy () : AttrIterator;
public destroy () : void;
public get (_type: AttrType) : Attribute;
public get_attrs () : GLib.SList;
public get_font (desc: FontDescription, language: Language, extra_attrs: GLib.SList) : void;
public next () : boolean;
public range (start: number, _end: number) : void;
}
class AttrLanguage {
public attr: Attribute;
public value: Language;
}
class AttrList {
public change (attr: Attribute) : void;
public copy () : AttrList;
public filter (_func: AttrFilterFunc, data: any) : AttrList;
public get_attributes () : GLib.SList;
public get_iterator () : AttrIterator;
public insert (attr: Attribute) : void;
public insert_before (attr: Attribute) : void;
public ref () : AttrList;
public splice (other: AttrList, pos: number, len: number) : void;
public unref () : void;
public update (pos: number, remove: number, add: number) : void;
}
class AttrShape {
public attr: Attribute;
public ink_rect: Rectangle;
public logical_rect: Rectangle;
public data: any;
public copy_func: AttrDataCopyFunc;
public destroy_func: GLib.DestroyNotify;
}
class AttrSize {
public attr: Attribute;
public size: number;
public absolute: number;
}
class AttrString {
public attr: Attribute;
public value: string;
}
class Attribute {
public klass: AttrClass;
public start_index: number;
public end_index: number;
public copy () : Attribute;
public destroy () : void;
public equal (attr2: Attribute) : boolean;
public init (klass: AttrClass) : void;
}
class Color {
public red: number;
public green: number;
public blue: number;
public copy () : Color;
public free () : void;
public parse (spec: string) : boolean;
public to_string () : string;
}
class ContextClass {
}
class EngineClass {
public parent_class: GObject.ObjectClass;
}
class EngineInfo {
public id: string;
public engine_type: string;
public render_type: string;
public scripts: EngineScriptInfo;
public n_scripts: number;
}
class EngineLangClass {
public parent_class: EngineClass;
script_break : {(engine: EngineLang, text: string, len: number, analysis: Analysis, attrs: LogAttr, attrs_len: number) : void;};
}
class EngineScriptInfo {
public script: Script;
public langs: string;
}
class EngineShapeClass {
public parent_class: EngineClass;
script_shape : {(engine: EngineShape, font: Font, item_text: string, item_length: number, analysis: Analysis, glyphs: GlyphString, paragraph_text: string, paragraph_length: number) : void;};
covers : {(engine: EngineShape, font: Font, language: Language, wc: string) : CoverageLevel;};
}
class FontDescription {
public better_match (old_match: FontDescription, new_match: FontDescription) : boolean;
public copy () : FontDescription;
public copy_static () : FontDescription;
public equal (desc2: FontDescription) : boolean;
public free () : void;
public get_family () : string;
public get_gravity () : Gravity;
public get_set_fields () : FontMask;
public get_size () : number;
public get_size_is_absolute () : boolean;
public get_stretch () : Stretch;
public get_style () : Style;
public get_variant () : Variant;
public get_variations () : string;
public get_weight () : Weight;
public hash () : number;
public merge (desc_to_merge: FontDescription, replace_existing: boolean) : void;
public merge_static (desc_to_merge: FontDescription, replace_existing: boolean) : void;
public set_absolute_size (size: number) : void;
public set_family (family: string) : void;
public set_family_static (family: string) : void;
public set_gravity (gravity: Gravity) : void;
public set_size (size: number) : void;
public set_stretch (stretch: Stretch) : void;
public set_style (style: Style) : void;
public set_variant (variant: Variant) : void;
public set_variations (variations: string) : void;
public set_variations_static (variations: string) : void;
public set_weight (weight: Weight) : void;
public to_filename () : string;
public to_string () : string;
public unset_fields (to_unset: FontMask) : void;
}
class FontMapClass {
public parent_class: GObject.ObjectClass;
public shape_engine_type: string;
load_font : {(fontmap: FontMap, context: Context, desc: FontDescription) : Font;};
list_families : {(fontmap: FontMap, families: FontFamily[], n_families: number) : void;};
load_fontset : {(fontmap: FontMap, context: Context, desc: FontDescription, language: Language) : Fontset;};
get_serial : {(fontmap: FontMap) : number;};
changed : {(fontmap: FontMap) : void;};
_pango_reserved1 : {() : void;};
_pango_reserved2 : {() : void;};
}
class FontMetrics {
public get_approximate_char_width () : number;
public get_approximate_digit_width () : number;
public get_ascent () : number;
public get_descent () : number;
public get_height () : number;
public get_strikethrough_position () : number;
public get_strikethrough_thickness () : number;
public get_underline_position () : number;
public get_underline_thickness () : number;
public ref () : FontMetrics;
public unref () : void;
}
class GlyphGeometry {
public width: GlyphUnit;
public x_offset: GlyphUnit;
public y_offset: GlyphUnit;
}
class GlyphInfo {
public glyph: Glyph;
public geometry: GlyphGeometry;
public attr: GlyphVisAttr;
}
class GlyphItem {
public item: Item;
public glyphs: GlyphString;
public apply_attrs (text: string, list: AttrList) : GLib.SList;
public copy () : GlyphItem;
public free () : void;
public get_logical_widths (text: string, logical_widths: number[]) : void;
public letter_space (text: string, log_attrs: LogAttr[], letter_spacing: number) : void;
public split (text: string, split_index: number) : GlyphItem;
}
class GlyphItemIter {
public glyph_item: GlyphItem;
public text: string;
public start_glyph: number;
public start_index: number;
public start_char: number;
public end_glyph: number;
public end_index: number;
public end_char: number;
public copy () : GlyphItemIter;
public free () : void;
public init_end (glyph_item: GlyphItem, text: string) : boolean;
public init_start (glyph_item: GlyphItem, text: string) : boolean;
public next_cluster () : boolean;
public prev_cluster () : boolean;
}
class GlyphString {
public num_glyphs: number;
public glyphs: GlyphInfo[];
public log_clusters: number;
public space: number;
public copy () : GlyphString;
public extents (font: Font, ink_rect: Rectangle, logical_rect: Rectangle) : void;
public extents_range (start: number, _end: number, font: Font, ink_rect: Rectangle, logical_rect: Rectangle) : void;
public free () : void;
public get_logical_widths (text: string, length: number, embedding_level: number, logical_widths: number[]) : void;
public get_width () : number;
public index_to_x (text: string, length: number, analysis: Analysis, index_: number, trailing: boolean, x_pos: number) : void;
public set_size (new_len: number) : void;
public x_to_index (text: string, length: number, analysis: Analysis, x_pos: number, index_: number, trailing: number) : void;
}
class GlyphVisAttr {
public is_cluster_start: number;
}
class IncludedModule {
list : {(engines: EngineInfo, n_engines: number) : void;};
init : {(module: GObject.TypeModule) : void;};
exit : {() : void;};
create : {(_id: string) : Engine;};
}
class Item {
public offset: number;
public length: number;
public num_chars: number;
public analysis: Analysis;
public apply_attrs (iter: AttrIterator) : void;
public copy () : Item;
public free () : void;
public split (split_index: number, split_offset: number) : Item;
}
class Language {
public get_sample_string () : string;
public get_scripts (num_scripts: number) : Script[];
public includes_script (script: Script) : boolean;
public matches (range_list: string) : boolean;
public to_string () : string;
}
class LayoutClass {
}
class LayoutIter {
public at_last_line () : boolean;
public copy () : LayoutIter;
public free () : void;
public get_baseline () : number;
public get_char_extents (logical_rect: Rectangle) : void;
public get_cluster_extents (ink_rect: Rectangle, logical_rect: Rectangle) : void;
public get_index () : number;
public get_layout () : Layout;
public get_layout_extents (ink_rect: Rectangle, logical_rect: Rectangle) : void;
public get_line () : LayoutLine;
public get_line_extents (ink_rect: Rectangle, logical_rect: Rectangle) : void;
public get_line_readonly () : LayoutLine;
public get_line_yrange (y0_: number, y1_: number) : void;
public get_run () : LayoutRun;
public get_run_extents (ink_rect: Rectangle, logical_rect: Rectangle) : void;
public get_run_readonly () : LayoutRun;
public next_char () : boolean;
public next_cluster () : boolean;
public next_line () : boolean;
public next_run () : boolean;
}
class LayoutLine {
public layout: Layout;
public start_index: number;
public length: number;
public runs: GLib.SList;
public is_paragraph_start: number;
public resolved_dir: number;
public get_extents (ink_rect: Rectangle, logical_rect: Rectangle) : void;
public get_height (height: number) : void;
public get_pixel_extents (ink_rect: Rectangle, logical_rect: Rectangle) : void;
public get_x_ranges (start_index: number, end_index: number, ranges: number[], n_ranges: number) : void;
public index_to_x (index_: number, trailing: boolean, x_pos: number) : void;
public ref () : LayoutLine;
public unref () : void;
public x_to_index (x_pos: number, index_: number, trailing: number) : boolean;
}
class LogAttr {
public is_line_break: number;
public is_mandatory_break: number;
public is_char_break: number;
public is_white: number;
public is_cursor_position: number;
public is_word_start: number;
public is_word_end: number;
public is_sentence_boundary: number;
public is_sentence_start: number;
public is_sentence_end: number;
public backspace_deletes_character: number;
public is_expandable_space: number;
public is_word_boundary: number;
}
class Map {
public get_engine (script: Script) : Engine;
public get_engines (script: Script, exact_engines: GLib.SList, fallback_engines: GLib.SList) : void;
}
class MapEntry {
}
class Matrix {
public xx: number;
public xy: number;
public yx: number;
public yy: number;
public x0: number;
public y0: number;
public concat (new_matrix: Matrix) : void;
public copy () : Matrix;
public free () : void;
public get_font_scale_factor () : number;
public get_font_scale_factors (xscale: number, yscale: number) : void;
public rotate (degrees: number) : void;
public scale (scale_x: number, scale_y: number) : void;
public transform_distance (dx: number, dy: number) : void;
public transform_pixel_rectangle (rect: Rectangle) : void;
public transform_point (_x: number, _y: number) : void;
public transform_rectangle (rect: Rectangle) : void;
public translate (tx: number, _ty: number) : void;
}
class Rectangle {
public x: number;
public y: number;
public width: number;
public height: number;
}
class RendererClass {
public parent_class: GObject.ObjectClass;
draw_glyphs : {(renderer: Renderer, font: Font, glyphs: GlyphString, _x: number, _y: number) : void;};
draw_rectangle : {(renderer: Renderer, part: RenderPart, _x: number, _y: number, width: number, height: number) : void;};
draw_error_underline : {(renderer: Renderer, _x: number, _y: number, width: number, height: number) : void;};
draw_shape : {(renderer: Renderer, attr: AttrShape, _x: number, _y: number) : void;};
draw_trapezoid : {(renderer: Renderer, part: RenderPart, y1_: number, x11: number, x21: number, y2: number, x12: number, x22: number) : void;};
draw_glyph : {(renderer: Renderer, font: Font, glyph: Glyph, _x: number, _y: number) : void;};
part_changed : {(renderer: Renderer, part: RenderPart) : void;};
begin : {(renderer: Renderer) : void;};
end : {(renderer: Renderer) : void;};
prepare_run : {(renderer: Renderer, run: LayoutRun) : void;};
draw_glyph_item : {(renderer: Renderer, text: string, glyph_item: GlyphItem, _x: number, _y: number) : void;};
_pango_reserved2 : {() : void;};
_pango_reserved3 : {() : void;};
_pango_reserved4 : {() : void;};
}
class RendererPrivate {
}
class ScriptIter {
public free () : void;
public get_range (start: string, _end: string, script: Script) : void;
public next () : boolean;
}
class TabArray {
public copy () : TabArray;
public free () : void;
public get_positions_in_pixels () : boolean;
public get_size () : number;
public get_tab (tab_index: number, alignment: TabAlign, location: number) : void;
public get_tabs (alignments: TabAlign, locations: number[]) : void;
public resize (new_size: number) : void;
public set_tab (tab_index: number, alignment: TabAlign, location: number) : void;
}
enum Alignment {
LEFT = 0,
CENTER = 1,
RIGHT = 2
}
enum AttrType {
invalid = 0,
language = 1,
family = 2,
style = 3,
weight = 4,
variant = 5,
stretch = 6,
size = 7,
font_desc = 8,
foreground = 9,
background = 10,
underline = 11,
strikethrough = 12,
rise = 13,
shape = 14,
scale = 15,
fallback = 16,
letter_spacing = 17,
underline_color = 18,
strikethrough_color = 19,
absolute_size = 20,
gravity = 21,
gravity_hint = 22,
font_features = 23,
foreground_alpha = 24,
background_alpha = 25,
allow_breaks = 26,
show = 27,
insert_hyphens = 28
}
enum BidiType {
l = 0,
lre = 1,
lro = 2,
r = 3,
al = 4,
rle = 5,
rlo = 6,
pdf = 7,
en = 8,
es = 9,
et = 10,
an = 11,
cs = 12,
nsm = 13,
bn = 14,
b = 15,
s = 16,
ws = 17,
on = 18
}
enum CoverageLevel {
none = 0,
fallback = 1,
approximate = 2,
exact = 3
}
enum Direction {
LTR = 0,
RTL = 1,
TTB_LTR = 2,
TTB_RTL = 3,
WEAK_LTR = 4,
WEAK_RTL = 5,
NEUTRAL = 6
}
enum EllipsizeMode {
NONE = 0,
START = 1,
MIDDLE = 2,
END = 3
}
enum Gravity {
south = 0,
east = 1,
north = 2,
west = 3,
auto = 4
}
enum GravityHint {
natural = 0,
strong = 1,
line = 2
}
enum RenderPart {
foreground = 0,
background = 1,
underline = 2,
strikethrough = 3
}
enum Script {
invalid_code = -1,